Show number of comments (or none) in blog view

More
14 years 7 months ago #5278 by unleash.it
Has anyone figured out a way to make this happen? I've seen it discussed, but only by someone else asking the same question. Has anyone found a solution?

Thanks!

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #9469 by tcherno
Hello!

This feature is really needed. Does someone know if there is a solution to display the number of comments?

If not a real solution, maybe a little hack?

Thank you very much! :)

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #9482 by goum
Hello,
To see none comments in a category, change it in the standart parameter of this one.
To modify the number of comments you can change it in jcomments (but it will be change for all categories)
Regards

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #10929 by tcherno
Hello!

Thank you, but there is no "Comments (9)" field to put in the template.

It would be displayed under the blog article in the category view, instead of the "read more" link.

Like in a blog...

Thank you! :)

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #11231 by tcherno
Any idea/news?

Thanks :)

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago - 14 years 3 weeks ago #11235 by goum
Hello,
The code for comments is here:
Code:
<!-- BOF comments --> <?php if ($this->params->get('comments')) : ?> <div class="comments"> <?php if ($this->params->get('comments') == 1) : if (file_exists(JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php')) : require_once(JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php'); echo JComments::showComments($this->item->id, 'com_flexicontent', $this->escape($this->item->title)); endif; endif; if ($this->params->get('comments') == 2) : if (file_exists(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'jom_comment_bot.php')) : require_once(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'jom_comment_bot.php'); echo jomcomment($this->item->id, 'com_flexicontent'); endif; endif; ?> </div> <?php endif; ?> <!-- EOF comments -->
You can found it at the end of item.php in the template blog (and all other templates).

Articles (in the category) appear here in the template blog : Category_items.php
As you can see, you will found some reference about read more, and other informations present in categories view.
You can try to add this code before the div line 474.
But i have no time to try it, sorry.

Try it in a local machine before.
Last edit: 14 years 3 weeks ago by goum.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.433 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline