Most commented

Most commented

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

simonadrian
useravatar
Offline
7 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3582 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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

simonadrian
useravatar
Offline
7 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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

Code:

COM_JFBCONNECT_COMMENTS_COUNT="Number of Comments: %s"

You'd want to change it to

Code:

COM_JFBCONNECT_COMMENTS_COUNT="%s"

-Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3582 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11612
Total Polls:
0
Total Posts:
48795
Posts today:
12
User Info
 
Total Users:
47658
Newest User:
lszlsz
Members Online:
8
Guests Online:
883

Social Stream
SourceCoast Joomla Social Extensions
Friday, 25 May 2018
JFBConnect 8.0 Coming Soon! Stay tuned.
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program