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)

PcFreak 04-09-2005 03:55 PM

Quote:

Originally Posted by nso
Is there any way to disable the parts that use Javascript?

Open Template "headinclude" in your AdminCP
del this line
PHP Code:

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

Quote:

Originally Posted by nso
The Javascript increased my bandwidth usage with about 50%

hmm????
A 9kb file with 4 querys (normal 2 if the user counted) need so many bandwith?

You must have a board with one forum and one post and 10 vistors in the week. (If that, you have a bandwith from 100 kb the week)
Of course the javacountig need then between 30-40 kb. ;)

This script use only 2 querys. (4 querys the User was not logged befor).
For a board with 1 Millon Users it?s need not more than 0.001% of the bandwith. But the srcipt work with ervery side refresh.
I think there must be a misunderstanding by your side. You interpret you server log not correctly.

Quote:

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

It?s not possible to log resolution or plugins without javascrit (js)

PcFreak

PcFreak 04-09-2005 04:03 PM

Quote:

Originally Posted by alderwazeh
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

Have you upload the statistic_spider.php?
There must be in the statistic directory.
On line 99 of the statistic_counter.php this file is require.
But the spider.php is missing.

Tipp: Check your statistic directory.

PcFreak

PcFreak 04-09-2005 04:29 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?

I will it better explain.
The statistic javscript is like a bypass.
This script is not more as an function.
The javascript started with every php. Always then, if you refresh a side.
In your logs you see then that each second file was loaded wich the javascript. (Ups thus 50% . From 10 files wich was loaded they are 5 javascript files?)

But that is not bandwith!!
The script no range bandwith.

It is possibel take the javacounter in a normal vBulletin.file.

But I imagined much more better is: Don?t touch the orginal vBulletin files.
It more simple to install this mod (and uninstall, of course . But that makes nobody;) Because this mod is simple great :))

wolfyman 04-09-2005 05:03 PM

I'm running 3.0.7, it llooks like everything is working ok - EXCEPT the cronjob. when I go to mydomain.com/forum/includes/cron/statisticupdate.php I get this error:
Fatal error: Call to a member function on a non-object in /home/me/public_html/forum/includes/cron/statisticupdate.php on line 20

Help please :)

nso 04-09-2005 05:15 PM

Quote:

Originally Posted by PcFreak
Open Template "headinclude" in your AdminCP
del this line
PHP Code:

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


Will this disable the javscript-required sections? I do not currently have the script installed, I deinstalled it, so I cannot check for myself.

Quote:

hmm????
A 9kb file with 4 querys (normal 2 if the user counted) need so many bandwith?
What does queries have do to with bandwidth?
You do realize that with no-cache headers, the javascript does not get cached?

Quote:

You must have a board with one forum and one post and 10 vistors in the week. (If that, you have a bandwith from 100 kb the week)
Of course the javacountig need then between 30-40 kb. ;)
Code:

Users online: 117 (78 members and 39 guests)
Users online the last 24 hours: 4668 (3644 members and 1024 guests) 
Most user online at the same time was 683, 3. February 2005 at 22:07.

Threads: 31.567, Posts: 379.803, Members: 7.406

Bandwidth usage per day: ~1GB (increased to ~1,5GB the three days I had the hack installed)

Also the 'hits' (files sent from the server to the users) increased with about 50/100%.

Quote:

This script use only 2 querys. (4 querys the User was not logged befor).
For a board with 1 Millon Users it?s need not more than 0.001% of the bandwith. But the srcipt work with ervery side refresh.
I think there must be a misunderstanding by your side. You interpret you server log not correctly.
Again, what does queries have to do with bandwidth usage? This is an increase in CPU-cycles, not the amount of bits and bytes transfered.

Quote:

It?s not possible to log resolution or plugins without javascrit (js)
I am very well aware of this. I am not interested in logging that information. I'm simply interested in a script that shows top posters/top threads/top views/etc. (information that is allready located in the database)

nso 04-09-2005 05:18 PM

Quote:

Originally Posted by T3MEDIA
Bandwith or server resources? I am asking not being sarcastic.

JavaScript is downloaded by the visitor and executed on the users computer - Downloading it does not increase the CPU-load any more than, say, a standard HTML-file.
It does however require bandwidth to download a file from an external server - that is also what I am saying.

All that aside, my Dual Xeon 2.4 GHZ dedicated server can handle a couple of filetransfers and/or queries before you start to see it's behaviour change :)

PcFreak 04-09-2005 06:53 PM

Quote:

Originally Posted by by PcFreak in the first Post of this thread

How operates the vB statistics 3.0.0?
The vB statistics 3.0.0 consist of two essential parts


One part is to log each visitor, serarchengines and keywords, browserlanguages, browser plugins, referer ect.
The other part show Information of the existing vB database

If you want just show Information of the existing vB database .
Don?t activate the counter.

Quote:

==============================
== step 6 ==
==============================

Now let's activate the statistics and count of visitors
---------------------------------------------------------------------
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>

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

include("./statistic_counter.php");
Delete this lines.
But I do not understand nevertheless your JavaScript problem.
There are a lot of other js scripts active in vB. Even in the headinclude.

Or I have an understanding problem.
Did you mean java (not the Island or the coffee) ;) or did you mean "js" (JavaScript)

@wolfyman
This is line 20 in your statisticupdate.php
PHP Code:

$DB_site->query("DELETE FROM " TABLE_PREFIX "statistic_log_java    WHERE last_logtime < " . (TIMENOW 3600)); 

I am not shure, why you get an error.
Have you del the statistic_log_java table in you db?

PcFreak

Lionel 04-09-2005 11:29 PM

I just got an email about the database. Notice that the referrer is yahoo, and the error is from homepage which was up (am sure of that) at the time it happened.

What should I make out of this database error?
Quote:

Database error in vBulletin 3.0.7:

Invalid SQL:
SELECT counter
FROM statistic_searchengine_keywords
WHERE keywords = 'haiti news\'

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''haiti news\'' at line 3

mysql error number: 1064

Date: Saturday 09th of April 2005 08:21:31 PM
Script: http://www.site.com/
Referer: http://search.yahoo.com/search?p=haiti+news%5C&ei=UTF-8&fr=FP-tab-web-t-224&fl=0&x=wrt
Username: Unregistered

nso 04-10-2005 01:18 AM

Quote:

Originally Posted by PcFreak
There are a lot of other js scripts active in vB. Even in the headinclude.

Yes there is. And they all use bandwidth off course - like your javascript. Your javascript is massive and uses a lot of bandwidth on top of the allready required bandwidth.

Grosse file -> grosse bandwidth usage <-- semi deutch :)

PcFreak 04-10-2005 07:57 AM

Quote:

Originally Posted by Lionel
I just got an email about the database. Notice that the referrer is yahoo, and the error is from homepage which was up (am sure of that) at the time it happened.

What should I make out of this database error?

Search in your /statistic/statistic_searchengines.php
(Line round 221)

found:
PHP Code:

$keyword_found ereg_replace("'","",$keyword_found);      //Abfangen eines Fehlers der auftreten kann wenn ' Keyword vorkommt 

replace with:
PHP Code:

    $keyword_found ereg_replace("'","",$keyword_found);      //Abfangen eines Fehlers der auftreten kann wenn ' Keyword vorkommt    
    
$keyword_found eregi_replace("\"""",$keyword_found); //Abfangen eines Fehlers der auftreten kann wenn \ Keyword vorkommt 

PcFreak


All times are GMT. The time now is 02:03 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.01657 seconds
  • Memory Usage 1,796KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_php_printable
  • (16)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