Topic-icon Most commented

Active Subscriptions:

None
6 years 4 months ago #63174 by simonadrian
Most commented was created by simonadrian
Can I use your component to create a module with the mpst commented articles.

I am aware of this snippet, but it only shows the exact article.

{JFBCCommentsCount href=http://sourcecoast.com}

What I would like is a list:
1. article most commented: 54
2. second most commen.: 47
3. and so on
The topic has been locked.
Support Specialist
6 years 4 months ago #63176 by mel
Replied by mel on topic Most commented
The JFBCCommentsCount widget is using the fb:comments-count widget provided with the Facebook Comments Plugin, as described here .

Any logic to determine which article had the most comments would not be very straightforward and would be done on your part. The fb:comments-count widget just takes a URL, so you would have to find a way to iterate on all of the pages on your site to pass in to that. We've investigated this in the past, but Facebook does not make it easy.

-Melissa
The topic has been locked.
Active Subscriptions:

None
6 years 4 months ago #63184 by simonadrian
Replied by simonadrian on topic Most commented
Hi Melissa
Thanks you for your answer.

Can you then tell me how I can remove the text in front of the number, so I can construct a list manually.

When I use {JFBCCommentsCount href=http://sourcecoast.com}
it says: Number of Comments: 11

I only want it to say: 11
The topic has been locked.
Support Specialist
6 years 4 months ago #63185 by mel
Replied by mel on topic Most commented
This is defined in the JFBConnect component language file (/language/xx-YY/xx-YY.com_jfbconnect.ini). The key is COM_JFBCONNECT_COMMENTS_COUNT.

The string there is
COM_JFBCONNECT_COMMENTS_COUNT="Number of Comments: %s"

You'd want to change it to
COM_JFBCONNECT_COMMENTS_COUNT="%s"

-Melissa
The topic has been locked.