vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Top 10 Posters Display (https://vborg.vbsupport.ru/showthread.php?t=82254)

Paul M 05-29-2005 10:00 PM

Top 10 Posters Display
 
This modification is no longer available or supported.

This simple hack displays a page with the Top 10 Forum Posters for the last day, 7 days, 28 days and overall.

No vB files need to be edited. The instructions (txt file), the php file, and a screenshot are attached.

A vB Advanced module is also now available for this (thanks to dsboyce8624) - just d/l the zip file.

Pain86 05-30-2005 04:48 PM

its good and all..but its alittle confusin ....

Paul M 05-30-2005 06:23 PM

Quote:

Originally Posted by Pain86
its good and all..but its alittle confusin ....

So is your reply ???

dsboyce8624 05-30-2005 06:58 PM

Installed great. Can you make it work as a module with vBa?

Thanks for the work.

Paul M 05-30-2005 07:11 PM

Quote:

Originally Posted by dsboyce8624
Installed great. Can you make it work as a module with vBa?

vBa ?

I assume that's one of the portals ? - I don't have any knowledge of them.

dsboyce8624 05-30-2005 07:12 PM

vBadvanced. Okay, I'll muck around with it, if it's alright with you.

If I get it working I'll pass you the code as an add on.

Paul M 05-30-2005 07:36 PM

Fine. :)

Gemma 05-30-2005 08:27 PM

Nice hack.

Shows up as an uncached template though.

Can this be fixed please? :)

Paul M 05-30-2005 10:23 PM

Quote:

Originally Posted by darkworld
Shows up as an uncached template though.

Can this be fixed please? :)

Doh ! - I added it to the wrong array - fixed - just replace the php with the new one. :smoke:

dsboyce8624 05-30-2005 10:34 PM

EDIT: Now included in the first post.

ericgtr 05-31-2005 03:55 AM

Cool mod Paul, Installed! (tomorrow that is :) )

Paul M 05-31-2005 07:11 AM

A small typo in the instructions has been fixed.

Ala21 05-31-2005 12:30 PM

Hi Paul, this is what I was waiting for! :)

How do I display the top posters in the navbar just to the Forum Admins? I assume this can be done through conditions.. any advice on what to edit and how? Thank you!

hollyboy 05-31-2005 01:54 PM

nice hack and very easy to install :)
Got 2 questions:

1) can u remove the url from the template?
2) in the list are shown also the banned users, how to avoid this please?


Thanks :)

Paul M 05-31-2005 03:17 PM

Quote:

Originally Posted by Ala21
Hi Paul, this is what I was waiting for! :)

How do I display the top posters in the navbar just to the Forum Admins? I assume this can be done through conditions.. any advice on what to edit and how? Thank you!

Put an if condtional around the link code ;

Code:

<if condition="$bbuserinfo['usergroupid'] == 6">
Navbar Link Code
</if>


Paul M 05-31-2005 03:22 PM

Quote:

Originally Posted by hollyboy
1) can u remove the url from the template

Sorry, please explain what you mean as I don't quite understand.

Quote:

Originally Posted by hollyboy
2) in the list are shown also the banned users, how to avoid this please?

You cannot do this without making the sql queries more complicated. Since banned users cannot post they will soon fall out of the first three columns anyway. Set their post count to 0 via user admin to remove them from the overall list.

Ala21 05-31-2005 04:05 PM

Thank you Paul, everything works great!

installed ;)

Paul M 05-31-2005 06:48 PM

Quote:

Originally Posted by Ala21
Thank you Paul, everything works great!

Glad to hear it. :)

hollyboy 05-31-2005 08:03 PM

I noticed the page loads a bit slower compared to other forum pages.
It means lot of queries are running? It means lot of bandwith is used?

Gemma 05-31-2005 08:13 PM

Quote:

Originally Posted by Paul M
Doh ! - I added it to the wrong array - fixed - just replace the php with the new one. :smoke:

Thank You Paul :)

Paul M 06-01-2005 05:48 PM

Quote:

Originally Posted by hollyboy
I noticed the page loads a bit slower compared to other forum pages.
It means lot of queries are running? It means lot of bandwith is used?

No to both. I suspect you have not added the recommended index to your post table (Step 4). Without this it could take 5+ seconds with a forum your size.

hollyboy 06-01-2005 07:14 PM

Quote:

Originally Posted by Paul M
No to both. I suspect you have not added the recommended index to your post table (Step 4). Without this it could take 5+ seconds with a forum your size.

Quote:

Step 4.

If you don't already have an index on the dateline field in the post table then you should add one ;

ALTER TABLE post ADD INDEX (dateline)
What is this?
What should I do?
Thanks

The other problem I have and I have allready told u is the hack show also the banned users. I did what u suggested to me: I put zero posts to the banned users, but the hack still show a banned member of the "last 28 days" column.
I think u should fix the code a little bit and avoid some "member group" to be displayed in your nice :) hack

Paul M 06-01-2005 07:56 PM

Quote:

Originally Posted by hollyboy
I think u should fix the code a little bit and avoid some "member group" to be displayed in your nice :) hack

As I already told you - I'm not going to do this.

To add the index, run the SQL query either in your ACP, or in phpmyadmin.

ThePimp 06-03-2005 11:51 AM

I wonder if this could be processed via cron job? It seems to take a bit of time to load, maybe if it just ran once a day and just have it output the static page, it would load alot faster?

dsboyce8624 06-03-2005 02:04 PM

Quote:

Originally Posted by ThePimp
I wonder if this could be processed via cron job? It seems to take a bit of time to load, maybe if it just ran once a day and just have it output the static page, it would load alot faster?

Did you run the SQL query?

Code:

ALTER TABLE post ADD INDEX (dateline)

ThePimp 06-03-2005 03:45 PM

Quote:

Originally Posted by dsboyce8624
Did you run the SQL query?

Code:

ALTER TABLE post ADD INDEX (dateline)

Yes, I did.

Paul M 06-06-2005 02:40 PM

How many posts do you get per month ? - this is installed on a forum that does about 23,000 posts per month - and takes less than a second to run.

Mosh 06-07-2005 01:51 AM

Paul,

Thanks again for another great mod :)

jd :)

lairnoc 06-11-2005 11:48 AM

How can i make it less wide? for example only last 24 hours and total posts? 2 coloms?

thanx in advance

lairnoc

yoyoyoyo 06-11-2005 12:09 PM

thanks much! excellent work.

Paul M 06-11-2005 03:40 PM

Quote:

Originally Posted by lairnoc
How can i make it less wide? for example only last 24 hours and total posts? 2 coloms?

thanx in advance

lairnoc

You would have to seriously hack the code and template - more or less a new hack.

lairnoc 06-13-2005 06:51 PM

hmm i can't do that.. i am a super noob. anyone here?

sambacb 06-18-2005 12:05 AM

hello Paul, in version 1,01 of vbadvanced is easy, truly easy to
install yours hack, but in version 2,0 of vbadvanced as I make to
install the module? that practically it is last part that I do not
succeed!!! it makes to know thanks me pir4

dsboyce8624 06-18-2005 12:08 AM

Quote:

Originally Posted by sambacb
hello Paul, in version 1,01 of vbadvanced is easy, truly easy to
install yours hack, but in version 2,0 of vbadvanced as I make to
install the module? that practically it is last part that I do not
succeed!!! it makes to know thanks me pir4

I haven't used 2.0 yet. Sorry.

Paul M 06-18-2005 12:33 AM

Quote:

Originally Posted by sambacb
hello Paul, in version 1,01 of vbadvanced is easy, truly easy to
install yours hack, but in version 2,0 of vbadvanced as I make to
install the module? that practically it is last part that I do not
succeed!!! it makes to know thanks me pir4

Sorry, I know nothing about vbadvanced - the module was done by dsboyce8624 - and it looks like he cannot help you either.

Nephalim 06-21-2005 02:22 AM

O.K. I installed this and it's there. but it does nothing. All I need to know is where and how do I do step 4
Step 4.

If you don't already have an index on the dateline field in the post table then you should add one ;

ALTER TABLE post ADD INDEX (dateline)
Can someone tell me where and how do I do this? Thanks for any and all helpful reply's!!!

Paul M 06-21-2005 02:54 AM

Quote:

Originally Posted by Nephalim
O.K. I installed this and it's there. but it does nothing. All I need to know is where and how do I do step 4

You do exactly as you were told here ;

https://vborg.vbsupport.ru/showthread.php?p=669548

FYI: Step 4 is not a requirement to make it work, just make it faster. If it "does nothing" then you have done something wrong. That said, what exactly do you mean by "does nothing" - what are you doing to view it, and what do you see (and what is the url of your site as you haven't set it in your profile .....).

Nephalim 06-21-2005 02:59 AM

Quote:

Originally Posted by Paul M
You do exactly as you were told here ;

https://vborg.vbsupport.ru/showthread.php?p=669548

FYI: Step 4 is not a requirement to make it work, just make it faster. If it "does nothing" then you have done something wrong. That said, what exactly do you mean by "does nothing" - what are you doing to view it, and what do you see (and what is the url of your site as you haven't set it in your profile .....).

www.Blastology.net

I tried....as I was told in my admin. It said I do not have permission. Well, it's my site and I'm the only admin, so this is why I'm asking questions. Sorry if they're elementary to you. They are not to me.

Paul M 06-21-2005 03:12 AM

Quote:

Originally Posted by Nephalim
www.Blastology.net

I tried....as I was told in my admin. It said I do not have permission. Well, it's my site and I'm the only admin, so this is why I'm asking questions. Sorry if they're elementary to you. They are not to me.

See this for details on running queries in the ACP;

https://vborg.vbsupport.ru/showpost.php?p=626935


Looking at you site, you don't appear to have actually uploaded the topposters.php file.

http://www.blastology.net/topposters.php gives a 404 not found error.

Nephalim 06-21-2005 03:27 AM

I used the cmps version. That's why I gave my address, so people could see it. It's the first page you will go to and it's in the middle on the bottom,doing nothing :)

oh yeah I added the topposters.php too :) it's blank


All times are GMT. The time now is 04:43 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.02106 seconds
  • Memory Usage 1,825KB
  • 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
  • (3)bbcode_code_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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