vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Top Posters List (https://vborg.vbsupport.ru/showthread.php?t=232021)

audis3 10-16-2010 09:06 PM

Can it be done in block with tabs?

Paul M 10-17-2010 01:33 PM

Nope.

Kyo-dono 12-23-2010 08:38 AM

Can you add mini-avatars and link with username too? Very nice add-on. :)

Installed.

Paul M 12-23-2010 09:43 AM

You can edit the templates to do that if you prefer it on your site, but i wont be adding them as a default in the mod. :)

ProFifaLeagues 12-23-2010 10:24 AM

Paul is there a way to have this show in the forum blocks ?

Paul M 12-23-2010 11:20 AM

Not without writing a seperate mod, the system for blocks is very diferent.

ProFifaLeagues 12-23-2010 01:02 PM

Cheers for the quick answer Paul!
Maybe one for the future???

lycheepassion 12-24-2010 09:14 AM

Hey I installed but I don't see it? Need it for a giveaway thanks!

ceho 01-10-2011 04:33 PM

Looks like this has stopped working on vB 4.1.1 Beta, can anybody confirm this or is it just my test forum?

Paul M 01-10-2011 08:15 PM

Its your forum. Its fine on my 4.1.1 beta.

ceho 01-11-2011 10:44 AM

Looks like I was too tired last night, I stupidly forgot that I changed some usergroup settings, of course they're not counted in a test forum.... Argh! Sorry for the confusion mate!

Kyo-dono 01-13-2011 06:29 AM

Working this mod in 4.1.1?

Paul M 01-13-2011 11:03 AM

As it says ;

Quote:

vB Version: 4.x.x

Kyo-dono 01-13-2011 11:36 AM

Thanks. Is it possible to remove "Top Posters by Paul Marsden" at the bottom?

Paul M 01-13-2011 03:52 PM

Why ?

Kyo-dono 01-13-2011 05:23 PM

I like your mod. Thank for it. :)
But i don't like the optic of bottom line. Its only a feeling. I can't explain it. ^^
Is there a legal way to remove the branding?

Paul M 01-13-2011 08:07 PM

Anyone who donates is free to remove the branding. :)

ehsanix 01-14-2011 03:39 PM

Paul M-how to apply this to a sidebar block?
help plsssssss

Paul M 01-14-2011 03:52 PM

You cannot, its not designed for the sideblock.

jgt58 01-17-2011 02:11 PM

with a css edit for background color , works flawlessly on 4.1.1. Might wanna consider putting background color as a option in the options for those who dont know how to edit css sheets for dark colored forums

mindway 02-06-2011 11:05 AM

how can i display this on top of each page... for instance call the plugin at top of each page...

Paul M 02-06-2011 08:20 PM

You cannot do that, its designed to be its own page.

beatyourtruck 03-09-2011 01:46 AM

Excellent Paul. Working perfectly on 4.1.2.

Thank you! 8)

Strauss 03-29-2011 12:21 PM

awesome thanks!

dlewisr 04-20-2011 06:19 PM

Cheers mate. Job's a good 'un

Alan_SP 04-26-2011 12:14 AM

Quote:

Originally Posted by mindway (Post 2159340)
how can i display this on top of each page... for instance call the plugin at top of each page...

Quote:

Originally Posted by Paul M (Post 2159554)
You cannot do that, its designed to be its own page.

Well, it could be done, if he really want it and want to do a bit work on it.

You need to change template Top_posters, remove everything except table code for creating list and usual HTML page code. The rest is just how vBulletin creates its own pages, so it could go and in this case it should go.

Then find template that is used everywhere. You should use either navbar or footer (i.e. if you want it on top or bottom of your forum). After that, just put iframe html code calling top posters. :)

If you don't know about what I'm talking, don't do this.

Alan_SP 04-26-2011 12:26 AM

Paul, excellent mod, really like it. I use it for Top 100 posters, so I needed to add poster's position number (you can get lost in this many posters).

If someone wants to do this, edit this template:

Top_Posters_Bit

find:
HTML Code:

{vb:raw posts.username}
add before:
HTML Code:

{vb:raw posts.row}.
As posts.raw isn't defined, you need to create it. Edit plugin Top posters that uses hook misc_start (all plugins have same name, so look for hook).

Find:

PHP Code:

                $posts['userid'] = $posts[$col]['userid'];
                
$posts['username'] = $posts[$col]['username'];
                
$posts['postcount'] = vb_number_format($posts[$col]['postcount']);
                
$templater vB_Template::create('Top_Posters_Bit');
                
$templater->register('posts',$posts);
                
$toppostrow .= $templater->render(); 

Add right before or after this code:
PHP Code:

$posts['row'] = $row+1

That's it, you have users postion before users name. :) I attached modified file.

billstelling 04-26-2011 03:00 AM

awesome mod! I like it allot, well done.

jack150464 06-05-2011 10:45 PM

How do I change the background color?

thanks

Paul M 06-06-2011 12:12 PM

You would need to edit the custom CSS.

rasp187 06-12-2011 04:13 AM

Quote:

Originally Posted by Paul M (Post 2204215)
You would need to edit the custom CSS.

Any way you can detail this more, like how I make it darker for my dark skins instead of white? Great mod, btw. Thanks a lot!

Paul M 06-12-2011 10:35 AM

Sorry, I cannot give specific examples - the custom css is a template supplied as part of the mod, you can edit as you wish.

Paul M 10-16-2011 12:21 PM

Updated: This is now available for the 4.1.x series of vBulletin only.

Alan_SP 12-09-2011 09:17 AM

Paul, could you make that users' names appear how they look like in postbit (with different colors)?

vividbreeze 01-04-2012 01:15 AM

Is there a homepage widget for this too? Kinda like the top 5 poster one I saw long ago?

nodofollow 01-08-2012 06:57 PM

work with 4.1.9 ?

Paul M 01-08-2012 08:43 PM

As it says : vB Version: 4.1.x

Danny Diamond 01-09-2012 02:12 AM

Installed. It would be cool if you could make it so it appeared under "Who's online" and a bit smaller.

Overall its a sweet mod though. Thanks for it.

lazytown 01-30-2012 10:07 PM

This is a great mod, and I used to run it on 3.x. However, I had to disable it because it is an absolute resource hog on my large forum (5+mil posts). Running it the first time spiked my server load for 30 seconds from 2 to 8 (and tied up mysql). subsequent runs still take over 15 seconds. This is on a very fast server (8cpu, 12gig, 15K scsi raid 10, xcache, sphinx, etc).

Are there any options to cache tho results or reduce server load? Maybe a cron job once per day?

lazytown 01-30-2012 10:30 PM

Interesting... If I enable the monthly count, it takes forever.. If I do 28 days it also takes forever. But if I do 1 day, 7 days and all time, it takes only a second or two. 14 days maybe adds 1 second. There is a threshold of some type where it takes vastly longer, so it's not linear. Could it have to do with some cache filling up (vbulletin, mysql or xcache)?


All times are GMT. The time now is 05:09 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.01506 seconds
  • Memory Usage 1,792KB
  • 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
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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