vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   top posters within a certain period of time (https://vborg.vbsupport.ru/showthread.php?t=117849)

kofoid 06-06-2006 11:56 PM

top posters within a certain period of time
 
Is there a way to get the top 10 posters within XX period of time for v3.5.2? Help! :)

gingery 08-01-2006 02:23 PM

I'm looking for the same thing for 3.6 to place in the left column on all of my forum pages.

Paul M 08-01-2006 03:27 PM

Quote:

Originally Posted by kofoid
Is there a way to get the top 10 posters within XX period of time for v3.5.2? Help! :)

https://vborg.vbsupport.ru/showthread.php?t=92177

gingery 08-01-2006 04:02 PM

Paul - I have your 3.6 RC version installed already. Is there a way to pull the top posters from the last 24 hours (only) and display it in a left column on the forum pages?

Paul M 08-01-2006 04:42 PM

Not with that hack their isn't.

You could copy the relevant SQL and write your own code to display it.

gingery 08-01-2006 04:57 PM

I have no clue how to do that.

I'll keep looking - I see there are several hacks that include "top poster" info, they just all seem to only count total posts.

Andrew Green 08-02-2006 01:34 PM

I could give you code to display that, but you might want to rethink this. It can be a pretty server heavy thing to add on main pages, let alone every forum page...

If that was the goal I'd probably go with setting up a sperate table to store the results in and getting a cron job to update it every hour or so.

But you aren't going to want to run that query everytime someone visits a forum page...

gingery 08-02-2006 03:44 PM

Thank you! I'm a newbie to all of this so please bear with me.
Quote:

I could give you code to display that, but you might want to rethink this. It can be a pretty server heavy thing to add on main pages, let alone every forum page...
Duly noted. :)
Quote:

If that was the goal I'd probably go with setting up a sperate table to store the results in and getting a cron job to update it every hour or so.
A separate table that I could display in my left column (and note that it only updates every hour) or one that I would have to give its own page? Would you be able to teach me how to set up the cron job?

As another thought, would it be easier to try to modify this hack to display last 24 hours instead of all time? (provided it works with 3.6)

Paul M 08-02-2006 03:52 PM

Yes, you could modify the sql in that to just pull out the last 24 hours.

gingery 08-02-2006 06:10 PM

Quote:

Originally Posted by Paul M
Yes, you could modify the sql in that to just pull out the last 24 hours.

Would this be the part I need to modify?
Quote:

while($nt=mysql_fetch_array($rt)){
$test .= "<a href='member.php?u=$nt[userid]'>$nt[username]</a> ($nt[posts]), ";
}
If so, what do I need to change it to?


All times are GMT. The time now is 07: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.01026 seconds
  • Memory Usage 1,732KB
  • 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
  • (5)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
  • (10)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