The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Today's Top Poster(s) on Forum Home Details »» | |||||||||||||||||||||||||||||||||
This Product brought to you by Www.vBulletin-TR.Com Description: This will add a mini statistic to your Forum Home under Whats Going On. It will display the "Today's Top Poster(s) on Forum Home" in your vBulletin forums. Features:
Installation: just import the todays_top_poster.xml product file via admincp -> product manager -> import/export products Tested on:
FAQ Question: What are the new features in Version 2.0? Answer: See Screenshot Below Live Demo: www.vbulletin-tr.com/forum Download Now
Screenshots
Supporters / CoAuthors Show Your Support
|
Comments |
#172
|
|||
|
|||
Go to plugin manager, find "Product: Today's Top Poster's"
Edit "Today's Top Posters" plugin Replace entire PHP code with this: Code:
if ($show['todays_top_poster']) { $todays_top_posters = ''; $limit = $vbulletin->options['todays_top_posters_limit']; $exclude_usergroups = $vbulletin->options['todays_top_posters_usergroups']; $exclude_users = $vbulletin->options['todays_top_posters_users']; $exclude_forums = $vbulletin->options['todays_top_posters_exclude_private_forums']; if ($vbulletin->options['24_hours_top_posters']) { $top_posters_title = $vbphrase['24_hours_top_posters']; $dateline = TIMENOW - 86400; } else { $top_posters_title = $vbphrase['todays_top_posters']; $currenttime = date('YmdHis',TIMENOW - intval($vbulletin->options['hourdiff'])); $dateline = TIMENOW - (substr($currenttime, 8, 2) * 3600 + substr($currenttime, 10, 2) * 60 + substr($currenttime, 12, 2)); } unset ($todays_top_posters); $top_posters = $vbulletin->db->query_read_slave(" SELECT COUNT(post.dateline) AS postcount, post.userid, user.userid, post.threadid, thread.threadid, user.username, user.lastpost, user.lastpostid, user.posts, user.usergroupid, thread.forumid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid FROM " . TABLE_PREFIX . "post AS post LEFT JOIN " . TABLE_PREFIX . "user AS user ON (post.userid = user.userid) RIGHT JOIN " . TABLE_PREFIX . "thread AS thread ON (post.threadid = thread.threadid) " . iif(!empty($exclude_usergroups), "AND user.usergroupid NOT IN ($exclude_usergroups)") . " " . iif(!empty($exclude_users), "AND user.userid NOT IN ($exclude_users)") . " " . iif(!empty($exclude_forums), "AND thread.forumid NOT IN($exclude_forums)") . " WHERE post.dateline > $dateline AND user.posts != '0' GROUP BY post.userid ORDER BY postcount DESC LIMIT 0, $limit"); while($top_poster = $db->fetch_array($top_posters)){ $top_poster[musername] = fetch_musername($top_poster); $show['comma_leader'] = ($todays_top_posters != ''); eval('$todays_top_posters .= "' . fetch_template('todays_top_poster_bit') . '";'); } eval ('$template_hook[forumhome_wgo_pos2] .= "' . fetch_template ('todays_top_poster') . '";'); $db->free_result($top_posters); } |
#173
|
|||
|
|||
Awesome! Thank you!!
IMO, when you get (and then post for others ) results, you're not arrogant. You're confident. thumbs up. |
#174
|
|||
|
|||
anyone know if it works with vbulletin 3.6.4 ?
|
#175
|
|||
|
|||
Installed but it doesn't work. I installed both versions and neither works. I really want this. What do you think is wrong. I have disabled many other hacks to see if that was the problem but it still won't work.
|
#176
|
||||
|
||||
Sweet update man. Thanks!
|
#177
|
|||
|
|||
installed..
Moved mine to a custom position below the navbar and it works. 3.8.x |
#178
|
|||
|
|||
for 4.0.2 ???
|
#179
|
|||
|
|||
Hey, anyone know how to make this show for the top posters of the week, rather than day?
I see changing the 3600 from the Code:
$dateline = TIMENOW - (substr($currenttime, 8, 2) * 3600 + substr($currenttime, 10, 2) * 60 + substr($currenttime, 12, 2)); |
#180
|
|||
|
|||
Installed....thanks
|
#181
|
|||
|
|||
HELP. Just found out it works on an old redunant template but not on the one that every member and guest sees. What could be the problem?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|