Adriano Faria Posted April 23, 2011 Posted April 23, 2011 File Name: (SOS31) TOP 20 Popular PostFile Submitter: Adriano FariaFile Submitted: 23 Apr 2011File Updated: 24 Apr 2011File Category: Hooks and Plugins This hook will add a link to a new statistic of your board: TOP 20 Popular Post. This new link will appear beside Today's top 20 posters in board index. The list of popular post will list only topics/posts that the user has permission to read.Click here to download this file
surinp3 Posted April 23, 2011 Posted April 23, 2011 The link doesn´t work for the post in question. On the page the links go to xxxxx.com/forum/t/11587-{info[ And not the post itself. Same for the link to the Topic. Other than that, I must say this hook fits my forum 101%. Great hook for me.
surinp3 Posted April 23, 2011 Posted April 23, 2011 Found the bug. the $ is missing in front of "info"s on the "seo_title" field.
broni Posted April 23, 2011 Posted April 23, 2011 Top 20 posts (I guess, the "s" is missing in a hook name)? How exactly is "posts" popularity established?
surinp3 Posted April 24, 2011 Posted April 24, 2011 Top 20 posts (I guess, the "s" is missing in a hook name)? How exactly is "posts" popularity established? Reputation
Adriano Faria Posted April 24, 2011 Author Posted April 24, 2011 The link doesn´t work for the post in question. On the page the links go to xxxxx.com/forum/t/11587-{info[ And not the post itself. Same for the link to the Topic. Other than that, I must say this hook fits my forum 101%. Great hook for me. Found the bug. the $ is missing in front of "info"s on the "seo_title" field. Yeap, forgot a $ in a link! :) File reuploaded and version kept since it is more like a typo than a bug. :)
KittyCanuck Posted April 25, 2011 Posted April 25, 2011 I installed the hook, but it only seems to appear if I use the default IPB skin. Any way to make it appear in other skins?
Adriano Faria Posted April 25, 2011 Author Posted April 25, 2011 The hook searchs for a text in board index ( {$this->lang->words['sm_today_posters']}</a></li> )... if the author of your customized skin made it different, hook won't create the link. You'll need to create manually the link in boardIndexTemplate, in stats bar:<a href="{$this->settings['board_url']}/index.php?app=forums&module=extras§ion=stats&do=popular" title="{$this->lang->words['top20_popularpost']}">{$this->lang->words['top20_popularpost']}</a>
scatteredbomb Posted May 25, 2011 Posted May 25, 2011 I assume this shows the most popular post of all time? Is it possible to do just the most popular for the last 24 hours?
Adriano Faria Posted May 25, 2011 Author Posted May 25, 2011 No. It shows a top of post most 'repped'.
scatteredbomb Posted May 25, 2011 Posted May 25, 2011 No. It shows a top of post most 'repped'. Right, is there no way to limit is to the most 'repped' in the last 24 hours? Just looking through the XML file, maybe it'd be possible to change the sql query in someway to only pull for the last 24 hours?
Adriano Faria Posted November 29, 2011 Author Posted November 29, 2011 Updated: http://community.invisionpower.com/files/file/5019-sos32-top-20-popular-post/
Recommended Posts
Archived
This topic is now archived and is closed to further replies.