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 Boardstatistic Version 2 (https://vborg.vbsupport.ru/showthread.php?t=66783)

hdraye 10-04-2004 04:43 AM

Thanx for a great hack, but; :devious: Can I have it count hits on my CMPS page? too, as some users land there and read news without accessing the forums

Thanx

Hani

venomx 10-04-2004 06:07 PM

I believe it does since its in the header templates and CMPS uses the forums heder/footer templates....

buro9 10-04-2004 07:56 PM

I really liked the idea of this hack, but 4 queries per page, ereg's instead of preg's, and massive switch statements... these do not add up to my idea of fun.

I'm afraid that I'm going to uninstall and wait (or maybe develop) a version that has a lighter counter (1 query), and with hourly generation of stats via cron rather than an almost permanently live thing.

This has just been too intensive for me. I have a good server, but we're running several boards and the difference was notable when I commented it out in headinclude. I wouldn't recommend this hack for boards that top several hundred simultaneous users.

Very nice work though... shame I don't have a quieter board at times ;)

Skyline_GT 10-04-2004 10:53 PM

How come it says

http://www.gamerzplanet.net/forums/statistik.php?

Quote:

* - Since Statistics started on 31. December 1969 19:00

venomx 10-04-2004 10:57 PM

Sure you did all the template edits?

Skyline_GT 10-04-2004 11:00 PM

Quote:

Originally Posted by venomx
Sure you did all the template edits?

N/m Fixed.

Thanks.

hdraye 10-07-2004 08:28 AM

Great hack, Thanx

2 things though
My board is in Arabic, but as AR is for Argentina, in the Country by browser language shows Argentina as top country :(

Also, How can I translate the page, I guess they are hardcoded, any idea if they will be in phrase variables?

Thanx again

PitchouneN64ngc 10-12-2004 04:25 PM

This is a very good hack but i've see a little bug in the code ;)

Into the statistikadmin.php, you can see this into the code:

PHP Code:

$stat_set[WRITTENPOPST]=eregi_replace("[^0-9]"null$stat_set[WRITTENPOST]); 

$stat_set[WRITTENPOPST] is wrong :)

Code Monkey 10-13-2004 02:56 PM

Quote:

Originally Posted by PitchouneN64ngc
This is a very good hack but i've see a little bug in the code ;)

Into the statistikadmin.php, you can see this into the code:

PHP Code:

$stat_set[WRITTENPOPST]=eregi_replace("[^0-9]"null$stat_set[WRITTENPOST]); 

$stat_set[WRITTENPOPST] is wrong :)

all of those statements would be more efficient using...

PHP Code:

$stat_set['WRITTENPOST'] = preg_replace('#[^\d]#'null$stat_set['WRITTENPOST']); 


Watson 10-14-2004 08:14 PM

When I installed this I lost around 300 of the posts from the main page, but they are still there in the stats page, any word on how this happened?

I thought it may be my admin forums, but they only have around 100 posts in them, though there are some other forums that are now closed that have some posts in them, would this have affected it, if so how would i get them to be displayed again on the main page?

Watson


All times are GMT. The time now is 03:15 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.01615 seconds
  • Memory Usage 1,744KB
  • 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_php_printable
  • (3)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