Recent Topics

1 May 26, 2014 14:59    

I updated from v2 to v5 and I have set the comments settings in blogs>features>comments to "not allowed" but still I see the comment link and avatar! I could probably delete the comment functionality somewhere but how can this problem be fixed correctly?
btw I use Alex's b2evo_ru skin and doesn't have a file named _feedback.php.

Thanks in advance.

2 May 26, 2014 23:49

@blg1 setting comments to "Not allowed", as you described, is the correct way to close the comments on all the items of the current collection in a single action. But I guess that I don't clearly understand what do you need, is it to completelly hide the comments already done?

If affirmative, you have a couple of options: 1) Set the viewing options to "Moderators & Admins only" (http://b2evolution.net/man/comment-viewing-options), only a few people will be able to see those comments. 2) Go to the file index.main.php of the skin and locate and delete (or comment) the section


                        // Link to comments:
                        $Item->feedback_link( array(
                                'type'				=>	'comments',
                                'link_before'		=>	'<span><img src="img/comment.png" align="top" height="16" width="16" alt="" /> ',
								'link_after'		=>	'</span>',
                                'link_text_zero'	=>	T_('Leave a comment'),
                                'link_text_one'		=>	T_('1 comment'),
                                'link_text_more'	=>	T_('%d comments'),
                                'link_title'		=>	T_('Leave a comment'),
                                'use_popup'			=>	false,
                            ) );


, and go to the section


// ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
						skin_include( '_item_feedback.inc.php', array(
								'before_section_title'	=>	'<h4>',
								'after_section_title'	=>	'</h4>',
							) );
						// Note: You can customize the default item feedback by copying the generic
						// /skins/_item_feedback.inc.php file into the current skin folder.
                    // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------

and delete (or comment) it. This way, no comments will be displayed at all.

Regards !

3 May 27, 2014 00:42

mgsolipa,

That's the problem.

1- when ticking "Moderators & Admins only" the " leave a comment" link at the bottom of the blog post still showing for the public user!

2- when I disabled comment posting by ticking "not allowed", the " leave a comment" link at the bottom of the blog post is still showing but not functioning.

I thought when you tick "not allowed" or "Moderators & Admins only" the link would also disapear but it doesn't and if some user clicks on it it says "the form is loading" but since I stopped that functionality it continues on until the page is refreshed.

I rather not have to disable the comments completely.

thanks

5 May 30, 2014 07:00

@blg1 all right, if you want to keep the comments feature working, then you need a different move. You may keep Comment viewing by: Moderators & Admins only, so already done comments wil stil be visible to members of those groups, and Comment posting by: Not allowed to deny any new comment. In fact, it will work as you need with any combination of those parameters.

Please note that I will refer to the same blocks that I mentioned in my previous comment, but now we will add a conditional at the beginning instead of comment them:


                        // Link to comments:
                        if($Blog->get_setting( 'allow_comments' ) || $Item->check_blog_settings( 'allow_view_comments' ))
                        {
                            $Item->feedback_link( array(
                                'type'              =>  'comments',
                                'link_before'       =>  '<span><img src="img/comment.png" align="top" height="16" width="16" alt="" /> ',
                                'link_after'        =>  '</span>',
                                'link_text_zero'    =>  T_('Leave a comment'),
                                'link_text_one'     =>  T_('1 comment'),
                                'link_text_more'    =>  T_('%d comments'),
                                'link_title'        =>  T_('Leave a comment'),
                                'use_popup'         =>  false,
                            ) );    
                        }


                    if($Blog->get_setting( 'allow_comments' ) || $Item->check_blog_settings( 'allow_view_comments' ))
                    {
                        // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
						skin_include( '_item_feedback.inc.php', array(
								'before_section_title'	=>	'<h4>',
								'after_section_title'	=>	'</h4>',
							) );
						// Note: You can customize the default item feedback by copying the generic
						// /skins/_item_feedback.inc.php file into the current skin folder.
                        // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- */
                    }

Regards !

6 May 30, 2014 18:49

mgsolipa

thanks for your reply

I added the code but there's one problem:

1-When the blog is on "moderators allowed viewing" and is viewed by the public user at the bottom of each post the link to post a comment disappears but the rotating star and "the form is loading" sign appears and the star continues rotating like it is loading. How can I get rid of that problem?!

2-And when "viewed by all users" but posting comments "not allowed" the link to post a comment re-appears. how can I fix that?

also this note at the end of comment:

// Note: You can customize the default item feedback by copying the generic
// /skins/_item_feedback.inc.php file into the current skin folder.

What does the generic.... mean? and should I do this too?

Thanks again


Form is loading...