• 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 comments count from frontpage

Remove comments count from frontpage 13 years 1 month ago #13204

  • bounceb
  • bounceb's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I tried many comments extensions and ultimately settled on on RSComments as the most flexible, functional, and attractive out-of-the-box. One thing that bugs me, though, is that there's no way to disable the comments count on frontpage articles, even if the articles display just intros and even if comments count is disabled in the component configuration. To accomplish this, you have to do a simple hack to the RSComments content plugin:

In /plugins/content/rscomments.php at line 67:

Delete or comment out:
if($view == 'frontpage' || $view == 'category' || $view == 'section' || $view == 'featured' || $option != 'com_content' || (!is_a($article->metadata,'JRegistry') && RSCommentsHelper::is16()))

Add:
if($view == 'frontpage' || $option != 'com_content' || (!is_a($article->metadata,'JRegistry') && RSCommentsHelper::is16()))
{ RSCommentsHelper::clean($article); return; }
 
if($view == 'category' || $view == 'section' || $view == 'featured' || $option != 'com_content' || (!is_a($article->metadata,'JRegistry') && RSCommentsHelper::is16()))

I'd love to see a "turn off frontpage counts" feature incorporated into future versions of RSComments. In the meantime, since Joomla 1.5.xx doesn't seem to support overrides for plugins, it will likely be necessary to go in and redo the hack with each RSComments version update. (Correct me if I'm wrong here.)

That's it. No question, just an offering, in case it helps anyone else.
Last Edit: 13 years 1 month ago by bounceb.
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!