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)

paulmjno 12-22-2004 05:46 AM

Quote:

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

Amen.

Boofo 12-22-2004 06:11 AM

Quote:

Originally Posted by paulmjno
Amen.

Why the Amen? Have you installed this hack?

Gemma 12-22-2004 08:46 AM

Anyone know how I would go about add Total Games and Most Played Game stats from the ibproarcade for vb hack?

Boofo 12-22-2004 09:53 AM

Quote:

Originally Posted by darkworld
Anyone know how I would go about add Total Games and Most Played Game stats from the ibproarcade for vb hack?

The updated version I am getting ready to release has just what you are looking for in it. It also has the Champion of the most played game and their score. Click the install button and when I get the text file all put together and tested, I will send out the update email for it. In the meantime, I have that running on my site if you want to check it out. ;)

TwinsX2Dad 12-22-2004 03:11 PM

Will it include the same for v3arcade?

Quote:

Originally Posted by weitalia
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!

;)

Caused a zero percentage, in the Top Poster, for me. The 'Most Viewed Profile' also doesn't work, showing '0 Views'

Brent H 12-22-2004 06:54 PM

Great hack, but I'm getting this:

Threads: 291 (5 Today), Posts: 2,756 (27 Today), Thread Views: 25,485
Total Registrations: 78, Active Registrations: 61
There has been 1 new post since your last visit, TheHeggy.
Top Poster: TheHeggy (488 Posts = 166.55%)
Top Thread Starter: TheHeggy (101 Threads = 34.71%)
Top Referrer: TheHeggy (8 Referrals)
Most Viewed Profile: TheHeggy (0 Views)
A warm welcome goes out to our newest member, Test Account.

What can be done to correct this?

Boofo 12-22-2004 07:45 PM

There has been a fix for that in this thread already. ;)

Boofo 12-22-2004 07:49 PM

Quote:

Originally Posted by TwinsX2Dad
Will it include the same for v3arcade?

I'm sure we can include that also. I used to run v3Arcade and had the query there. ;)

Quote:

Caused a zero percentage, in the Top Poster, for me. The 'Most Viewed Profile' also doesn't work, showing '0 Views'
You need to run the query for the most viewed profile and do the member.php edit and look at a couple of profiles other than your own and it will start showing up. ;)

Moncal 03-07-2005 05:00 AM

This hack has almost every thing I need. Thanks a lot. I had a problem with the percentage of top poster only. And I couldn't figure it out even after reading this thread. I finally fixed it by rewriting the statement, now it is off by about 4 tenths of a percent and I really couldn't care less. :)

PHP Code:

$statscache['topposterpercent'] =  round(($topposter[posts] / ($totalposts)/10), 2); 


Boofo 03-07-2005 05:15 AM

Quote:

Originally Posted by Moncal
This hack has almost every thing I need. Thanks a lot. I had a problem with the percentage of top poster only. And I couldn't figure it out even after reading this thread. I finally fixed it by rewriting the statement, now it is off by about 4 tenths of a percent and I really couldn't care less. :)

PHP Code:

$statscache['topposterpercent'] = round(($topposter[posts] / ($totalposts)/10), 2); 


I have an update that fixes all of the percentage problems and is accurate and also has a few more items in it. I just haven't gotten the text file together yet to update it. I will try to get that going here shortly. ;)


All times are GMT. The time now is 07:41 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.01670 seconds
  • Memory Usage 1,759KB
  • 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
  • (6)bbcode_php_printable
  • (7)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