Home › Support › Popular Widget › "Most Viewed" is NOT working.
Tagged: most viewed, Viewed
-
AuthorPosts
-
June 5, 2012 at 1:46 am #47645ReasonParticipant
Hi. Stopping by because all of the other “popular post” plugins are absolute garbage. I went through about 10 before I found this beauty.
It’s perfect. It has tabs and everything. It’s just that “Most Viewed” is not working on “visits” or “views”. I have no caching plugins. I’ve tried fooling around with all of the options. “Most Commented” and the other tabs work splendidly though.
Please fix it.
My plugin list of potential conflicts:
Askimet
CommentLuv
Comment Redirect by Roast
Cetnextual Related Posts
Easy Spoiler
Google AJAX Feed Widget
Google XML Sitemaps
K2 Hook Up
NextGEN Gallery
Organize Series
Popular Widget
Primary Feedburner
Simple Footnotes
Sociable
Subscribe to Comments Reloaded
Top Commentators Widget
Wordpress SEO
WP-Pagenavi
Wp Maitenance ModeJune 5, 2012 at 2:23 pm #47656Xpark MediaKeymasterFrank,
You mention that you don’t have any other plugin but I think this is a theme issue, try using the default theme. Also try just re-saving the widget settings specially if you just updated to the new version.
The plugin uses cookies if you are calculating visits, if not the views should register just by visiting any content. The plugin uses is_single(), is_page(), is_singular() to validate content.
June 5, 2012 at 4:23 pm #47662ReasonParticipant@Hax
“Frank”? My name is Reason. You’re going to ignore the person who started this thread and respond only to someone who comments? Not very professional.
Please stop making excuses and fix this for your users. It’s a plugin issue. It has nothing to do with us. We appreciate your hard-work, but this is painful. It’s not working for either of us, and others too.
June 5, 2012 at 9:08 pm #47664Xpark MediaKeymasterSorry for not repaying directly to you, I figure out both will benefit from my post.
I will test it and if there is a bug it will be fix as soon as I can.June 6, 2012 at 10:26 am #47682sangParticipantHax —
I think the problem with Most Viewed posts not display is caused by a bad SQL query in the included.php file:
In the query around line #182 it says: “AND post_date >= ‘$time'”. If you echo $time to the screen, you’ll see that $time is being returned as the current time on the server, thus there are no search results that match the query. The result set will always be 0.
I believe you need to calculate the a different $time variable based on the “In the last days X days” setting from the widget and update the SQL query.
I hope this helps. I love the widget otherwise and hope that you can keep it going.
Cheers,
SangJune 6, 2012 at 10:34 am #47683sangParticipantIgnore my last post! The plugin is working fine…it’s not a problem with the query. I’m using a “in the last days” setting of 30 days and all of my posts were backdated to a date over 30 days ago. Once I changed the X days to 90 days it worked fine.
I was under the impression that the widget queried for views in the last X days, but it’s just reading a running count # for posts that have a publish date within the timeframe.
Thanks again for the plugin!!!
SangJune 9, 2012 at 7:41 am #47783ReasonParticipant@ Hax
Thank you for the update with 1.5.1. I love you and you’re a very talented handsome man with a best top posts widget.
Sorry for making you put up with my anger earlier.
-
AuthorPosts
- You must be logged in to reply to this topic.
… [Trackback]…
[…] Read More here: xparkmedia.com/support/topic/most-viewed-is-not-working/ […]…