Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Top Posters List Details »»
Top Posters List
Version: 4.2.0.0, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.2.x Rating:
Released: 01-02-2010 Last Update: 05-23-2012 Installs: 311
Uses Plugins Auto-Templates
Translations  
No support by the author.

As of 23 Nov 2017 this modification has been withdrawn.

This displays a page with the Top Forum Posters for a given set of periods. Two of the periods are fixed ('This Month' & 'Overall') but can be turned off in the options. The other three periods are user definable (in days). The default values for these columns are 1 day, 7 days & 28 days (note that 0 = off).

* The number of posters to be shown can be set, the default is the Top 10 posters.
* You can select which usergroups are included (or excluded) in the count, so members in banned groups etc are not shown
* You can exclude individual userids such as rss posters.
* You can exclude forums from the counts - however, this exclusion does not apply to the final "overall" count.
* If enabled, this will also add a link to your Quick Links or Community Links menus.
* There is an option to prefix the link path if you use something like CMPS.
* Usergroup & forum settings now display actual lists rather than needing csv id lists.

To install just unzip the xml file and import it using the Product Manager


History:

v4.0.1 : 03-Jan-2010 : Initial release for vb 4.0.0 Gold.
v4.0.2 : 12-Jan-2010 : Fixed WOL location. Added userid exclusion facility.
v4.0.3 : 17-Jan-2010 : Updated settings display. Added forum exclusion facility.
v4.0.4 : 20-Jan-2010 : Internal update, not released.
v4.0.5 : 26-Jan-2010 : Various updates.
v4.0.6 : 16-Feb-2010 : Settings update.
v4.0.7 : 27-Feb-2010 : Style code updates for vB 4.0.2.
v4.0.8 : 26-Sep-2010 : Install Code Updated.
v4.0.9 : 06-Nov-2010 : Install code updated.

v4.1.0 : 04-Dec-2010 : Updated for vBulletin 4.1.
v4.1.1 : 05-Mar-2011 : Fix possible array issue.

v4.1.7.0 : 16-Oct-2011 : Updated for vBulletin 4.1.7.

v4.2.0.0 : 24-May-2012 : Updated for vBulletin 4.2.0.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
Eliam, obglobal.net, Stormlilly

Comments
  #102  
Old 08-24-2012, 12:48 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no code to perform redirects in it.
Reply With Quote
  #103  
Old 11-24-2012, 12:51 AM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed!

Two questions, though:
  1. What controls the background?
  2. Is it possible to create a plugin hook or something to make the Current Activity be "Viewing Page Top Posters" (Top Posters being a link) instead of that Viewing Top Posters with the URL?





EDIT: Never mind the first one.

I fixed it by inserting this into the additional.css template, changing the color accordingly when I added it to the additional.css template for Dance of the Dream Eater (Light).

Code:
.toptable td {
    border: 1px solid black;
}

.toptable .alt1 {
    border: 1px solid black;
    background: #323232;
}

.toptable .alt2 {
    border: 1px solid black;
    background: #323232;
}
Reply With Quote
  #104  
Old 11-28-2012, 03:16 AM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Amaury25 View Post
Is it possible to create a plugin hook or something to make the Current Activity be "Viewing Page Top Posters" (Top Posters being a link) instead of that Viewing Top Posters with the URL?[/LIST][IMG]http://i101.photobucket.com/albums/m62/AmauryGarcia/TopPosters.png[

http://i101.photobucket.com/albums/m...Activity-2.png
Bump.
Reply With Quote
  #105  
Old 12-15-2012, 07:21 AM
SoloX SoloX is offline
 
Join Date: Jun 2002
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

generates lots of load on the server with many users. anyway to cache this?
Reply With Quote
  #106  
Old 12-16-2012, 10:12 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Multiple repeat posts removed. If someone is going to answer you they will, we dont need repeated posts with huge images every week.
Reply With Quote
  #107  
Old 12-23-2012, 02:31 AM
SoloX SoloX is offline
 
Join Date: Jun 2002
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is what i did to reduce the load on the server.

i created a cron job to run every 4 hrs and save output to an html file. i then created a link in Quick Links ..

PHP Code:
0 0,4,8,12,16,20 * * *  /usr/bin/curl http://mydomain.com/forums/misc.php?do=topposters > /var/www/localhost/htdocs/forums/top.html 
Reply With Quote
  #108  
Old 12-29-2012, 10:48 PM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I got it to sort of work.

online_location_unknown:

Code:
if ($userinfo['activity'] == 'topposters')
{
    $handled = true;
    $userinfo['action'] = $vbphrase['top_view'];
    $userinfo['where'] = '<a href="misc.php?do=topposters">'.$vbulletin->options['bburl'].'/misc.php?do=topposters</a>';
}
I changed it to this:

Code:
if ($userinfo['activity'] == 'topposters')
{
    $handled = true;
    $userinfo['action'] = "Viewing Page";
    $userinfo['where'] = '<a href="misc.php?do=topposters">'.$vbulletin->options['bburl'].'/misc.php?do=topposters</a>';
}
However, I still can't get the URL to just be a simple hyperlink (Top Posters).

Code:
if ($filename == 'topposters.php')
{
    $userinfo['activity'] = 'topposters';
}
I tried changing that to this, but it just made it appear as an unknown location:

Code:
switch ($filename == 'topposters.php')
{
    case 'topposters.php':
        $userinfo['activity'] = 'Top Posters';
        break;
}
Any help?

EDIT: I changed online_location_unknown again and made it this:

Code:
switch ($userinfo['activity'])
{
    case 'Top Posters':
        $userinfo['where'] = '<a href="misc.php?do=topposters">'.$vbulletin->options['bburl'].'/misc.php?do=topposters</a>';
        $userinfo['action'] = "Viewing Page";
        $handled = true;
        break;
}
...and the activity name is still not working how I want it to.

This is what it should be:
Viewing Page Top Posters

This is what it says:
Viewing Page http://www.kh-mediaflare.net/misc.php?do=topposters

Any help will be greatly appreciated.
Reply With Quote
  #109  
Old 12-30-2012, 12:06 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You seem to be over complicating a simple change.

Simply replace ;
PHP Code:
$userinfo['where'] = '<a href="misc.php?do=topposters">'.$vbulletin->options['bburl'].'/misc.php?do=topposters</a>'

With
PHP Code:
$userinfo['where'] = '<a href="misc.php?do=topposters">'.$vbphrase['top_list'].'</a>'

Nothing else needs to be done.
Reply With Quote
Благодарность от:
Amaury
  #110  
Old 12-30-2012, 12:22 AM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
You seem to be over complicating a simple change.

Simply replace ;
PHP Code:
$userinfo['where'] = '<a href="misc.php?do=topposters">'.$vbulletin->options['bburl'].'/misc.php?do=topposters</a>'
With
PHP Code:
$userinfo['where'] = '<a href="misc.php?do=topposters">'.$vbphrase['top_list'].'</a>'
Nothing else needs to be done.
I really appreciate the help, Paul, and I apologize. I've modified plugins for activity name stuff before, and this one was just getting to me because of that extra information.

Anyway, I reverted the changes I did and changed what you told me to change, and it worked.

The only additional change I made was changing this:

Code:
$userinfo['action'] = $vbphrase['top_view'];
...to this:

Code:
$userinfo['action'] = "Viewing Page";
That way it says Viewing Page Top Posters instead of Viewing Top Posters Top Posters.

Thanks again, Paul!
Reply With Quote
  #111  
Old 12-30-2012, 11:20 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should not change the code, but simply edit the phrase.
Reply With Quote
Reply

Thread Tools

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 05:03 PM.


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.07144 seconds
  • Memory Usage 2,332KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_code
  • (5)bbcode_php
  • (2)bbcode_quote
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete