vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Forumhome Stats Cache Serialize hack v2.2 (https://vborg.vbsupport.ru/showthread.php?t=61420)

BlackTiger 04-17-2004 12:51 AM

Cool Hack! Is the installation file also fully up2date now?

Boofo 04-17-2004 01:24 AM

If you don't use a table prefix or have a really large board it is. I will update the file later tonight if you are either one of the afore mentioned. ;)

BlackTiger 04-17-2004 02:02 PM

My board is not that big, and I just upgraded last night to 3.01 so if it would work on that, it's fine with me too.
But I'm a patient man so I can wait until all is updated so when installing all will work good. If that means waiting a few days, I don't mind.

Thanks for the support!

dstruct2k 04-17-2004 11:21 PM

Quote:

Originally Posted by Boofo
If you don't use a table prefix or have a really large board it is. I will update the file later tonight if you are either one of the afore mentioned. ;)

I was about to say that prefixes are broken by one query, but I see you've found that yourself. :) (I'll assume someone has posted a fix as well, although I've coded my own.)

Boofo 04-17-2004 11:27 PM

Quote:

Originally Posted by dstruct2k
I was about to say that prefixes are broken by one query, but I see you've found that yourself. :) (I'll assume someone has posted a fix as well, although I've coded my own.)

The fixes are on this page and the last one. ;)

Don't forget the install button as there will be an update shortly (in the next few days). ;)

dstruct2k 04-18-2004 12:31 AM

Boofo -- I hope you're gonna fix the code for Top Thread Starter and Top Poster percentages to work with numbers over 1000. :)


Hint: The $totalposts and $totalthreads variables are sent through vb_number_format() BEFORE your hack runs. Numbers over 999 show up in the variables as "1,000" and as we all know, PHP can't do this: 1,002 / 9,534

(I've fixed this on my own, if you want my code, I'll give you it :p)

Boofo 04-18-2004 12:51 AM

Quote:

Originally Posted by dstruct2k
Boofo -- I hope you're gonna fix the code for Top Thread Starter and Top Poster percentages to work with numbers over 1000. :)


Hint: The $totalposts and $totalthreads variables are sent through vb_number_format() BEFORE your hack runs. Numbers over 999 show up in the variables as "1,000" and as we all know, PHP can't do this: 1,002 / 9,534

(I've fixed this on my own, if you want my code, I'll give you it :p)

PM me what you have and I will take a look at it. I did solve the problem but I had to run an extra query to do it. Maybe your way would be better. ;)

Chris|vB 04-20-2004 11:45 PM

Nice hack.

Majik? 04-23-2004 12:41 AM

Just installed with no problems, but I've cahnged it to update the stats via CRON. All of my scheduled tasks are done via a real CRON. I have it updating the cache every 5 minutes, which is good enough.

Had thought about every couple minutes, but 5's a nice good number. ;) Now users will always be loading the stats from the cache. I jsut have to decide now how I want to group the stats because I'm going to break up the list a bit into sections (instead of one big list).

Great job! :D

Boofo 04-23-2004 05:00 AM

Quote:

Originally Posted by Majik?
Just installed with no problems, but I've cahnged it to update the stats via CRON. All of my scheduled tasks are done via a real CRON. I have it updating the cache every 5 minutes, which is good enough.

Had thought about every couple minutes, but 5's a nice good number. ;) Now users will always be loading the stats from the cache. I jsut have to decide now how I want to group the stats because I'm going to break up the list a bit into sections (instead of one big list).

Great job! :D

I thought about using a cron job, but I like the option in the vb settings where I can change it on the fly. But, hey, whatever works for you, my friend. ;)


All times are GMT. The time now is 10:58 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.01345 seconds
  • Memory Usage 1,741KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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