Active
Project:
Drupal Most Popular
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Jan 2011 at 21:50 UTC
Updated:
24 Jan 2016 at 06:29 UTC
Jump to comment: Most recent
Comments
Comment #1
bleen commentedsubscribing
Comment #2
amarcus commentedudvranto, thank you for your questions.
Regarding Facebook and Twitter:
In order to make this work, we would need to be able to get analytics from somewhere indicating how often a page was shared on Facebook or Twitter. As far as I know, Facebook and Twitter themselves do not provide this, so we would need to look elsewhere.
We currently get email sharing analytics from AddThis.com (which only works, of course, if AddThis.com is used to provide the sharing widget). When the module was written, the only type of metrics it provided were for shares by email. However, it appears that they've recently extended their Analytics API so that it now supports all of the other services as well. So it should now be possible to get metrics on shares to Facebook, Twitter, or any of the other services.
We have no plans at the moment to add this functionality to the Drupal 6 version of Most Popular, but will look at including it in our forthcoming Drupal 7 version later this year.
On the other hand, Most Popular does not currently support multiple instances of a service, so it would not be possible to, say, have an AddThis service that returns emails and other than returns Facebook shares. However, each could be written as a new module that clones most of the functionality of the current AddThis service module. Feel free to develop such a module, and let us know if you need any assistance.
Regarding Ratings:
This should be a straightforward module to write, that would get the list of nodes with the highest ratings from the Drupal database. We have no plans to develop this at the moment, but feel free to write your own. Look at the Drupal services module for help; it would function similarly to the Drupal Most Viewed service which gets nodes from the stats table.
Regarding combined metrics:
We're not sure how this would work. What are you trying to do?
Comment #3
udvranto commentedFacebook and Twitter:
I agree with you. However, there are many websites (including my website) on D6 and they are not going to upgrade any time soon. I would love to see this in the D6 version.
Combined Metrics:
For a simple combined metrics all the measurements for a node must be mapped to a 5 point scale. For example, if we assume that if a post contains 100 comments it would get 5 points for comments. If the post is shared 50 times on facebook it would get 5 points for facebook. Similarly we can map the maximums for other criterion; 25 email share equals to 5 points, 5 ratings equals to 5 points, etc.
Now if a post get 30 comments, 15 share on facebook, 10 email share, and average of 4 ratings, then we get a combined metric of the average of (30/100 comments + 15/50 facebook + 10 /25 email + 4/5 ratings) * 5 = 1.8 * 5 = 9. So the average would be 9/4 = 2.25. I would call this the hotness of the post.
Of course this can be made weighted average by including the weights for individual metrices. For example if comments have higher weights (10 points for 100 comments) then the calculation becomes something similar to GPA calculation. It would be average of (30/100 * 10 + 15/50 * 5 + 10/25 * 5 + 4/5 * 5) / (10+5+5+5) = 0.42.
Note that the upper end of each mapping is just an estimation and may vary widely per website. A little more complicated and more accurate way can be the use of statistical average and standard deviation for each website. For example if a website gets an average of 10 comments per post and a standard deviation of X then this can be used to calculate the correct mapping for a future post. If you want I can explain this more. But I think the simplistic approach is good enough for now.
Comment #4
amarcus commentedYou may want to look at the set of Karma modules, if you haven't already. They use a number of different criteria, including ratings by users, to attach "karma points" to individual nodes. I don't think they support external services, such as AddThis, but it may be possible to hook something like this in.
It should then be a simple matter to write a Most Popular service that simply returns the nodes with the highest Karma points.
Comment #5
socialnicheguru commentedIs it ok to look at this for Drupal 7 as Drupal 6 is being EOL'ed soon?