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)

S@NL - BlackBik 03-18-2005 01:25 AM

Quote:

Originally Posted by vbted
is there any way of using this on a db that is shared with another board?
the install script wants to uninstall, i guess because it sees the stats tables already exist. thanks.

The only thing I can think about atm is that you make a copy of all the statistic tables and give them a prefix of suffix. Then adapt the statistic php scripts of the second forum in a way that they read and update the copy tables.
There may be another way, but I can't think of it.

FD929 03-19-2005 04:58 AM

Quote:

Originally Posted by Delphiprogrammi
hi,

this piece of php code is causing the error i get

PHP Code:

$pm_speicher_groesse $DB_site->query("
        SHOW TABLE STATUS
        FROM 
$dbname
        LIKE '" 
TABLE_PREFIX "pm'
         "
); 

but that query seems correct to me ?????? and i can't find anything in the MySQL manual about this just a "syntax" example on my old host this worked fine now it refuses to work on my new host ... i dropped my old host because they forced people to go dedicated if you want crontab support :devious:

if i comment that code out it works fine

Another painless 3.0.7 install. Works well, thanks for all your hard work!

steadicamop 03-19-2005 06:42 PM

For whatever reason in my admincp area, when I update an option, the text below still shows :

This Option was changed last at: 01.01.1970, 01:00

I'm presuming it should update to today's date and time? Any ideas why this is happening?

Thanks, it's a wonderful hack, interesting to see where people find your forum!

TruthElixirX 03-20-2005 04:31 PM

I really like this hack except it isn't doing some of the stuff right.

It doesn't catch Browsers and OS's. Doesn't catch country origin and browser language. It isn't catching spirders that crawl the site (I had 48 Guests last night.). It doesn't catch monitor resolutions. It pretty much doesn't get anything from the users. The System check doesn't work either. Is there a reason fo rthis or do I not have soemthing enabled?

paratek 03-20-2005 08:22 PM

I have all the same problems you are. Is the author supporting this hack still, I haven't seen PCFreak on here in a while. I'd hate to have to uninstall

Smitty 03-21-2005 09:05 AM

Quote:

Originally Posted by paratek
I have all the same problems you are. Is the author supporting this hack still, I haven't seen PCFreak on here in a while. I'd hate to have to uninstall

I figure he gave it up. I uninstalled it a while ago. It looked nice, but many of the numbers were questionable and some were obviously totally wrong.

A grand idea and looks nice, but....

TruthElixirX 03-21-2005 01:05 PM

He could at least tell everyone. I'd like to see if anyone has got this running and see if it is running on his own site.

S@NL - BlackBik 03-21-2005 01:27 PM

@Punktek and paratek:
Did you do this?
Code:

---------------------------------------------------------------------
6.1) Open Template "headinclude" in your AdminCP
    add the following code at the end of the template in the last line!
---------------------------------------------------------------------

<script type="text/javascript" src="clientscript/statistic_java.js"></script>

Without this step, the browsers, os etc don't count up.

Delphiprogrammi 03-21-2005 05:20 PM

Quote:

Originally Posted by Punktek.com
He could at least tell everyone. I'd like to see if anyone has got this running and see if it is running on his own site.


i use this hack & working fine

TruthElixirX 03-21-2005 07:48 PM

I put that in the headerinclude. I'm waiting 24 hours ot see if this works. =/

paratek 03-22-2005 11:22 AM

That wasn't the issue i was having. My problem has to do with this line

include("./statistic_counter.php"); in my phpinclude_start file. It screws up the front page of vbportal if it is in. If the line is in there, it counts page hits etc, but the portal headers and menus don't like it. If i take it out the header/menu problem is fixed, but it only reports half the stats. I was just hoping someone could point me in the right direction as why this line of code would have a problem with my portal header.

Quote:

Originally Posted by S@NL - BlackBik
@Punktek and paratek:
Did you do this?
Code:


<script type="text/javascript" src="clientscript/statistic_java.js"></script>

Without this step, the browsers, os etc don't count up.


paratek 03-22-2005 12:27 PM

Disregard the above post
I finally have it working with VBPortal!

egthareal 03-22-2005 05:00 PM

I'm having a problem, my stats worked great for about a week and then they stopped working! Anyone else expiernce this? PLS Help!!!

PcFreak 03-22-2005 05:00 PM

Quote:

Originally Posted by paratek
Is the author supporting this hack still, I haven't seen PCFreak on here in a while.

I am still here ;).

The last weeks i was very busy.
Many thanks to S@NL - BlackBik for supporting the statistic hack.

PcFreak

paratek 03-22-2005 05:42 PM

Welcome back PcFreak!

TruthElixirX 03-22-2005 07:27 PM

Glad you're back. My counter is catching plug-ins that are installed and monitor resolutions now but that is all.

S@NL - BlackBik 03-22-2005 08:45 PM

Quote:

Originally Posted by PcFreak
I am still here ;).

The last weeks i was very busy.
Many thanks to S@NL - BlackBik for supporting the statistic hack.

PcFreak

You're very welcome :)
I saw some problems I also encountered and knew a sollution. So why not share it ;)

Welcome back :)

SupraT 03-26-2005 10:23 PM

I really need some help here. I honestly can not say what I did,obviously broke something. The error it returns is as follows:

Code:


 
Database error in vBulletin 3.0.7:
 
Invalid SQL:
 
SELECT LOGTIME FROM statistik_einstellungen
 
 
 
mysql error: Table 'clanspy_vbcsmain.statistik_einstellungen' doesn't exist
 
mysql error number: 1146
 
Date: Saturday 26th of March 2005 12:16:39 PM
 
Script:
http://www.clanspy.net/forum/

I had hack installed for sometime running perfectly (btw thank you for the hack). Other night made a change to the header file and wammo. Now the entire forum is down and I can't access VB at all.

Anyone help me fix this, I am not real good working within the raw database.

Thanks in advance!!

SupraT 03-27-2005 06:48 AM

Anyone ?? Is appreciated.

S@NL - BlackBik 03-27-2005 08:46 AM

What change did you make?
Can't you reverse this change?
Did you only change the header template of did you change something in php scripts?
Is the mentioned table still in your database or did you drop it?

SupraT 03-27-2005 02:19 PM

Quote:

Originally Posted by S@NL - BlackBik
What change did you make?

Added an additional link to our nav bar in the header template
http://www.clanspy.net/navbar/bar.htm

Quote:

Originally Posted by S@NL - BlackBik
Can't you reverse this change?

No, I can't access CP

Quote:

Originally Posted by S@NL - BlackBik
Is the mentioned table still in your database or did you drop it?

The error states that one isn't present. I attempted to reinstall the hack, but since I can't get to CP it will not allow me to run the script.

How can I add the tables to the database manually? I have never done that, but feel that may at least get me access to CP.

PcFreak 03-27-2005 02:24 PM

Quote:

SELECT LOGTIME FROM statistik_einstellungen
This is not a statistic 3 query.
This is an old statistic 2 query.

The names of the statistic tabels was changed in version 3.


Quote:

Originally Posted by PcFreak in the first post
In order to use the new Statistic Version, the old version must be unfortunately removed.
A deinstallation script you found here >> https://vborg.vbsupport.ru/showpost....47&postcount=2

PcFreak

SupraT 03-27-2005 02:28 PM

Quote:

Originally Posted by PcFreak
This is not a statistic 3 query.
This is an old statistic 2 query.

The names of the statistic tabels was changed in version 3.




PcFreak

That link just goes to the portal page of vb.org.

PcFreak 03-27-2005 03:06 PM

Oh sorry.
The right link is here https://vborg.vbsupport.ru/showpost....47&postcount=2

PcFreak

SupraT 03-27-2005 03:12 PM

Quote:

Originally Posted by PcFreak
Oh sorry.
The right link is here https://vborg.vbsupport.ru/showpost....47&postcount=2

PcFreak

Can't get logged in, so can't run that. I sent you pm.

SupraT 03-27-2005 04:09 PM

Quote:

Originally Posted by SupraT
Can't get logged in, so can't run that. I sent you pm.

PC Freak, thank you for your help. I am up, and will get things moving again.

Thanks, good to know when you break something, people are willing to help. VB is great community.

David

spongebobrox128 03-29-2005 04:23 PM

hmm, I get this error when trying to login after installing:

Unable to add cookies, header already sent.
File: /home/kuyflcbd/public_html/vbulletin/statistic_counter.php
Line: 410

Thank You,
David

spongebobrox128 03-30-2005 01:04 AM

any idea why this would happen?

paratek 03-30-2005 04:24 PM

I spoke too soon when i thought i had this working with VBPortal. I have narrowed down where the problem seems to lie. The line that is placed in the phpinclude_start

require_once('./../global.php');<------ VbPortal line
//include("./statistic_counter.php");<----- this line is my problem.

statistic_counter.php uses the include ./global.php and it seems the fact that vbportal includes the ./../global.php on the line above, screws my vbportal front page up.

I understand this is not the problem of your program PCFreak, but is there anyway you can think of for me to work around this?

Marco van Herwaarden 03-30-2005 05:35 PM

Change the include('global.php') inthe statics_counter to a require_once.

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 07:44 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.01762 seconds
  • Memory Usage 1,845KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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