Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Today's Top Poster(s) on Forum Home Details »»
Today's Top Poster(s) on Forum Home
Version: 2.0, by Hasann Hasann is offline
Developer Last Online: Jun 2021 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.8.x Rating:
Released: 10-28-2008 Last Update: 07-29-2009 Installs: 425
Uses Plugins Auto-Templates
Translations  
No support by the author.

Today's Top Poster(s) on Forum Home by

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:
  1. Enable or Disable Todays top poster(s) modification
  2. Today's top poster(s) limit to how many today's top poster showing
  3. Today's top poster(s) exclude certain users
  4. Today's top poster(s) exclude certain usergroups
  5. Today's top poster(s) exclude certain forums
  6. Added an option to include a list of allowed usergroups so we'll be able to configure it in order to make visible only for selected usergroups
  7. Today's top poster(s) - Rolling 24 Hours
  8. Today's top poster(s) Location
  9. Today's top poster(s) Dispay Pictures
  10. Today's top poster(s) Size Thumbnails
  11. Changed Today's top poster(s) layout to new better look
  12. Add 1 query to forumhome

Installation:

just import the todays_top_poster.xml product file via admincp -> product manager -> import/export products

Tested on:
  • vBulletin 3.7.x
  • vBulletin 3.8.x

FAQ

Question: What are the new features in Version 2.0?
Answer: See Screenshot Below



Live Demo: www.vbulletin-tr.com/forum

Download Now

File Type: zip Todays_Top_Poster(s).zip (342.6 KB, 1334 views)
File Type: zip Todays_Top_Poster(s)_v2.0.zip (316.1 KB, 2062 views)

Screenshots

File Type: jpg Todays_Top_Posters.jpg (35.9 KB, 0 views)
File Type: jpg Todays_Top_Posters_Settings.jpg (121.0 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #172  
Old 01-17-2010, 08:41 PM
TFEX TFEX is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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); 
}
Your "exclude forums" field in "vbulletin options -> Today's Top Poster" will now function properly.
Reply With Quote
  #173  
Old 01-18-2010, 11:56 AM
grey_goose grey_goose is offline
 
Join Date: Jun 2009
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome! Thank you!!

IMO, when you get (and then post for others ) results, you're not arrogant. You're confident. thumbs up.
Reply With Quote
  #174  
Old 02-14-2010, 09:49 PM
NeXuM NeXuM is offline
 
Join Date: Mar 2003
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone know if it works with vbulletin 3.6.4 ?
Reply With Quote
  #175  
Old 03-07-2010, 06:43 PM
Cloverfield Cloverfield is offline
 
Join Date: Dec 2007
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #176  
Old 03-10-2010, 11:47 AM
Narkissos's Avatar
Narkissos Narkissos is offline
 
Join Date: Jan 2009
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet update man. Thanks!
Reply With Quote
  #177  
Old 03-11-2010, 11:13 PM
Chicago_VLNU_4s Chicago_VLNU_4s is offline
 
Join Date: Mar 2006
Location: Chicago
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed..

Moved mine to a custom position below the navbar and it works. 3.8.x
Reply With Quote
  #178  
Old 03-14-2010, 06:38 AM
saghir saghir is offline
 
Join Date: Feb 2010
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for 4.0.2 ???
Reply With Quote
  #179  
Old 03-15-2010, 03:19 AM
Chicago_VLNU_4s Chicago_VLNU_4s is offline
 
Join Date: Mar 2006
Location: Chicago
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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));
code will do so, but it doesn't sync up. Every few hours, the post count increases for the users on the list.
Reply With Quote
  #180  
Old 03-18-2010, 09:15 PM
RitaW RitaW is offline
 
Join Date: Aug 2009
Location: Ireland
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed....thanks
Reply With Quote
  #181  
Old 03-23-2010, 11:34 PM
Cloverfield Cloverfield is offline
 
Join Date: Dec 2007
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05204 seconds
  • Memory Usage 2,331KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete