• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: remove 'no comments' from blog layout

remove 'no comments' from blog layout 13 years 2 months ago #12646

Hi,

How do I remove 'no comments' from showing in the blog layout? i.e. if there are comments I would like it to show, but not if there are no comments.

thanks,
The administrator has disabled public write access.

Re:remove 'no comments' from blog layout 12 years 11 months ago #13576

  • adam3
  • adam3's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
bianca.wirth5 wrote:
How do I remove 'no comments' from showing in the blog layout? i.e. if there are comments I would like it to show, but not if there are no comments.
I'll post a ticket to that effect ... I can't find a way to do it either :(
The administrator has disabled public write access.

Re:remove 'no comments' from blog layout 12 years 11 months ago #13612

  • bogdanc
  • bogdanc's Avatar
  • OFFLINE
  • Moderator
  • Posts: 669
  • Thank you received: 11
Hello,

In order to do not display the No Comments link for the blog posts you will have to modify the file administrator>components>com_rsblog>helpers>html.php. Here, around line 350, you will find the function comments(). In this function, please try adding the following code lines:
		if($comments==JText::_('RSB_NO_COMMENTS'))
		return '';

before:
return '<a href="'.RSBlogHelper::route('index.php?option=com_rsblog&layout=view&cid='.RSBlogHelper::sef($post->id,$post->alias),false).'#comments">'.JText::sprintf('RSB_NUM_COMMENTS', $comments).'</a>';
The administrator has disabled public write access.

Re:remove 'no comments' from blog layout 12 years 11 months ago #13678

And if you to remove 'no comments' in the normal categorie and sectionblogs?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!