vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Home Enhancements - Today's Top Poster(s) on Forum Home (https://vborg.vbsupport.ru/showthread.php?t=194954)

lycheepassion 10-15-2009 12:34 AM

how do i findthe settings to display to all, now it only displays to admin/ THanks!

lycheepassion 10-15-2009 12:44 AM

Disregard my last post, I figured it out, AWESOME I LOVE IT THANK YOU<3@

ascott 10-23-2009 06:40 PM

How do I stop it displaying Admin?

iraq angel com 11-11-2009 10:36 AM

Excludeing not work in v2.0

KOM 12-02-2009 12:52 PM

Awesome thx mate. Installed

apiasto 12-04-2009 11:39 AM

kool hack,shukriya

smsoom 12-04-2009 06:30 PM

How can I Customize the Location on forumhome to View today top poster?

grey_goose 12-05-2009 01:08 AM

Great mod, although the user/group filter isn't working for me. Any word on the vBA module?

just.b.jealous 12-29-2009 04:20 AM

User/Group filter does not work for me either. I don't want Admins, Super Mods or Mods to show, I changed all the settings, but they still show.

TFEX 01-17-2010 02:31 PM

Quote:

Originally Posted by Stifmeister2 (Post 1748359)
Can anyone else verify this???

Quote:

Originally Posted by Prisoner (Post 1759439)
I can verify it. It still counts the posts in my Admin section as well.

I just excluded admins from showing on the list.

Nice mod though.

Quote:

Originally Posted by Stifmeister2 (Post 1778170)
I'll try to make it more clear...

I have now 20 posts.
Then I exclude my admin section from the stats and post there. Now I have 21 posts in the stats.

I think it should be still 20??


It's not a big problem though...

Quote:

Originally Posted by bposner (Post 1863069)
Installed but none of the "exclude" options seem to work. Installed as is, no changes or code hack to it.
Example, added form id of Admin forums, but still shows post count.

Thanks for all your work

Quote:

Originally Posted by RedHacker (Post 1899939)
Can i have explain for Exclude forum ID's for private forums......?

Searched through this entire thread and found no definitive resolution to this specific issue. Has anyone figured this out, because it looks as if Hasann isn't going to bother at this point...

When I click on the post-count beside each user it does leave out the posts made in excluded forums in the listed results, but it doesn't diminish the count beside the user itself. On my forum users are gain certain advantages as a result of their posting activity in relevant content forums. This mod is of no use whatsoever if it cannot be configured to display results on the forumhome accurately in this capacity.

Yeah that may come off as arrogant, but the lack of any real response to all of the quoted questions above could also be interpreted as such. ;)

If I can polish up the faulty code and get it to work I'll post what I did here.

TFEX 01-17-2010 08:41 PM

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.

grey_goose 01-18-2010 11:56 AM

Awesome! Thank you!!

IMO, when you get (and then post for others :D) results, you're not arrogant. You're confident. thumbs up.

NeXuM 02-14-2010 09:49 PM

anyone know if it works with vbulletin 3.6.4 ?

Cloverfield 03-07-2010 06:43 PM

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.

Narkissos 03-10-2010 11:47 AM

Sweet update man. Thanks!

Chicago_VLNU_4s 03-11-2010 11:13 PM

installed..

Moved mine to a custom position below the navbar and it works. 3.8.x

saghir 03-14-2010 06:38 AM

for 4.0.2 ???

Chicago_VLNU_4s 03-15-2010 03:19 AM

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.

RitaW 03-18-2010 09:15 PM

Installed....thanks

Cloverfield 03-23-2010 11:34 PM

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?

Cloverfield 03-25-2010 03:51 PM

Quote:

Originally Posted by Hasann (Post 1746869)
Hmm

Search this code in FORUMHOME template

PHP Code:

$template_hook[forumhome_wgo_pos2

if you don't have this code add this above code after this below code

PHP Code:

<!-- end logged-in users -->
</if> 


THANK YOU!! This worked :D

cbiweb 04-23-2010 11:30 AM

1 Attachment(s)
Is there a way to take out the extra space that occurs before each comma? See the screenshot, you will see the member's name and post count, then a space, then a comma. I want to get rid of that space.

BlackxRam 06-02-2010 11:29 PM

Is there a way to fore go the ONLY 24 hour limitation and have it ALL TIME instead? Anyone know where I could modify that?

BlackxRam 06-02-2010 11:42 PM

Quote:

Originally Posted by Chicago_VLNU_4s (Post 2003867)
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.

I want to do all time top thread starters personally

grumpystumpy 10-01-2010 06:48 PM

I have two style templates, the coding in the aNtime style is installed correctly as descibed earlier. The template I am using has been modified. The following is the coding around the Welcome_to_our_newest_member line.

<p>{vb:rawphrase welcome_to_our_newest_member_x, {vb:link member, {vb:raw newuserinfo}}, {vb:raw newuserinfo.username}}</p>
{vb:raw
template_hook.forumhome_wgo_stats}
</div>
</div>

I am running vb 4.0.3, I just updated from the 1.2 version to the 2.0 and it will not display. I tried installing the code mentioned between the </div> and it just displays the code, not the stats...any suggestions on how to get it to display?

onealien 10-02-2010 09:25 PM

installed and working great...:up:


thanks!

Levi75 10-06-2010 08:29 AM

The two versions are displaying nothing in my forum. Is there any problem with 3.8.4 version?

Fivestones 10-27-2010 07:00 PM

I have added it and it realy looks great Thanbks a lot ...

Eplexx 11-27-2010 05:37 PM

Works great thanks!

ricardoNJ 03-05-2011 06:20 PM

Thanks! :)

BucShot 03-06-2011 08:49 AM

1 Attachment(s)
This mod works very well (thanks Hasann!) however, for those not seeing the display or for those that would like to move the display to a more suitable place in their forumhome template, you might want to try this.

Set the mod up in your ACP and then remove $template_hook[forumhome_wgo_pos2] from your forumhome template. (all styles - you don't need it) Pick that perfect spot and add this code to your forumhome template.
Code:

<if condition="$todays_top_posters">
<div class="smallfont">$top_posters_title $todays_top_posters</div><else />
<div class="smallfont">$vbphrase[todays_top_poster_no_posters]</div>
</if>

You should end up with a very configurable single line display that looks like this.

vbformistan 07-20-2011 08:02 AM

Thanks for subject teach..:)

tvguy347 09-03-2011 04:12 AM

I just installed this mod, and it says it's enabled, but it's not showing up on my forum. :S

GhostHunter2010 01-05-2012 02:56 AM

hi arkadash can u do albanian langue bro:)

TRABZONLUKAPLAN 09-04-2012 11:37 PM

Its works great. Thank you very much.

Fivestones 09-07-2012 06:04 PM

Got new site so i had to get it again thanks Great hack..

NOCTURNES 09-13-2012 04:11 PM

Looks like a really good mod. Thanks!

Edit: The exclude forum function is not working. It counts posts in those forums it seems.
Edit Edit: found the solution here: https://vborg.vbsupport.ru/showpost....&postcount=171

Terrablade 10-29-2013 01:24 AM

The exclude USER ID function doesnt work :/
Still showing the user i added not to be shown.

senche 11-08-2013 11:15 AM

Thanks

umut17 01-11-2014 12:54 AM

thanks man, its perfect :)


All times are GMT. The time now is 08:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01371 seconds
  • Memory Usage 1,820KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete