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)

Boofo 07-04-2004 08:50 PM

Quote:

Originally Posted by Seby
nope, don't think so... we just sent pms before...

Then you might want to. That is where I will be doing the testing before I release the fix.

Frzzy 07-11-2004 08:17 PM

Don't know y, it messed up the percents... the displayed figures is 1000 times greater than what it should be...

So I have to change to these:
Code:

$statscache['topposterpercent'] = round(($topposter[posts] / ($totalthreads + $totalposts)) / 10, 2);
$statscache['topthreadspercent'] = round(($topstarter[count] / $totalthreads) / 10, 2);

Or either remove:
Code:

$totalthreads = vb_number_format($totalthreads);
$totalposts = vb_number_format($totalposts);

From the index.php, for it to work right... anyone have the same problem?

turbidblue 07-12-2004 03:48 AM

[high]* turbidblue edits my problem out, fixed! ;)[/high]

weitalia 07-13-2004 10:43 AM

Frzzy thanx so much,this semms to be perfect!!
I just make little change,for not loose the VB Number feature ;)
In root/index.php find:
PHP Code:

$totalthreads vb_number_format($totalthreads);
$totalposts vb_number_format($totalposts); 

Above it add:
PHP Code:

$totalt $totalthreads;
$totalp $totalposts

Go forward in index.php and find:
PHP Code:

$statscache['topstarterid'] = intval ($topstarter[postuserid]);
$statscache['topstartercount'] = intval ($topstarter[count]); 

Under it add:
PHP Code:

$statscache['topposterpercent'] = round(($topposter[posts] / ($totalt $totalp)) / 102);
$statscache['topthreadspercent'] = round(($topstarter[count] / $totalt) / 102); 

This works perfect to me,and all thanx goes to Frzzy!

;)

nelto 09-04-2004 07:09 PM

Hi guys

I tried to install this hack wich I want it so bad becouse Im runing a contest for the top ref and top poster, but Im havign a prb

Im runing the lattes VB and when it comes for the last part of this installement include/init.php Im geting a nasty sql error

" In includes/init.php

Find:
*****************************

// add default special templates
$specialtemplates = array_merge(array(
'options',
'cron',
'forumcache',
'usergroupcache',
'stylecache'
), $specialtemplates); "

So basicly its just to had "'statscache'" so I changed it uploaded it and when I refresh the site I get this:

" Parse error: parse error, expecting `')'' in /usr/home/kain/domains/bbs.tgpbuilders.com/includes/init.php on line 517
Parsing functions.php Time before: 1094328813.74 Memory Before: 568KB Time after: 1094328813.82 Time taken: 0.0754599571228 Memory After: 1,252KB "

Any Ideas?

Lion's Heart 10-09-2004 12:58 PM

I have one question with this mod.

IN my forum, it's display:

Total Registrations: 1050
And Active Registrations: 1050

But my Users Awaiting Email Confirmation Group have 243 members

=> my Active Registrations must be 807 (#1050)
:) can u help me?

sabret00the 11-06-2004 12:55 PM

is their anyway to add total pm's sent in a 24 hour period to this?

Boofo 11-06-2004 01:11 PM

Quote:

Originally Posted by sabret00the
is their anyway to add total pm's sent in a 24 hour period to this?

I'm not quite sure just how I could do that. I'll look into it for you if you want, though. ;)

Lethal 12-15-2004 07:51 PM

can you add this to a VBAdvanced module block? like the quick stats block but have all of these stats instead?

tomshawk 12-22-2004 03:31 AM

tomshawk clicks install!!!

Nice hack Boofo, thank you

One question though, in the image you have attached, it shows "The most Active User Today"

Well I installed it on my site, but I dont see that line.

Can you give me an idea what I might be missing, this is one of the main reasons I installed this, and I'd really like to get it working ;)

Thanks again


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