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)
-   -   vB Statistic version 3.0.0 (directors Cut *g*) (https://vborg.vbsupport.ru/showthread.php?t=74603)

paratek 03-30-2005 06:49 PM

Thats the way it already is Marco H. Thanks for the reply though. Any ideas where i can look?


Quote:

Originally Posted by MarcoH64
Change the include('global.php') inthe statics_counter to a require_once.


Jenta 04-02-2005 06:45 PM

I almost got booted of my host when I installed vbportal and had
include("./statistic_counter.php"); in my php start

the shared server i was on almost crashed (cpu was at like 70!) as it was creating php calls continuasly
i managed to get a peek at whos online while this was happening and saw about 200 guests with the ip of my server online

this is not pcfreaks fault but an incompatibility with vbportal and I sure love this script but am only able to use the the browser resolution part

Anyone have any ideas of how to get the 2 working?

paratek 04-02-2005 06:49 PM

Been asking for a while, doesn't seem like many are using vbPortal. I hate to but gonna have to do an uninstall. Not worth it to have it only half work.

Jenta 04-02-2005 07:39 PM

paratek u inspired me to give it one last shot
dont delete this awesome hack just yet
think i found a solution

paratek 04-02-2005 08:23 PM

i am willing to try anything at this point, let me know

Jenta 04-02-2005 09:31 PM

this is what im doing and ive reset the stats so not sure every little thing is working but i do know its not killing the server anymore and it has logged a visit of mine
it was caught in and endless loop because it was calling the wrong global.php

ive enclose some comments in < > brackets

edit statistic_counter.php and change wherever it has require_once to the full path of the file
like..
require_once('http://www.yoursite.com/forums/global.php'); <maybe only to ./forums/global.php if you have moved it to the root?>
it may only be neccesarry for global.php but i moved my statistic_counter.php to the site root <dont know if i should even do this?> so i changed them all

then in phpinclude_start, this is what i have...
require_once('./../global.php');
include("./../statistic_counter.php"); <is the move to the site root necc or can it stay in forums?>

My forums are located in /forums/

really dont have a clue what im doing, its just a trial and error thing :)
hopefully some helpful person that knows and understands both scripts, and is experienced with mysql and php comes along and helps us do it the right way :rolleyes:

i'll get back to you after i have enough forum activity where i can see if every log function is working

Jenta 04-03-2005 05:32 PM

after a day of running it for a day, this is what im finding

Statistics home - works
Browsers / Operating Systems - not working
Country of origin and browser language - works
Search Engines - not sure yet ( i have one altavista hit in referrers but not here)
Spider / Crawler - not sure yet
Referrer - works
Browser Plugins and Monitor Resolutions - works
System check - works


------------------------------------------------------------------------

I also thought of way to not include yourself in the stats. Since your always on your site, it may be a good idea to not skew the stats with all your visits.

Heres how:

In headinclude wrap the script in a conditional....like:

Code:

<if condition="!$show['admincplink']"><div style="display:none"><script type="text/javascript" src="./clientscript/statistic_java.js"></script></div></if>
You can change the conditional to usergroup 6 if you like or just your userid.
I just used admincplink since I believe it performs the exact same function as usergroupid == 6 and I'm the only admin

In phpinclude_start, change it to this:

Code:

if ($bbuserinfo['usergroupid'] != 6) {include("./statistic_counter.php");}
again, change the conditional as you see fit

alderwazeh 04-03-2005 09:35 PM

First Many thanks for the auther of this hack...
Now getting this error although the hack has been successfully instaled ?!
when I move from the stat or the vb or CMPS it gives randomly this error massege ... when I refresh ..it disapear and the pages display normaly including the stat! what is the problem and how I can fix it ?

Warning: main(./statistic/statistic_spider.php): failed to open stream: No such file or directory in /statistic_counter.php on line 99

Fatal error: main(): Failed opening required './statistic/statistic_spider.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/alderwa/public_html/vb/statistic_counter.php on line 99

nso 04-09-2005 02:27 PM

Is there any way to disable the parts that use Javascript?
The Javascript increased my bandwidth usage with about 50% - something I'm not really interested in.

Is there perhaps another script that only collects stats from the database, and not from utilizing Javascript?

T3MEDIA 04-09-2005 02:42 PM

Quote:

Originally Posted by nso
Is there any way to disable the parts that use Javascript?
The Javascript increased my bandwidth usage with about 50% - something I'm not really interested in.

Is there perhaps another script that only collects stats from the database, and not from utilizing Javascript?

Bandwith or server resources? I am asking not being sarcastic.


All times are GMT. The time now is 01:42 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.01478 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)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