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)

Paul M 01-31-2012 06:40 PM

Do you have the Post.Dateline index on your forum ?

Do you use the usergroup filtering ?

lazytown 01-31-2012 10:08 PM

Thanks for the reply.

Yes, I have a Post.Dateline index.

I tried it with and without usergroup filtering, no noticeable difference.

Have you tried it on a very large forum?

Nirjonadda 03-03-2012 01:24 PM

Installed...working fine on 4.1.10

Paul M 03-03-2012 05:24 PM

Quote:

Originally Posted by vissa (Post 2294776)
Have you tried it on a very large forum?

My forum has 2 million posts, it renders the whole page in < 1 second.

Trevor Matthews 03-03-2012 06:50 PM

Installed, works perfectly in 4.1.11

ZEN888 05-30-2012 05:54 AM

Hi,
I installed the 4200 on VB4.2, it did not work. No display of any numbers.

Paul M 05-30-2012 11:27 AM

Works just fine for me on 4.2

ZEN888 06-01-2012 12:35 AM

It is okay now. My forum was upgraded from VB4.1.11 to VB4.2. I needed to uninstall the older version of Top Posters, and to revert the Top Posters templates left in the system before I could install the VB4.2 Top Posters. Thanks.

DevilGreeny 06-11-2012 06:53 PM

Work fine with VB4.1.12
Could you please help me a small trouble?

I want to display more poster, with page navigation ( page 1, page 2... last page )
I want to display the Overall column, could you please edit that ?

Please help me

Paul M 06-11-2012 08:34 PM

Quote:

Originally Posted by DevilGreeny (Post 2338790)
I want to display more poster, with page navigation ( page 1, page 2... last page )
I want to display the Overall column, could you please edit that ?

1. You can display more by changing the setting, however, there is no paging in this.

2. Edit what ? There is already an overall column.

DevilGreeny 06-12-2012 08:58 AM

Quote:

Originally Posted by Paul M (Post 2338805)
1. You can display more by changing the setting, however, there is no paging in this.

2. Edit what ? There is already an overall column.

thanks for your support
i mean that , there is only one "overall" column, delete the week,month column

how to display like that ?

Paul M 06-12-2012 04:04 PM

Sorry, but I still dont understand what you are asking.

barakuda 06-12-2012 06:58 PM

Tagged for later

DevilGreeny 06-13-2012 04:25 AM

I mean that :

I only want a page where i can display list member who post much ( overall ) in all time
I don't need the column : week, month , i only need the column : overall
Could you please edit that for me ?

DevilGreeny 06-19-2012 06:52 PM

Please read it and help me Paul :(

Paul M 06-20-2012 09:03 PM

You need to help yourself first.

Simply turn the other columns off.

It will look a bit odd tho.

tommyxv 07-28-2012 05:52 PM

Paul, any way to convert this to a Top Referrer mod? Or add a top referrer column?

emperatour 08-21-2012 08:19 AM

In version 4200, my forum path will be redirected to the plugin's page:
PHP Code:

http://www.myforum.com/forum/
to
http
://www.myforum.com/forum/misc.php?do=topposters 

This way I can access the forum index only using this page /forum/forum.php.

Can you tell me what may cause this ?

Thanks,

Paul M 08-22-2012 01:34 AM

I dont understand your post tbh.

emperatour 08-23-2012 05:10 PM

Quote:

Originally Posted by Paul M (Post 2358888)
I dont understand your post tbh.

After enabling this plugin, when I browse to www.myforum.com/forum/ the page redirects to www.myforum.com/forum/misc.php?do=topposters instead of redirecting to www.myforum.com/forum/forum.php.

Paul M 08-24-2012 12:48 AM

There is no code to perform redirects in it.

Amaury 11-24-2012 12:51 AM

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?
http://i101.photobucket.com/albums/m...TopPosters.png


https://vborg.vbsupport.ru/

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;
}


Amaury 11-28-2012 03:16 AM

Quote:

Originally Posted by Amaury25 (Post 2384389)
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.

SoloX 12-15-2012 07:21 AM

generates lots of load on the server with many users. anyway to cache this?

Paul M 12-16-2012 10:12 PM

Multiple repeat posts removed. If someone is going to answer you they will, we dont need repeated posts with huge images every week.

SoloX 12-23-2012 02:31 AM

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 


Amaury 12-29-2012 10:48 PM

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.

Paul M 12-30-2012 12:06 AM

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.

Amaury 12-30-2012 12:22 AM

Quote:

Originally Posted by Paul M (Post 2393522)
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! :)

Paul M 12-30-2012 11:20 PM

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

Amaury 12-30-2012 11:22 PM

Quote:

Originally Posted by Paul M (Post 2393684)
You should not change the code, but simply edit the phrase.

Thanks, Paul. I'll do that now.

root2012 04-26-2013 05:44 AM

Quote:

Originally Posted by emperatour (Post 2359375)
After enabling this plugin, when I browse to www.myforum.com/forum/ the page redirects to www.myforum.com/forum/misc.php?do=topposters instead of redirecting to www.myforum.com/forum/forum.php.



exactly the same problem I have I already did fix it for

xxdestinyxx 01-02-2014 11:34 PM

Hey Paul,

My forum has been using this application for quite awhile and we LOVE it.

Recently we implemented a change where if a member posts less than 100 characters it does not add to their post count. We used this mod to do it.

The issue which has arisen is that although their post count does not increase, on your modification it still does. We have been using your modification to keep track of how many posts a member makes each month.

Is it possible for me to edit the code somewhere to have it pulling from the active post count and not just if the member makes a post at all? And by "possible for me to edit" I mean, if this is possible can you help show me how? (Location/what to replace etc).

I would sincerely appreciate it.

Paul M 01-03-2014 12:45 AM

For the most part this counts the physical posts, so it would not be very easy to exclude posts certain posts. You could probably do it with some fancy SQL check, but that would likely put a burden on the query processing, which would certainly slow it down on larger forums.

xxdestinyxx 01-04-2014 03:42 PM

Alright, thank you Paul :)

We only average about 50 members, but we're using justhost at the moment and they suck when it comes to SQL connections so I'd rather not burden it.

RSNF 02-14-2014 03:36 PM

Great Mod thanks for this!!


All times are GMT. The time now is 01:59 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.01461 seconds
  • Memory Usage 1,826KB
  • 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
  • (8)bbcode_code_printable
  • (6)bbcode_php_printable
  • (8)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
  • (36)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