View Full Version : vB Statistic version 3.0.0 (directors Cut *g*)
PcFreak
01-17-2005, 10:00 PM
:nervous: http://at-lantis.de/images/diverses/installtom.gif
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
How extensive is the vB statistics 3.0.0?
add 46 new templates
add 15 new database tables
over 1300 database inserts
400 new phrases
23 new PHP and one js file (7 PHP files only need for the installation)
over 400 various images.
Templates & Phrases:
Fully phrased
Templates/Phrases installed during install/upgrade;
100% Valid XHTML 1.0 Templates
https://vborg.vbsupport.ru/external/2010/10/30.jpg
The installation.
The installation continues maximum 30 sec and is fully automatically.
No existing vBulletin database fields or tabels are changed
Everything is complete over the admin CP adjustable.
IMPORTANT NOTES
? If you do install this hack, please click on the INSTALL button https://vborg.vbsupport.ru/.
There are going to be some updates for this which you're really not going to want to miss!
? And don't forget - BACKUP BEFORE YOU INSTALL!
License
vB statistics 3.0.0 is Copyright (C) 2005 by Andree Haupt (PcFreak) you may not distribute in part or whole any portion of the source code (apart from in this thread) or any file included in the zip.
Portions Copyright by Jelsoft Enterprises Limited. Both the Jelsoft vBulletin and the vB statistics 3.0.0 Copyright notice in the footer must stay in place for any page powered by vB statistics 3.0.0.
Copyright for the french_phrases by Finereader (Dadoo) 2005
Please read the install.txt for more Information.
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.php?p=528547&postcount=2
The vB Statistic is free. However, if you would like to donate a small amount, feel free.
https://vborg.vbsupport.ru/external/2010/02/12.gif (https://www.paypal.com/xclick/business=webmaster%40at-lantis.de&item_name=vBulletin+Statistic+Version+3&page_style=PayPal&no_shipping=0&no_note=1&tax=0¤cy_code=EUR&lc=GB)
Download:
Please download both files
The image directory of the distribution package should be uploaded to the ./statistic directoy (/forum/statistic)
Don't upload the content to the standard image directory of your forum (/forum/images)!
Support:
English support for this hack here
English, German and French Support on At-lantis.de (http://at-lantis.de/)
Credits.
Many thanks to Onkel Tom which tested, approved and bugfixed the new Statistic Version.
Many thanks to kall for the optimizing of the englisch phrases. (great work)
Many thanks to finereader which translate this hack into french. (fantastic :))
And last, thank you to the german vBulletin Comunity for help, good tips and feedback.
PcFreak
19.1.2005
Add new version of the english phrases from kall into the zip.pack
https://vborg.vbsupport.ru/showpost.php?p=597689&postcount=20
sv1cec (https://vborg.vbsupport.ru/member.php?u=56616) Solution for the Avatar Counter (If site's provided ones. Is changed in the new zip file)
https://vborg.vbsupport.ru/showpost.php?p=597937&postcount=47
20.1.2005
Add a new vbStatistic3_english.zip (some bugfixes)
User which have install the statistic, just exchange the new statistic_counter.php with the old one.
1.02.2005
Add the new english phrases from kall.
Copyright for the english_phrases by kall 2005
https://vborg.vbsupport.ru/showpost.php?p=605417&postcount=169
18.02.2005
To restrict the display of the Server type values on the main page. Solution by kall. (https://vborg.vbsupport.ru/showpost.php?p=598473)
Add the nederlands phrases from S@NL - BlackBik.
Copyright for the nederlands phrases by S@NL - BlackBik (https://vborg.vbsupport.ru/member.php?u=59788)
Orginal Post here: https://vborg.vbsupport.ru/showpost.php?p=612759
Update for the vBulletin Version 3.51
07.11.2005
leonsio (http://www.vbhacks-germany.com/forum/member.php?u=82) was so nice and has adapted this vbstatistic version to the 3.5 vbVersion
Download the file and replace all the files from the statistic3.5.zip with the old statistic files.
Important:
Only use the new files if you plan to update your old vB 3.0 Version to 3.5 Version now.
Dont forget to make a DB backup.
No other changes are needed.
All Credits go to leosino (https://vborg.vbsupport.ru/member.php?u=16008).
You can find a demo on leosino's forum: http://www.c4u.to/forum/statistic.php?
Note:
This is the update for the old statistic version.
A new professionell version will released early next year.
For a first impression visit: http://vbstatistic.com
PcFreak
01-18-2005, 06:57 PM
Some Screenshoots
Torqued
01-18-2005, 06:58 PM
woo hoo!!! :D
Woop! You released it! YAY!
I've needed to click that install button for over a week, now I can.
:)
*edit* Your demo site is running the old (un-kalled) language settings...if you want to stick my site up as a demo of the new English translation, go ahead.
Andreas
01-18-2005, 07:14 PM
Awesome!
How many queries does it add for the logging part?
Is it possible to display
- new users today/last week/last month
- new posts today/last week/last month
- new threads today/last week/last month
- page views today/last week/last month
- guests online today last week/last month
- registered members online today/last week/last month
?
PcFreak
01-18-2005, 07:15 PM
Sorry kall.
In this install Pack are the newest phrases. (with kall ;))
On my forum i change this now.
PcFreak
Install the German one :D Nice one!!
Chris-FH
01-18-2005, 07:40 PM
Simply great, you're the best PcFreak... ;-)
C.
Trosun
01-18-2005, 07:57 PM
Thank you very much for this...
I was hoping to be the first, but i fell asleep.
It's kinda like time-travel.
Anyway, thank you.
PcFreak
01-18-2005, 08:12 PM
Awesome!
How many queries does it add for the logging part?
Is it possible to display
- new users today/last week/last month
- new posts today/last week/last month
- new threads today/last week/last month
- page views today/last week/last month
- guests online today last week/last month
- registered members online today/last week/last month
?
Is possible show the Statistics of the last x days in a popup window.
You can set X in the admincp.
Page views for each days are not supported.
But i will write an update.file and more of this Infos would be display on new sides.
Querys for the logging part.
Max. 6 Querys for the first log. (3 normal and 3 shoutdown querys)
After that, 3 Querys. (1 normal and 2 shoutdown) for each side refresh.
PcFreak
Ian Emu-UK
01-18-2005, 08:12 PM
statistic_database_install.php and statistic_inserts_install.php in the english pack are in German.
KTBleeding
01-18-2005, 08:13 PM
Nice!
/me waits to get home before installing..
TheVirus
01-18-2005, 08:24 PM
Thank you so much! Been waiting for this version for a while now :)
PcFreak
01-18-2005, 08:34 PM
statistic_database_install.php and statistic_inserts_install.php in the english pack are in German.
My small contribution for the world communication ;)
Today few geman words, tomorrow geman as world language
That is true but not tragic.
The install script functioned also with some German words correctly :up:
PcFreak
bL@De
01-18-2005, 08:41 PM
Worked a treat on 3.0.5, now to worry about the upgrade to vB 3.0.6 I guess.
Keep up the great work :D
TheVirus
01-18-2005, 08:57 PM
Any chance of releasing an image pack for users with a darker colored theme? My background is dark and the images don't go well with the color...white borders around the images. :ninja:
Trosun
01-18-2005, 09:00 PM
Installed... nice..
Oh, typo in Phrase "vbstatistic_the_side_calls"
It reads; Page hits since statistics begam: <strong>{1}</strong>
Once again, thanks.
PcFreak
01-18-2005, 09:13 PM
Any chance of releasing an image pack for users with a darker colored theme? My background is dark and the images don't go well with the color...white borders around the images. :ninja:
Are you or anybody interests to provide a new?
Please contact me.
Sorry, but i am not a graphic freak.
PcFreak
S@NL - BlackBik
01-18-2005, 09:14 PM
Great, I've been looking forward to this release. :)
A couple of questions though. Do I have to uninstall Statistics version 2.0 before installing this version?
If so, do I lose all gathered info from the last 6 months?
And if so, does the installer detect it automaticaly or do I have to uninstall manualy?
If I have to do it by hand, is there a manual for this?
Installed... nice..
Oh, typo in Phrase "vbstatistic_the_side_calls"
It reads; Page hits since statistics begam: <strong>{1}</strong>
Once again, thanks.
That shouldn't be...I'm sure I fixed that in my last version...
That's the corrected language xml there. (removed - obsolete - get the one from the first post.)
Rhoads
01-18-2005, 10:04 PM
Hi hello
First, a lot thanks for these beautiful Statistic Version
I think, there must be always someone first with a problem :disappointed:
Everything have run well ,but now when I go to my statistic url, I get a database error :
Database error in vBulletin 3.0.5:
Invalid SQL:
SHOW TABLE STATUS
FROM mydomein_nl_-_drl
LIKE 'pm'
mysql error: You have an error in your SQL syntax near '-_drl
LIKE 'pm'
' at line 3
mysql error number: 1064
Date: Tuesday 18th of January 2005 05:27:21 PM
Script: http://www.mydomein.nl/forum/statistic.php
Referer:
Username: drl2005
IP Address: xx.xxx.xxx.xxx
I have followed the instructions from the read me :ermm:
yoyoyoyo
01-18-2005, 10:11 PM
** clicks install **
and a HUGE thanks to you for all of your hard work!
Ian Emu-UK
01-18-2005, 10:13 PM
Hi hello
First, a lot thanks for these beautiful Statistic Version
I think, there must be always someone first with a problem :disappointed:
Everything have run well ,but now when I go to my statistic url, I get a database error :
Database error in vBulletin 3.0.5:
Invalid SQL:
SHOW TABLE STATUS
FROM mydomein_nl_-_drl
LIKE 'pm'
mysql error: You have an error in your SQL syntax near '-_drl
LIKE 'pm'
' at line 3
mysql error number: 1064
Date: Tuesday 18th of January 2005 05:27:21 PM
Script: http://www.mydomein.nl/forum/statistic.php
Referer:
Username: drl2005
IP Address: xx.xxx.xxx.xxx
I have followed the instructions from the read me :ermm:find this
FROM $dbname in forum.php in the sides directory and delete it.
I had the same problem with the old statistics and this fixed it, as it does with this version too.
Rhoads
01-18-2005, 10:33 PM
find this
FROM $dbname in forum.php in the sides directory and delete it.
I had the same problem with the old statistics and this fixed it, as it does with this version too.
Thank Ian for the tip, it work perfectly now. ;)
plubius
01-18-2005, 10:46 PM
Will this work with 3.0.3?
Trosun
01-18-2005, 10:48 PM
Great, I've been looking forward to this release. :)
A couple of questions though. Do I have to uninstall Statistics version 2.0 before installing this version?
In order to use the new Statistic Version, the old version must unfortunately be removed.
A deinstallation script can be found here >> https://vborg.vbsupport.ru/showpost.php?p=528547&postcount=2
I'm not sure if you HAVE to delete the v2 data.
But i would anyway, since it's logging more things now etc.
Will this work with 3.0.3?
I'm running 3.0.3 and it works like a charm.
Check it out... (http://www.neocen.com/forums/statistic.php)
PcFreak
01-18-2005, 11:41 PM
@kall
Zip.file is up to date now. I pack your last statistic_install_phrasen.xml into the zip.file
@Ian Emu-UK and drl2005
I am not really sure.
But a table to call mydomein_nl_-_drl, is not a good idea.
Because this letter "-" is an operational sign for subtractions.
Could be, that this sign make the problem (Perhaps a reserved indication. I dont know like this one interprets in mysql)
@all
The statistic tested with vBulletin Version 3.03, 3.04, 3.05 and 3.06 (without problems puhhh... ;))
PcFreak
plubius
01-19-2005, 12:04 AM
Thanks
Installs
Rhoads
01-19-2005, 12:19 AM
@kall
Zip.file is up to date now. I pack your last statistic_install_phrasen.xml into the zip.file
@Ian Emu-UK and drl2005
I am not really sure.
But a table to call mydomein_nl_-_drl, is not a good idea.
Because this letter "-" is an operational sign for subtractions.
Could be, that this sign make the problem (Perhaps a reserved indication. I dont know like this one interprets in mysql)
PcFreak
It is not my officiele database name, dutchracingleague_nl_-_drl is de name and de - put down itself with produce. Everything what I fill in complies with dutchracingleague_nl_-_
fridayweb
01-19-2005, 01:41 AM
Nice, added it a few minutes ago and it works great. :)
ADDED: One thing, when I saved my settings for the Domain name, it reloaded and showed me that the last two letters of my address were cut off:
"fridaythe13thforum.c"
Is that going to affect the program, or is that just a character display limit?
Torqued
01-19-2005, 05:14 AM
Is this working for everyone that installed it? I am having some issues. The stats are not updating and I'm getting these errors in my error log.
Wed Jan 19 01:05:52 2005] [error] PHP Parse error: parse error, unexpected '<' in /home/mysite/public_html/forums/global.php(429) : eval()'d code on line 56
[Wed Jan 19 01:05:51 2005] [error] PHP Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/statistic_java_counter.php on line 26
[Wed Jan 19 01:05:51 2005] [error] PHP Warning: main(./global.php): failed to open stream: No such file or directory in /home/mysite/public_html/statistic_java_counter.php on line 26
[
I've gone through the install about 4 times now and can't seem to get this sorted. :( Any ideas? Why is the path wrong for the statistc_java_counter.php?
edited to add:
when i remove the code from the headinclude template and the phpinclude_start template, the errors stop.
Spinball
01-19-2005, 06:23 AM
Awesome!
How many queries does it add for the logging part?
Is it possible to display
- new users today/last week/last month
- new posts today/last week/last month
- new threads today/last week/last month
- page views today/last week/last month
- guests online today last week/last month
- registered members online today/last week/last month
?
Hi PCFreak and thanks for this hack. *Installed* and works perfectly first time.
I agree with KirbyDE about suggesting some more stats to be able to produce information similar to Webtrends. Please note that potential advertisers want to know monthly stats. And as far as I'm concerned the most important use of these stats is to persuade advertisers to sign up.
Please have a think about these:
Average visitor session length (time between first and last activity in a session) (ignoring spiders?)
Number of visitors who visited once in the time period (ignoring spiders?)
Number of visitors who visited more than once in the time period (ignoring spiders?)
Number of page views for home page (ignoring spiders?)
List of most browsed forums % and numbers (clicks on categories) (ignoring spiders?).
Display average number of users registering per day in the time period. This thread shows what I mean though I expect you would get the data in a different way:
https://vborg.vbsupport.ru/showthread.php?t=69392
Also I would suggest being able to exclude certain user groups from the list of new users. I.e. I don't count those in the coppa, awaiting activation and banned user groups as new users since they can't actually participate in the forums.
Thanks for your consideration.
yinyang
01-19-2005, 07:13 AM
great hack! well done!
i have this one really weird problem. after installing, there's an extra line above the header now. it's like a blank line was inserted above the whole page. this sort of messes up my formating. does anyone else have this weird oddity?
-yinyang
*clicks install*
Is this working for everyone that installed it? I am having some issues. The stats are not updating and I'm getting these errors in my error log.
I've gone through the install about 4 times now and can't seem to get this sorted. :( Any ideas? Why is the path wrong for the statistc_java_counter.php?
edited to add:
when i remove the code from the headinclude template and the phpinclude_start template, the errors stop.
Well...for one, you have the wrong path somewhere there.
statistic_java_counter.php should be in /public_html/forums , the same place as global.php and statistic.php
PcFreak
01-19-2005, 08:05 AM
great hack! well done!
i have this one really weird problem. after installing, there's an extra line above the header now. it's like a blank line was inserted above the whole page. this sort of messes up my formating. does anyone else have this weird oddity?
-yinyang
*clicks install*
Try this
this code in the headinclude template
<script type="text/javascript" src="clientscript/statistic_java.js"></script>
replace with this code
<div style="display:none"><script type="text/javascript" src="clientscript/statistic_java.js"></script></div>
@spinball
I will try to consider your suggestions with an update
@Torqued
You using a Portal, right?
PcFreak
yinyang
01-19-2005, 08:17 AM
Try this
this code in the headinclude template
<script type="text/javascript" src="clientscript/statistic_java.js"></script>
replace with this code
<div style="display:none"><script type="text/javascript" src="clientscript/statistic_java.js"></script></div>
PcFreak
most excellent!!!
sv1cec
01-19-2005, 08:24 AM
Most excellent hack. I was ready to hit Install a couple of hours ago, but we got a power failure here. So here it is.
One thing though. My forum's site domain is forum.m1911.org. In www.m1911.org there is another site, mine too of course, but I would like to exclude only the forum.m1911.org hits from the stats, not the ones from www.m1911.org.
When I try to enter the site's domain name in the options, it doesn't accept it, probably because you are trying to avoid people entering www.xxxxxx.com or whatever. However, if I can't do it, the stats I get would not be correct. Is there a way around it?
Tnx and rgds
PcFreak
01-19-2005, 08:30 AM
Nice, added it a few minutes ago and it works great. :)
ADDED: One thing, when I saved my settings for the Domain name, it reloaded and showed me that the last two letters of my address were cut off:
"fridaythe13thforum.c"
Is that going to affect the program, or is that just a character display limit?
There is a character display limit of 25 spells.
You can change this manuelly
Run this query
ALTER TABLE `statistic_setting` CHANGE `setting_for` `setting_for` VARCHAR( 40 ) NOT NULL
40 is the new character display limit.
Or use the string "the13thforum.com", that will works, too.
Or antother way. Look in the installation_english.txt and read this part
################################################## ####################
************************************************** ********************
**If you want to exclude more than one domainname from beeing logged**
************************************************** ********************
################################################## ####################
PcFreak
PcFreak
01-19-2005, 08:44 AM
Most excellent hack. I was ready to hit Install a couple of hours ago, but we got a power failure here. So here it is.
One thing though. My forum's site domain is forum.m1911.org. In www.m1911.org there is another site, mine too of course, but I would like to exclude only the forum.m1911.org hits from the stats, not the ones from www.m1911.org.
When I try to enter the site's domain name in the options, it doesn't accept it, probably because you are trying to avoid people entering www.xxxxxx.com or whatever. However, if I can't do it, the stats I get would not be correct. Is there a way around it?
Tnx and rgds
You can use this string
"forum.m1911.org" as forum's site domain
PcFreak
sv1cec
01-19-2005, 09:23 AM
You can use this string
"forum.m1911.org" as forum's site domain
PcFreak
Indeed, I can!!
I swear I tried it right after installation, and it kept coming back blank, but now it works!
Wonders!
And you can enter any other domains in as well in counter.php AFAIK, preventing them from being logged, along with your own redirections.
sv1cec
01-19-2005, 09:33 AM
And you can enter any other domains in as well in counter.php AFAIK, preventing them from being logged, along with your own redirections.
A couple of small issue, it does not identify the number of users with an avatar. It shows 0.
Also, in the Search engines window, when I put the mouse cursor over the sign that shows that the search string was shortened, it does not show the whole string, it shows "shorten Search string".
Finally, in the Browser Plugins and Monitor Resolution page, the only thing that contains some information, is the line which shows Users who block Javascript on their system. All others are zeros. Same thing with my systems information. Not all installed components are identified. I do not particularly care about this, I know what I have, I just let you know, in case you are not aware of it.
One question also: If I set the show statistics page option to 1 (admins and mods) , does that includes super moderators as well?
Rgds
PcFreak
01-19-2005, 10:01 AM
@sv1cec
Did you make Step 6?
==============================
== 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>
This step is important for the Browser Plugins and Monitor Resolution page (Systemcheck page).
Also, in the Search engines window, when I put the mouse cursor over the sign that shows that the search string was shortened, it does not show the whole string, it shows "shorten Search string".
This is the alternate text of the image. ;) The whole string you can see in the alt text of the link.
couple of small issue, it does not identify the number of users with an avatar. It shows 0.
I cannot confirm. Works perfect.
PcFreak
PcFreak
01-19-2005, 10:06 AM
One question also: If I set the show statistics page option to 1 (admins and mods) , does that includes super moderators as well?
I dont know the permissions of you super moderators but normally yes.
PcFreak
sv1cec
01-19-2005, 10:14 AM
@sv1cec
Did you make Step 6?
==============================
== 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>
This step is important for the Browser Plugins and Monitor Resolution page (Systemcheck page).
This is the alternate text of the image. ;) The whole string you can see in the alt text of the link.
I cannot confirm. Works perfect.
PcFreak
Yes, I did, here is how the end of that template looks in my system:
<script type="text/javascript" src="clientscript/vbulletin_global.js"></script>
<if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js"></script></if>
<!-- Edited to show the favicon -->
<link rel="shortcut icon" href="favicon.ico">
<script type="text/javascript" src="clientscript/statistic_java.js"></script>
Re. alt text, that's what I mean, I hover my cursor about that image and expected to see the whole string. Instead, I see "shorten Search string" in the small yellow alt text window.
https://vborg.vbsupport.ru/external/2005/01/1.jpg
As for the users with avatar issue, here is the image from the stats page. And I know for sure that there are a lot of my users with an avatar, me included.
Rgds
Torqued
01-19-2005, 11:02 AM
Well...for one, you have the wrong path somewhere there.
statistic_java_counter.php should be in /public_html/forums , the same place as global.php and statistic.php
That's the problem. I have statistic_java_counter.php in /public_html/forums but when the script runs, I get the error message for the other path. :ermm:
sv1cec
01-19-2005, 11:17 AM
Cancel all my other problems, they are all solved, I had missed one file when I uploaded to the live server. My only issue is still the avatars count, which denies to move from zero.
OK, I figured that out, you are counting only users who have a custom avatar. Not the ones which are using one of the site's provided ones. I modified your code as below.
Edit file /statistic/sides/forum.php and find:
//User und Profilbilder
//Avatars
$avatars = $DB_site->query_first("
SELECT COUNT(*) as avatar, SUM(filesize) AS size
FROM " . TABLE_PREFIX . "customavatar
");
$all_avatars = vb_number_format($avatars['avatar']);
Replace that with:
//User und Profilbilder
//Avatars
$avatars1 = $DB_site->query_first("
SELECT COUNT(*) as avatar, SUM(filesize) AS size
FROM " . TABLE_PREFIX . "customavatar
");
$all_avatars1 = vb_number_format($avatars1['avatar']);
$avatars2 = $DB_site->query_first("
SELECT COUNT(*) as avatar
FROM " . TABLE_PREFIX . "user where avatarid!='0'
");
$all_avatars2 = vb_number_format($avatars2['avatar']);
$all_avatars = $all_avatars1 + $all_avatars2;
That solved the issue.
Rgds
Beermonster
01-19-2005, 11:46 AM
A request for 3.0.1 :) could you add the option to exclude certain IP(s) from the stats? or even better a certain user, I would like to exclude myself from the stats.
btw great hack blows v2 out of the water, got to be a contender for HOTM :)
PcFreak
01-19-2005, 11:59 AM
A request for 3.0.1 could you add the option to exclude certain IP(s) from the stats? or even better a certain user
Hmm... :disappointed:
But why not. Not so difficult :)
@sv1cec
I add the link to your avatar solution in the first post.
Is it ok?
PcFreak
Nordinho
01-19-2005, 12:15 PM
Excellent work!! installed flawless...
oldfan
01-19-2005, 01:28 PM
I'll install this tonight, looks frigin great !!
sv1cec
01-19-2005, 01:28 PM
@sv1cec
I add the link to your avatar solution in the first post.
Is it ok?
Sure thing, always glad to help.
-------
John
yoyoyoyo
01-19-2005, 01:49 PM
Amazing hack, but I don't see the stat to indicate the actual IP address of the server or a link to the last post/thread (or 10 last posts/threads)
sv1cec
01-19-2005, 01:53 PM
Well, the issue of the blank line on the top of the site, is partially solved, with the instructions you gave us. In my site, it was replaced with a thinner line, in the color of the background, but it is still there. If you can visit the site (forum.m1911.org) using IE you will see that above the two pictures on the top left and right, there is a blue line. That shouldn't be there, the pictures should touch the top edge of the browser's window.
This looks particularly ugly in my site, and I would appreciate if you could eliminate it. Personally I do not care much, as this does not happen with Firefox browser I am using, but the majority of the visitors are using IE and it will break up the forum's image for them.
Again, thanks for a GREAT hack and rgds
TheVirus
01-19-2005, 02:50 PM
Are you or anybody interests to provide a new?
Please contact me.
Sorry, but i am not a graphic freak.
PcFreak
Hey dude, I'm working on a new image pack for you...will send it to you when it's done.
Spinball
01-19-2005, 02:52 PM
I think you might need to add an 'addslashes' in there somewhere?
Database error in vBulletin 3.0.5:
Invalid SQL:
SELECT full_referer_id, counter
FROM statistic_referer_full
WHERE full_referer ='http://www.google.com/search?hl=en&lr=&safe=off&q=B&W 602's amp recommend&btnG=Search'
ORDER BY full_referer_id DESC
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 's amp recommend&btnG=Search'
ORDER BY full_referer_id DESC'
mysql error number: 1064
Date: Wednesday 19th of January 2005 05:37:42 PM
Script: http://www.avforums.com/forums/showthread.php?t=172283
Referer: http://www.google.com/search?hl=en&lr=&safe=off&q=B%26W+602%27s+amp+recommend&btnG=Search
Username: Unregistered
IP Address: 80.164.34.4
Onkel_Tom
01-19-2005, 02:58 PM
I think you might need to add an 'addslashes' in there somewhere?
PcFreak, I thought this was fixed in Dezember in a beta release ????
sv1cec
01-19-2005, 05:14 PM
PcFreak, I thought this was fixed in Dezember in a beta release ????
OK, I've find the problem with the icon in the search engines search strings. In the file statistic/sides/searchengines.php, you have this code:
$et = "<img src='statistic/images/misc/noaktiv.gif' alt='$vbphrase[vbstatistic_searchstring_alt]' width='20' height='20' />"
This should be changed as shown below:
$et = "<img src='statistic/images/misc/noaktiv.gif' alt='$keyword_alt' width='20' height='20' />";
With this change, when the cursor hovers over the https://vborg.vbsupport.ru/external/2005/01/1.gif sign, you get the full search string.
Rgds
Bryan Ex
01-19-2005, 05:36 PM
Confirmed to be working fine on vB 3.0.1 btw. Quick question... where can I edit the data for forum install date as I haven't been able to track it down in the database? It's currently defaulting to Dec 1969...
manguish
01-19-2005, 05:55 PM
Confirmed to be working fine on vB 3.0.1 btw. Quick question... where can I edit the data for forum install date as I haven't been able to track it down in the database? It's currently defaulting to Dec 1969...
Me too - mines defaulting to 01-01-1970 at 18:00 (12803 days)
But no show of a search for %1970% in the database......
Bryan Ex
01-19-2005, 06:03 PM
It's most likely in Unix time and probably has a value of 0 right now... I just can't find the actual field for a forum install date.
manguish
01-19-2005, 06:03 PM
Found this :
vbstatistic_board_online
Shows :
Forums online since: <strong>{1}</strong> at <strong>{2}</strong> (<strong>{3}</strong> days)
Where do we alter {1}, {2} and {3} ?
Bryan Ex
01-19-2005, 06:19 PM
I got it... it's based on the registration date of the first user id in the database (normally user #1) but I did an import from phpBB2 so admin is user 2. In /statistic/side/forum.php find AROUND LINE 48;
$the_begin = $DB_site->query_first("
SELECT username AS name, joindate AS installdate
FROM " . TABLE_PREFIX . "user
WHERE userid = 1
");
Change "WHERE userid = 1" to to match the first user id # actually listed in your database.
Torqued
01-19-2005, 07:43 PM
I want to try a re-install of this from the beginning. How do I quickly delete all the phrases?
S@NL - BlackBik
01-19-2005, 08:43 PM
I'm not sure if you HAVE to delete the v2 data.
But i would anyway, since it's logging more things now etc.[/URL]
Thanks Trosun, I just mist that little piece of info :)
PC Freak and Onkel Tom, thanks a lot for this great hack. I've just hit the "Install" button :banana:
installed on 3.0.1 , my staff members as well as regular members love this hack! thanks for releasing it :D
aussiev8
01-19-2005, 11:18 PM
this script is great, credit to the author, but its not showing that i've been hit by the googlebot.. why's that? this is driving me insane. i really would like to know how many times i get hit by each particular bot, so i can customise my website to suit. I'm being indexed in google so i must be getting visited, why isn't it showing up in here?
Onkel_Tom
01-20-2005, 01:51 AM
I want to try a re-install of this from the beginning. How do I quickly delete all the phrases?
Just read the readme.txt file and run your installation script from the beginning.
Onkel_Tom
01-20-2005, 01:54 AM
this script is great, credit to the author, but its not showing that i've been hit by the googlebot.. why's that? this is driving me insane. i really would like to know how many times i get hit by each particular bot, so i can customise my website to suit. I'm being indexed in google so i must be getting visited, why isn't it showing up in here?
It is showing !
I think you must wait a few days until you get the first visit of googlebot. Visits of Googlebot are not as much as visits from yahoo slurp.
If anyone wants to restrict the display of the Server type values on the main page, do the following change to STATISTIC template:
Find
<td class="alt2">$webserver</td>
</tr>
<tr>
<td class="alt1"><img src="statistic/images/misc/php.gif" alt="$vbphrase[vbstatistic_infos_data_dec]" width="32" height="32" border="0" /></td>
<td class="alt1">$vbphrase[vbstatistic_php_version]</td>
<td class="alt1">$phpversion</td>
</tr>
<tr>
<td class="alt2"><img src="statistic/images/misc/sql.gif" alt="$vbphrase[vbstatistic_infos_data_dec]" width="32" height="32" border="0" /></td>
<td class="alt2">$vbphrase[vbstatistic_sql_version]</td>
<td class="alt2">$mysqlversion</td>
Replace with:
<td class="alt2"><if condition="$bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7">$webserver<else /><strong>Admin only!</strong></if></td>
</tr>
<tr>
<td class="alt1"><img src="statistic/images/misc/php.gif" alt="$vbphrase[vbstatistic_infos_data_dec]" width="32" height="32" border="0" /></td>
<td class="alt1">$vbphrase[vbstatistic_php_version]</td>
<td class="alt1"><if condition="$bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7">$phpversion<else /><strong>Admin only!</strong></if></td>
</tr>
<tr>
<td class="alt2"><img src="statistic/images/misc/sql.gif" alt="$vbphrase[vbstatistic_infos_data_dec]" width="32" height="32" border="0" /></td>
<td class="alt2">$vbphrase[vbstatistic_sql_version]</td>
<td class="alt2"><if condition="$bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7">$mysqlversion<else /><strong>Admin only!</strong></if></td>
Just take out the 5 and 6 conditions if you dion't want to show to mods and supermods.
Amavisca
01-20-2005, 03:33 AM
Awsome hax. Work great on v3.06 Thnx
yoyoyoyo
01-20-2005, 03:41 AM
If anyone wants to restrict the display of the Server type values on the main page, do the following change to STATISTIC template:
Find
<td class="alt2">$webserver</td>
</tr>
<tr>
<td class="alt1"><img src="statistic/images/misc/php.gif" alt="$vbphrase[vbstatistic_infos_data_dec]" width="32" height="32" border="0" /></td>
<td class="alt1">$vbphrase[vbstatistic_php_version]</td>
<td class="alt1">$phpversion</td>
</tr>
<tr>
<td class="alt2"><img src="statistic/images/misc/sql.gif" alt="$vbphrase[vbstatistic_infos_data_dec]" width="32" height="32" border="0" /></td>
<td class="alt2">$vbphrase[vbstatistic_sql_version]</td>
<td class="alt2">$mysqlversion</td>
Replace with:
<td class="alt2"><if condition="$bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7">$webserver<else /><strong>Admin only!</strong></if></td>
</tr>
<tr>
<td class="alt1"><img src="statistic/images/misc/php.gif" alt="$vbphrase[vbstatistic_infos_data_dec]" width="32" height="32" border="0" /></td>
<td class="alt1">$vbphrase[vbstatistic_php_version]</td>
<td class="alt1"><if condition="$bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7">$phpversion<else /><strong>Admin only!</strong></if></td>
</tr>
<tr>
<td class="alt2"><img src="statistic/images/misc/sql.gif" alt="$vbphrase[vbstatistic_infos_data_dec]" width="32" height="32" border="0" /></td>
<td class="alt2">$vbphrase[vbstatistic_sql_version]</td>
<td class="alt2"><if condition="$bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7">$mysqlversion<else /><strong>Admin only!</strong></if></td>
Just take out the 5 and 6 conditions if you dion't want to show to mods and supermods.
cool- now I can move this in to the public area :)
PcFreak
01-20-2005, 05:26 AM
I think you might need to add an 'addslashes' in there somewhere?
PcFreak, I thought this was fixed in Dezember in a beta release ????
Nope. ;)
I fix this for keywords, not for referers. ;)
I have add a new statistic counter.php. Just exchange the new statistic_counter.php with the old one to fix this problem.
I want to try a re-install of this from the beginning
Not the statistic is the problem. It?s your portal.
vBadvanced is a really very good modification. But it is change so much the orginal vBulletin file structur.
At the moment i have no solution for this portal problem.
I got it... it's based on the registration date of the first user id in the database (normally user #1) but I did an import from phpBB2 so admin is user 2. In /statistic/side/forum.php find AROUND LINE 48;
My mistake
I had never thought that userid 1 will be miss sometimes :)
Your solution to change the userid in the forum.php is correctly
OK, I've find the problem with the icon in the search engines search strings
That wasn?t a problem
It was not intended of me, display a link in the alternate text of an image.
The alternate text is the image description. (It is for user with exotic Browsers, or for user which block images). For exampel: Some user surf with Text Browsers (blind user or user with a see handicap) I want make my code accessible for all without barriers. (besides it is xhtml conform)
Greets
PcFreak
sv1cec
01-20-2005, 05:43 AM
That wasn?t a problem
It was not intended of me, display a link in the alternate text of an image.
The alternate text is the image description. (It is for user with exotic Browsers, or for user which block images). For exampel: Some user surf with Text Browsers (blind user or user with a see handicap) I want make my code accessible for all without barriers. (besides it is xhtml conform)
Greets
PcFreak
Then I am afraid that I do not understand your explanation.
"You can show the complete Search string while resting the mouse over the sign. The string will be shown in the "Alt" Tag."
The Alt tag of an image, appears when you rest your cursor over the image. Am I wrong? In any case, that does not bother me, so don't bother yourself either.
Rgds and tnx
That's the problem. I have statistic_java_counter.php in /public_html/forums but when the script runs, I get the error message for the other path. :ermm:
You can either use the full path to the file ie:
include("/home/youraccount/public_html/forums/statistic_counter.php");
or...
if (THIS_SCRIPT != 'adv_index')
{
include("./statistic_counter.php");
} .. if you want to stop the including when people are viewing your adv_index page.
Ah. Right, sorry. Just stick the full path to statistic_java.js in the template. Then, you will need to edit the .js file, on line 113, enter your full forum path.
Onkel_Tom
01-20-2005, 06:02 AM
Then I am afraid that I do not understand your explanation.
"You can show the complete Search string while resting the mouse over the sign. The string will be shown in the "Alt" Tag."
The Alt tag of an image, appears when you rest your cursor over the image. Am I wrong? In any case, that does not bother me, so don't bother yourself either.
Ooops, that was a translation mismatch from me ;)
Spinball
01-20-2005, 06:09 AM
I think you might need to add an 'addslashes' in there somewhere?
Still getting regular database errors.
Any chance of a patch, or instructions on how to patch, please?
PcFreak
01-20-2005, 06:15 AM
Then I am afraid that I do not understand your explanation.
"You can show the complete Search string while resting the mouse over the sign. The string will be shown in the "Alt" Tag."
Its ok. Thats mean, shown in the alt tag of the link ;).
Sorry for this misunderstanding
But I would appreciate some help in solving the additional line issue on the top of my site.
I look around for a solution.
At the moment i have no idea.
I use the IE 6.0 and dont see any line on the top of your side.
Maybe there more users here, with the same problem. I am sure, together we find a solution for this.
PcFreak
PcFreak
01-20-2005, 06:18 AM
Still getting regular database errors.
Any chance of a patch, or instructions on how to patch, please?
I have add a new statistic counter.php. Just exchange the new statistic_counter.php with the old one to fix this problem
Have you done this?
PcFreak
MMHH...
I´m looking for the lenguage SPANISH.. i understand that german is great, but ... i need the spanish translation.
=P If anyone do the translation, i´m interesting..
sv1cec
01-20-2005, 06:32 AM
Its ok. Thats mean, shown in the alt tag of the link ;).
Sorry for this misunderstanding
I look around for a solution.
At the moment i have no idea.
I use the IE 6.0 and dont see any line on the top of your side.
Maybe there more users here, with the same problem. I am sure, together we find a solution for this.
PcFreak
PcFreak,
It looks as if it's not your fault, I am looking at it now, and it shouldn't have any relation to the statistics. Just one question, if you do not mind. Can you please tell me, how can I check in a template (header), what browser the user is using? I think I have to come up with different header versions for IE and the rest.
Many thanks and sorry for the misunderstanding.
Spinball
01-20-2005, 08:00 AM
I have add a new statistic counter.php. Just exchange the new statistic_counter.php with the old one to fix this problem
Have you done this?
PcFreak
I hadn't. Will do it. Many thanks.
ogetbilo
01-20-2005, 08:54 AM
I have couple questions.
1. Is there a Read me text for this mod cause I downloaded the zip and couldnt find the read me text.
2. In version 2.0 we can configure things through admincp and after uninstallation I still have the StatisticSetting. How can i get rid of it ?
3. In version 3 can we control it through admincp also ?
4. System check didn't work at all. Didn't show any information (see attached file) Is there a way to fix this ?
Thanks awesome statistics.
Clicked Install
PcFreak
01-20-2005, 09:15 AM
I have couple questions.
1. Is there a Read me text for this mod cause I downloaded the zip and couldnt find the read me text.
2. In version 2.0 we can configure things through admincp and after uninstallation I still have the StatisticSetting. How can i get rid of it ?
3. In version 3 can we control it through admincp also ?
4. System check didn't work at all. Didn't show any information (see attached file) Is there a way to fix this ?
Thanks awesome statistics.
1) My mistake. I have forgot to add the installation_english.txt. in the last zipfile.
Is fixed now.
2) find in admincpIndex.php
//##### Statistik Funktionen by PcFreak START #####
construct_nav_option("General Statistic Settings",'statistikadmin.php?do=statistik_general','<br />');
construct_nav_group("Statisticsettings");
//##### Statistik Funktionen by PcFreak START #####
remove it
3) Yep and much more.
4) Download the zip.file again. You must do one step to activate a counter.
This step is explained in the installation_english.txt Text (Step 6)
PcFreak
Torqued
01-20-2005, 11:20 AM
Not the statistic is the problem. It?s your portal.
vBadvanced is a really very good modification. But it is change so much the orginal vBulletin file structur.
At the moment i have no solution for this portal problem.
Hrm. So what is the problem/conflict w/ vBAdvanced and vB Statistics?
skizzy203
01-20-2005, 11:49 AM
I would love to install this hack, as I could really make use of it to attract advertisers, but I am running vBadvanced CMPS and I would need to be certain that I could use it without any bugs...
Is anyone planning on finding a solution to this problem?
Rhoads
01-20-2005, 12:14 PM
Hello
I have now 3 time again installed this hack, but I get no statistics at some fields.
I would not know how that comes, I have really done everything such as am described, but nothing helps. I had in the beginning already a wrong message from my database.
mysql error: You have an error in your SQL syntax near '-_drl
LIKE 'pm'
' at line 3
But that I had solved by taking away FROM $dbname from de forum.php (thnx to Ian Emu-UK)
Here you can examine my other problem.
I have heard, that maby advanced can the problem be ?
Here some screens :
Edit :
I have a new database error when I go to the Maintenance for Statistics database : every button that I push there is comming with that error.
Database error in vBulletin 3.0.5:
Invalid SQL:
DELETE FROM statistic_referer_short
ORDER BY counter ASC
LIMIT 0
mysql error: You have an error in your SQL syntax near 'ORDER BY counter ASC
LIMIT 0
' at line 3
mysql error number: 1064
I think that I must uninstalling this, en go back to version 2.
I have everything installed as you described, :tired:
I would love to install this hack, as I could really make use of it to attract advertisers, but I am running vBadvanced CMPS and I would need to be certain that I could use it without any bugs...
Is anyone planning on finding a solution to this problem?
I'm using it, and vBaCMPS, with no problems whatsoever...perhaps it would be the same for vbA.
Spyke
01-20-2005, 04:54 PM
How do i update to this one if i'm uisng vbstatistics v2 ?
PcFreak
01-20-2005, 05:19 PM
Hello
I have now 3 time again installed this hack, but I get no statistics at some fields.
[/CODE]
I think that I must uninstalling this, en go back to version 2.
I have everything installed as you described, :tired:
I am sure you did not Step 6.
==============================
== 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");
--------------
Hint:
--------------
For a forum with several Styles you must do the change for each Style
or you have to put it into your Master Style.
(but think about vB Updates which is overwriting the Master Style!)
@Spyke
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/show...547&postcount=2
Hrm. So what is the problem/conflict w/ vBAdvanced and vB Statistics?
I dont know.
I know that some users get problems with vBAdvanced and the statistic because the headinclude template was changed by vBAdvanced, too.
Sorry, i have no solution for this at moment.
PcFreak
Rhoads
01-20-2005, 05:52 PM
I am sure you did not Step 6.
==============================
== 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");
--------------
Hint:
--------------
For a forum with several Styles you must do the change for each Style
or you have to put it into your Master Style.
(but think about vB Updates which is overwriting the Master Style!)
Yes I do, here my templates,
phpinclude_start :
/*
// Example of how to include a seperate file:
ob_start();
include('yourheader.html');
$your_code = ob_get_contents();
ob_end_clean();
include("./statistic_counter.php");
// Now place a reference to $your_code where you want the resulting HTML to be displayed.
// This will most likely be the header or footer template.
*/
headinclude :
<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" />
<meta name="generator" content="vBulletin $versionnumber" />
<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />
<!-- CSS Stylesheet -->
$style[css]
<if condition="is_browser('opera')">
<style type="text/css">
ul, ol { padding-left:20px; }
</style>
</if>
<!-- / CSS Stylesheet -->
<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl_js]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
// -->
</script>
<script type="text/javascript" src="clientscript/vbulletin_global.js"></script>
<if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js"></script></if>
<script type="text/javascript" src="clientscript/statistic_java.js"></script>
Ian Emu-UK
01-20-2005, 06:01 PM
Is there a quick and easy way to add the normal navbar at the top as well as the statistics one?
Spyke
01-20-2005, 06:25 PM
How do i update to this one if i'm uisng vbstatistics v2 ?
Just wondering.
Marco van Herwaarden
01-20-2005, 06:46 PM
Yes I do, here my templates,
You didn't do as instructed and put the include statement on the end of the 'phpinclude_start' file. You placed it inside a comment block and thus will not be executed.
Rhoads
01-20-2005, 07:40 PM
You didn't do as instructed and put the include statement on the end of the 'phpinclude_start' file. You placed it inside a comment block and thus will not be executed.
Thnx MarcoH64, this was the problem grrrrrr, I must learn still a hope :confused:
Oke now my last problem :
I have a new database error when I go to the Maintenance for Statistics database : every button that I push there is comming with that error.
Database error in vBulletin 3.0.5:
Invalid SQL:
DELETE FROM statistic_referer_short
ORDER BY counter ASC
LIMIT 0
mysql error: You have an error in your SQL syntax near 'ORDER BY counter ASC
LIMIT 0
' at line 3
mysql error number: 1064
Marco van Herwaarden
01-20-2005, 08:08 PM
Now that looks really weird, it is a combination of a DELETE and a SELECT statement.
I don't have this hack installed, so you better wait for the author to reply on this one.
Sir_Yaro
01-20-2005, 09:08 PM
Hello
I found a problem/error and have no idea how to solve it (exept uninstall :) )
here you can find my statistic:
http://justget.org/statistic.php?do=browseros
But they arent correct. I entered on my site using via links, lynx & konkueror couple times; using 4 diferent hosts; 9 diferent system accounts (on this hosts) and 6 vB accounts.
Should be at least 15 apears for each browser (pic1&2) and 3 time more linux.
I've noticed that statistics sometimes count browser after doing couple "system check" refresh.
Aditionally when in my network (one shared public adres) 3 or more persons browse forum, "system check" tab shows total nonsens. (pic3)
Im wondering which data are really read and put to database...
U can test it and see result immediately because i set cron job to one minute...
And last thing.
In 'The 10 most viewed threads':
http://justget.org/statistic.php?do=forum_hits
The same topic appears twice, why?
PcFreak
01-21-2005, 02:51 AM
Oke now my last problem :
I have a new database error when I go to the Maintenance for Statistics database : every button that I push there is comming with that error.
Database error in vBulletin 3.0.5:
Invalid SQL:
DELETE FROM statistic_referer_short
ORDER BY counter ASC
LIMIT 0
mysql error: You have an error in your SQL syntax near 'ORDER BY counter ASC
LIMIT 0
' at line 3
mysql error number: 1064
This error mean that you want delete short referer entries.
But there are no short referer in the database.
Perhaps, there is nothing to delete.
Limit 0 or Limit 1000.
A division by 0 is an error.
But they arent correct. I entered on my site using via links, lynx & konkueror couple times; using 4 diferent hosts; 9 diferent system accounts (on this hosts) and 6 vB accounts.
The statistic make a timestamp with your IP adress.
Your just logging (default) every 30 minutes
The same topic appears twice, why?
I cannot confirm. Works perfect for me.
PcFreak
Imperial Fritz
01-21-2005, 04:00 AM
Thanks for a brilliant addon :)
sv1cec
01-21-2005, 04:04 AM
Is there a quick and easy way to add the normal navbar at the top as well as the statistics one?
In statistic.php, find:
//Zuerst mal die Einstellungen aus der Daten bank holen
Right before that, add:
$navbits = array();
$navbits[''] = 'vB Statistics';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
The go to your statistic_header template and find:
$header
Add below that:
$navbar
sv1cec
01-21-2005, 05:03 AM
If I may offer a suggestion for future releases, one thing I believe every admin would love to see, is statistics about the URL used to leave from the site. For example, if someone has some advertising banners, the statistics on which banner the members clicked to leave from the forum, would be very welcome. Sort of ... invert-referrer.
If that could be added, it would make a lovely hack even better.
Rgds
Spinball
01-21-2005, 08:46 AM
Morning fellows :)
Another database error:
Database error in vBulletin 3.0.5:
Invalid SQL:
SELECT counter
FROM statistic_searchengine_keywords
WHERE keywords = 'vincent tac\'
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 ''vincent tac\'' at line 3
mysql error number: 1064
Date: Friday 21st of January 2005 08:00:14 AM
Script: http://www.avforums.com/forums/showthread.php?goto=lastpost&t=176730
Referer: http://www.google.de/search?q=vincent+tac%5C&hl=de&lr=&newwindow=1&start=20&sa=N
Username: Unregistered
IP Address: 52.159.30.203
Sir_Yaro
01-21-2005, 10:06 AM
The statistic make a timestamp with your IP adress.
Your just logging (default) every 30 minutes
ooops! I wasnt clear - diferent hosts mean also diferent IP - i have access to 4 computer with shell accounts. So ip adresses are absolutelly diferrent.
I cannot confirm. Works perfect for me.
please look at the picture
Ian Emu-UK
01-21-2005, 10:13 PM
OK, I've find the problem with the icon in the search engines search strings. In the file statistic/sides/searchengines.php, you have this code:
$et = "<img src='statistic/images/misc/noaktiv.gif' alt='$vbphrase[vbstatistic_searchstring_alt]' width='20' height='20' />"
This should be changed as shown below:
$et = "<img src='statistic/images/misc/noaktiv.gif' alt='$keyword_alt' width='20' height='20' />";
With this change, when the cursor hovers over the https://vborg.vbsupport.ru/external/2005/01/1.gif sign, you get the full search string.
RgdsThere is a similar problem in the refer.php too.
Find this (it's in the file twice replace both)
$et = "<img src='statistic/images/misc/noaktiv.gif' alt='$vbphrase[vbstatistic_refstring_alt]' border ='0' width='14' height='14' />";
and replace it with this
$et = "<img src='statistic/images/misc/noaktiv.gif' alt='$full_referer_alt' border ='0' width='14' height='14' />";
Thanks for the navbar fix sv1cec.
KW802
01-21-2005, 10:48 PM
Not the statistic is the problem. It?s your portal.
vBadvanced is a really very good modification. But it is change so much the orginal vBulletin file structur.
At the moment i have no solution for this portal problem.Huh? This hack works fine with vBadvanced CMPS. :ermm:
MikaK
01-22-2005, 06:39 AM
Installed without a hitch on a heavily hacked 3.0.3:)
=Mika=
PcFreak
01-22-2005, 09:36 AM
Morning fellows :)
Another database error:
Ups...
One user had searched vincent tac\ in google.
Why someone use this sign \ for search something? :confused:
At the moment, i dont know really, how can i fix this.
This code does not function
$keyword_found = ereg_replace("\","",$keyword_found);
but the php manual says this code is the same
$keyword_found = ereg_replace("\\","",$keyword_found);
Well, try this
Find in statistic_searchengines.php
$keyword_found = ereg_replace("'","",$keyword_found); //Abfangen eines Fehlers der auftreten kann wenn ' Keyword vorkommt
replace ist with
$keyword_found = ereg_replace("'","",$keyword_found); //Abfangen eines Fehlers der auftreten kann wenn ' Keyword vorkommt
$keyword_found = ereg_replace("\\","",$keyword_found); //Abfangen eines Fehlers der auftreten kann wenn \ Keyword vorkommt
Possibly, this will fix this error.
@Sir_Yaro
I see this, when i call the side "10 most viewed threads" in your statistic. (see the image)
Huh? This hack works fine with vBadvanced CMPS.
Yep, for the most statistic users.
But i know that two users have problems if they use vBadvanced and the statistic together.
PcFreak
Sir_Yaro
01-22-2005, 10:36 AM
@Sir_Yaro
I see this, when i call the side "10 most viewed threads" in your statistic. (see the image)
PcFreak
im sorry - i fixed permision for 'Not Logged In' users. Now you can see what i see... :)
But this is a minor problem. Im curious why Links & Lynx arent included in statistic...
PixelFx
01-22-2005, 10:57 AM
Anyone have problems on vb3.0.6?
I was wondering if there is a way to add a stats, to show the average age of all members on the site?
PcFreak
01-22-2005, 12:22 PM
But this is a minor problem. Im curious why Links & Lynx arent included in statistic...
Because these browsers are very exotic.
I have not found a browserstamp (agent) to detect this browsers.
Lynx will detect with the agent "lynx" (you linx agent must use an other agent) and the browser "link" was unknown for me.
Never heard something about this browser. Sorry...
They logged under the point "not identified" browsers
PcFreak
yoyoyoyo
01-22-2005, 01:08 PM
Because these browsers are very exotic.
I have not found a browserstamp (agent) to detect this browsers.
Lynx will detect with the agent "lynx" (you linx agent must use an other agent) and the browser "link" was unknown for me.
Never heard something about this browser. Sorry...
They logged under the point "not identified" browsers
PcFreak
Links is pretty popular in the Linux world, and is giving Konqueror a run for the money. HERE (http://atrey.karlin.mff.cuni.cz/~clock/twibright/links/) is some more info about it. I am not sure what type of stamp it leaves.
sv1cec
01-22-2005, 03:43 PM
One small problem I've noticed.
There was a thread with no replies, in one of the forums. I had it moved to another forum, because it didn't fit in the original place it was. Then I re-run the Show the 10 latest threads with no replies, and that particular thread appears twice, once in the proper place it is now, and another time. If you click in the second link, it gives the following error:
No Thread specified. If you followed a valid link, please notify the webmaster
Minor inconvenience, but you may want to look into it.
Rgds
Smitty
01-22-2005, 05:55 PM
Some Screenshoots
Nice. Installed on 3.0.6 this morning after uninstalling version 2. Quick and easy.
Sent you 15 Euros. A very nice 'hack'. Thanks!
KW802
01-22-2005, 11:22 PM
PcFreak, just want to say "Thank You" for this hack -- Being able to see all of this information together like this is revealing some very cool stuff. :cool:
PcFreak
01-23-2005, 05:38 AM
One small problem I've noticed.
There was a thread with no replies, in one of the forums. I had it moved to another forum, because it didn't fit in the original place it was. Then I re-run the Show the 10 latest threads with no replies, and that particular thread appears twice, once in the proper place it is now, and another time. If you click in the second link, it gives the following error:
No Thread specified. If you followed a valid link, please notify the webmaster
Minor inconvenience, but you may want to look into it.
Rgds
I noted this problem.
Look for a solution. (I think i must improve one or two querys. I will fix this in an update version)
Links is pretty popular in the Linux world, and is giving Konqueror a run for the money. HERE is some more info about it. I am not sure what type of stamp it leaves.
Is not very difficult to add new browsers and os.
Needed just one new data insert and just one new condition.
Will add more Browsers/OS/Spider and Crawlers with an Update.
Suggestions on further Browser/OS are welcome.
Sent you 15 Euros. A very nice 'hack'. Thanks!
Juhuu... :)
Thank you very much for this very big donate.
I was very happy about this
PcFreak
Smitty
01-23-2005, 10:44 AM
I was going through a few things, and I'm seeing a lot of duplicates in the 'No Replies' listing. One link works but the other is a Thread Not Found. Any idea what would cause this?
EDIT ADD: I also have found several entries which have replies in the thread. I'll read back through the whole thread here in case I missed something, but if not - Any ideas?
sv1cec
01-23-2005, 11:15 AM
I was going through a few things, and I'm seeing a lot of duplicates in the 'No Replies' listing. One link works but the other is a Thread Not Found. Any idea what would cause this?
EDIT ADD: I also have found several entries which have replies in the thread. I'll read back through the whole thread here in case I missed something, but if not - Any ideas?
I hate to write only for problems, this is a very minor one, but I am not sure how to handle it.
In the AdminCP selection of Database Maintenance, the last option (Delete individual referrers from database) appears twice. Is it correct to assume that I can just delete the code which produces the duplicate, or did you plan for something else there?
Rgds
jancarlo
01-23-2005, 04:01 PM
how it can make in order to make so that admin and moderator they only read statistics?
jancarlo
PcFreak
01-23-2005, 08:21 PM
In the AdminCP selection of Database Maintenance, the last option (Delete individual referrers from database) appears twice. Is it correct to assume that I can just delete the code which produces the duplicate, or did you plan for something else there?
Rgds
I think it is possibel write a better query for this problem. (But you can correct this in the admincp for first)
I was going through a few things, and I'm seeing a lot of duplicates in the 'No Replies' listing. One link works but the other is a Thread Not Found. Any idea what would cause this?
The same. I will write better querys.
(I m not sure. Perhaps the problem separates of alone. There are few scheduled tasks inside vbulletin. I do not know exactly. But it could be that one of this task delete the duplicate links daily or weekly :ermm: )
how it can make in order to make so that admin and moderator they only read statistics?
There is an option in admincp under =>Options for Statistics Main Page=>Settings for showing the statistics
PcFreak
Smitty
01-23-2005, 08:29 PM
In the AdminCP selection of Database Maintenance, the last option (Delete individual referrers from database) appears twice. Is it correct to assume that I can just delete the code which produces the duplicate, or did you plan for something else there?I think the duplicate is a typo. If you look at the descriptive text for each one rather than the title, one is for domains and one is for referrers.
EDIT ADD: I have confirmed it is a title typo.
Sir_Yaro
01-23-2005, 10:01 PM
Because these browsers are very exotic.
I have not found a browserstamp (agent) to detect this browsers.
Lynx will detect with the agent "lynx" (you linx agent must use an other agent) and the browser "link" was unknown for me.
Never heard something about this browser. Sorry...
They logged under the point "not identified" browsers
not link but links :)
http://links.sourceforge.net/
its a well known text browser in linux. only lynx is known better. :)
Is not very difficult to add new browsers and os.
Needed just one new data insert and just one new condition.
Will add more Browsers/OS/Spider and Crawlers with an Update.
Suggestions on further Browser/OS are welcome.
if you want im will help you with pleasure. just tell me how i can find this browserstamps....
and what with this topic duplicates? how can i remove it?
I have a small problem with the statistics.
While you do show me how many bots entered (and what precentage they take out of my visitors) The rest of the statsistics do not take that into account.
This means that when i get 514 visitors today its actually more like 350 (damn slurp) or when i check in Referrers the precentage that come directly/through an external Referrer calculate the bots within which is not something i would want.
Any way to bypass thats ?
p.s.
am i the only one that gets harassed by slurp ?
PixelFx
01-24-2005, 04:19 AM
your not the only one my site is getting attacked by Slurp as well.
Carl Anderson
01-24-2005, 05:48 AM
I ran the uninstall script for version 2 so I could upgrade to 3 and now I get this.....
Database error in vBulletin 3.0.6:
Invalid SQL:
SELECT LOGTIME FROM statistik_einstellungen
mysql error: Table 'goldism_goldism.statistik_einstellungen' doesn't exist
mysql error number: 1146
Date: Monday 24th of January 2005 02:47:10 AM
Script: http://goldismoney.info/forums/index.php?
Referer:
Username: G-khan
IP Address: 68.119.29.63
I can't log in or do anything not even to my admincp
Anyone know a fix......
Onkel_Tom
01-24-2005, 05:59 AM
You haven't done the remove of the logging in your template phpinclude_start as it is described in the readme and also in the uninstalling file !!!
But you should login in admincp to get ride of this code in your phpinclude_start template also afterwards.
If this did't work you have to go with phpmyadmin to your database directly and edit the template there.
Carl Anderson
01-24-2005, 06:05 AM
You haven't done the remove of the logging in your template phpinclude_start as it is described in the readme and also in the uninstalling file !!!
But you should login in admincp to get ride of this code in your phpinclude_start template also afterwards.
If this did't work you have to go with phpmyadmin to your database directly and edit the template there.
How do I get to my phpmyadmin as it wont let me login to my admincp....... I do not have a control panel on my server so I would have to telnet in...
Carl Anderson
01-24-2005, 06:13 AM
I got this fixed..................
Double-Posts!!!
yes you can use paypal :)
Hi,
I recived a db error from the vB statistics (already works on my site for a couple of days)
here is the error :
Database error in vBulletin 3.0.6:
Invalid SQL:
SELECT counter
FROM frm_statistic_searchengine_keywords
WHERE keywords = '???\'
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 ''???\'' at line 3
mysql error number: 1064
The forum is in hebrew thus the ??? in the syntax, anyway around this ?
Marco van Herwaarden
01-24-2005, 11:26 AM
Hi,
I recived a db error from the vB statistics (already works on my site for a couple of days)
here is the error :
Database error in vBulletin 3.0.6:
Invalid SQL:
SELECT counter
FROM frm_statistic_searchengine_keywords
WHERE keywords = '???\'
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 ''???\'' at line 3
mysql error number: 1064
The forum is in hebrew thus the ??? in the syntax, anyway around this ?
I am not the coder of this hack, but try the following changes.
in file statistic_searchengines.php
find:
$keywords_known = $DB_site->query("
SELECT counter
FROM " . TABLE_PREFIX . "statistic_searchengine_keywords
WHERE keywords = '$keyword_found'
");
Replace by:
$keywords_known = $DB_site->query("
SELECT counter
FROM " . TABLE_PREFIX . "statistic_searchengine_keywords
WHERE keywords = '" . addslashes($keyword_found) . "'
");
This will be a solution to this one query. I noticed there are more places where this could happen, so just keep adding the 'addslashes()' as you go.
The Realist
01-24-2005, 12:58 PM
Installed but when I click on update within admin panel I get this error:
Could not find phrase 'vbstatistic_admin_cp_set'.
I have search phrases and it is there. I have edited and saved and still the same error?
Anyone with some pointers on this?
MissKalunji
01-24-2005, 03:20 PM
when you click on the Country of origin and browser language then u click on lets say .com its suppose to bring you to WIKIPEDIA free encyclopedia but it gives an error page http://no name of domain ...what do i do to fix that???
Smitty
01-24-2005, 04:56 PM
when you click on the Country of origin and browser language then u click on lets say .com its suppose to bring you to WIKIPEDIA free encyclopedia but it gives an error page http://no name of domain ...what do i do to fix that???EDIT: The Links to take you to the WIKIPEDIA page do not work on a *few* links in my install either.
And - The popup pages are not resizable (bummer).
I will make this note - Off topic from the reply above - On the main stats page it appears search engine spiders / bots are part of the count for page hits, average number of users, etc. The statistics are relatively useless when bots/spiders are included.
MissKalunji
01-24-2005, 09:57 PM
EDIT: The Links to take you to the WIKIPEDIA page do not work on a *few* links in my install either.
And - The popup pages are not resizable (bummer).
I will make this note - Off topic from the reply above - On the main stats page it appears search engine spiders / bots are part of the count for page hits, average number of users, etc. The statistics are relatively useless when bots/spiders are included.
in wich file??
Smitty
01-25-2005, 04:17 AM
in wich file??
I'll check tomorrow and let you know which links. For my board it's a relative issue because it takes users to WIKIPEDIA pages in German and most of my registered users are English speakers.
If you want to see my stats (elsmar.com/Forums/), you can log in with user name: vborg, password: statstest
I'll leave that account active for a day or two.
Torqued
01-25-2005, 04:32 AM
Is there maybe a 3.1 bugfix version soon? :)
PcFreak
01-25-2005, 05:54 AM
when you click on the Country of origin and browser language then u click on lets say .com its suppose to bring you to WIKIPEDIA free encyclopedia but it gives an error page http://no name of domain ...what do i do to fix that???
You can?t fix that.
Not for every language or tld, there is a side on wikipedi encyclopedia.
I have made the inserts (the urls) to wikipedia in October 2004.
(It could be it in the meantime a side gives)
And - The popup pages are not resizable (bummer).
Yes. I intended this also in such a way.
My philosophy over the visitors
What is a visitor?
When i started to code the statistic, i have think about this very much
For me it is all the same whether now the visitor Spider, Crawler or an actual visitor is.
I wanted to know how many vistits or page hits are on my sides. (All together)
@MarcoH64
Thank you for the tipp with 'addslashes()' .
I will use this in a comming update.
@The Realist
The Phrase 'vbstatistic_admin_cp_set' is not a global phrase. This phrase is a CP Stop Message (phrasetypeid = 9000).
Is there maybe a 3.1 bugfix version soon?
I think, there are not really many bugs.
Of course, there are some problems. But most of them are individually (for example: problems to deinstall the old statistic version, links Browser is not detected ;), misunderstandings, and few problems with querys particularly with keywords.)
For the most users, the statistic works perfekt.
PcFreak
yinyang
01-25-2005, 08:54 PM
here's the oddest thing. i just noticed that all the statistics seem to be counting fine except :
Page hits since statistics began: 0
Number of visitors since statistics began: 0
Average visitors per day: 0
I installed it on January 19 and it's been tracking the last days members, threads, search bots, etc. any ideas what happened?
I installed it on another board and it works fine there! help!
Smitty
01-26-2005, 10:53 PM
I had to uninstall. Too many database errors and other issues.
Oh, well. I'll probably put the old verson 2 back in.
yinyang
01-27-2005, 04:55 AM
here's the oddest thing. i just noticed that all the statistics seem to be counting fine except :
Page hits since statistics began: 0
Number of visitors since statistics began: 0
Average visitors per day: 0
I installed it on January 19 and it's been tracking the last days members, threads, search bots, etc. any ideas what happened?
I installed it on another board and it works fine there! help!
hello? this is so odd!
Jenta
01-27-2005, 06:52 AM
great job on this
its amazing
the only thing i would hope is to exclude myself from being counted as im always there and it tends to scew? the stats
hello? this is so odd!
Did you do the include thing for the statistic_counter.php file?
Check your error logs if you did, it may be trying to call it from the wrong place, in which case you would need to change the path.
Onkel_Tom
01-27-2005, 07:21 AM
I had to uninstall. Too many database errors and other issues.
Oh, well. I'll probably put the old verson 2 back in.
I can't undestand!
We tested this version on more than one vB and all went fine. Also PcFreak do a lot of bugfixing before release and after release.
Did you really use the latest scripts ?
Or did you correct uninstall of the old vB2 version ?
Some guys didn't uninstall der vB 2 version correct and so they get database errors from the old one and not from the new version 3 !
My philosophy over the visitors
What is a visitor?
When i started to code the statistic, i have think about this very much
For me it is all the same whether now the visitor Spider, Crawler or an actual visitor is.
I wanted to know how many vistits or page hits are on my sides. (All together)
PcFreak
While i do like your philosophy it does seems to get in the way of me getting to know how my visitors act (where they come from etc...) so can we perhaps come to an understanding where you could choose your life philosophy ? :nervous:
(an option to turn the bot counting on/off).
its a great hack nontheless :D
Beermonster
01-27-2005, 08:15 AM
I havn't had any problems with it but one of my mods was viewing it and it returened an error
Invalid SQL:
SELECT Summe as Datum
FROM statistik_zaehler AS statistik_zaehler
WHERE Zaehler_fuer = 'Statistik_Aktiv'
mysql error: Table 'vb3.statistik_zaehler' doesn't exist
mysql error number: 1146
any ideas?
Onkel_Tom
01-27-2005, 08:32 AM
I havn't had any problems with it but one of my mods was viewing it and it returened an error
Invalid SQL:
SELECT Summe as Datum
FROM statistik_zaehler AS statistik_zaehler
WHERE Zaehler_fuer = 'Statistik_Aktiv'
mysql error: Table 'vb3.statistik_zaehler' doesn't exist
mysql error number: 1146
any ideas?
I think there is a TABLE_PREFIX missing in this query.
Beermonster
01-27-2005, 08:51 AM
I think there is a TABLE_PREFIX missing in this query.
Yes there is it's my database name, I removed it from the post
Installed with no problems and works well on 3.0.6 .. great hack.
Clicked install
Sir_Yaro
01-27-2005, 12:42 PM
PcFreak, you wrote that you never heard about Links browser - thats why statistic doesnt recognised it.
But why Links IS in this list:
http://justget.org/statistic.php?do=now_browser_info
(17th from below) ??
In that case which browser is recogniser as Links ?
Smitty
01-27-2005, 01:27 PM
I can't undestand!
We tested this version on more than one vB and all went fine. Also PcFreak do a lot of bugfixing before release and after release.
Did you really use the latest scripts ?
Or did you correct uninstall of the old vB2 version ?
Some guys didn't uninstall der vB 2 version correct and so they get database errors from the old one and not from the new version 3 ! Well, one problem was with the 'posts since last visit' function. See: Issue with "Since Last Visit" Search (http://elsmar.com/Forums/showthread.php?t=10697)
I was also getting database errors from referrer entries. I went through the uninstall of version 2 pretty thoroughly, I think. Example: Database error in vBulletin 3.0.6:
Invalid SQL:
SELECT counter
FROM statistic_searchengine_keywords
WHERE keywords = '\iso rules for lead free solder\'
mysql error: You have an error in your SQL syntax near ''\iso rules for lead free solder\'
' at line 4
mysql error number: 1064
Date: Wednesday 26th of January 2005 07:03:59 PM
Script: http://elsmar.com/Forums/showthread.php?t=8031
Referer: http://search.yahoo.com/bin/search?p=\'iso%20rules%20for%20lead%20free%20solde r\'
Username: Unregistered
At this point I'm pretty busy with a few things and want to make sure the 'posts since last visit' function is working correctly without this 'hack'. This weekend I'll take a look at everything and see if I did something wrong in editing the files. Actually, version 2 was OK for me. There are some things in it I did like better as to presentation. And, as I said earlier, including bots / spiders in stats like visitors on the main page dilute the information. Bots and spiders come and go while my main interest is in the people who visit.
Most of this isn't an isssue for me over all - I saw this as something for forum users more than anything else - I have a log analysis program I use on the site as a whole which segrates things like bot / spiders vs. 'people' - And most everything else I need.
I like the idea. I think it's a very nice 'hack'. And I'm not disappointed. A lot of time and hard work went into it. But for me, it'll be something I have to look more closely at - And to do that I have to find some time.
Note that I'm not a programmer so I'm not really very good at debugging. As the old saying goes, I know enough to be dangerous.
bkaul
01-27-2005, 10:04 PM
Threads in hidden forums are shown to users who don't have access when listing the top replied to threads, etc. - this is a *BIG* flaw for anyone with "secret" subforums!
Other than that, great add-on...
yinyang
01-27-2005, 10:54 PM
Did you do the include thing for the statistic_counter.php file?
Check your error logs if you did, it may be trying to call it from the wrong place, in which case you would need to change the path.
thanks kall. i went through and everything is where it should be. and it still doesn't work. *sigh*
Sir_Yaro
01-27-2005, 11:21 PM
PcFreak you shoud say that its SO easy to add new browser to statistic code....
just add
elseif(strpos($agent, 'links') !== false) $browser = "Links";
under
elseif(strpos($agent, 'mozilla') !== false) $browser = "Mozilla"; //Mozilla
in statistic_browser_os.php file :)
Regards
Thanks PCfreak.
Installed on vb3.0.x with no issues
Thanks Kall for showing how to hide sever details for selected users.
Viks
azher
01-28-2005, 05:24 PM
Hello,
Is there some sort of caching feature I'm missing? If I haven't hit the stats page all day, it usually takes between 120-200 seconds to generate the page. After that lag, the pages usually load up a bit quicker but this could definitely benefit from some form of a statscache.
PcFreak
01-29-2005, 07:49 AM
Hello,
Is there some sort of caching feature I'm missing? If I haven't hit the stats page all day, it usually takes between 120-200 seconds to generate the page. After that lag, the pages usually load up a bit quicker but this could definitely benefit from some form of a statscache.
This could be an other Problem (Performance Hit Since PHP 4.3.10 / 5.0.3)
Many people have noticed that vBulletin (any a lot of other PHP applications) suddenly started to run significantly slowed than normal after installing PHP 4.3.10 or 5.0.3 in order to patch the security flaw in previous versions of PHP.
This cause of this slow-down has been identified as a problem with the unserialize() function in PHP. For more details, see bugs.php.net. (http://bugs.php.net/bug.php?id=31332)
The full artikel you can read here: http://www.vbulletin.com/forum/showthread.php?p=801545#post801545
@Sir_Yaro
Ups. Sorry. It could be that i have forgot to define the Links Browser. I cant remember.
Threads in hidden forums are shown to users who don't have access when listing the top replied to threads, etc. - this is a *BIG* flaw for anyone with "secret" subforums!
I cant confirm this.
I have make tests on my forum, but this funktion works well for me.
User without the permission to see a hidden forum cant see a hidden thread.
Perhaps, it could be you have not set the userpermission correctly or you have build new usergroups which have this permissions.
My tip. Check the userpermissions of your forum. I think, there is set something wrong.
PcFreak
Anarchy
01-29-2005, 08:48 AM
Database error in vBulletin 3.0.6:
Invalid SQL:
SHOW TABLE STATUS
FROM toontowncentral_com_-_database
LIKE 'pm'
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 '-_database
LIKE 'pm'' at line 2
mysql error number: 1064
Date: Saturday 29th of January 2005 04:50:21 AM
Script: http://www.toontowncentral.com/forums/statistic.php
Referer:
Username: Nick
IP Address: 203.173.16.50
PcFreak
01-29-2005, 09:16 AM
@Anarchy
in statistic/sides/forum.php found
$pm_speicher_groesse = $DB_site->query("
SHOW TABLE STATUS
FROM $dbname
LIKE '" . TABLE_PREFIX . "pm'
");
replace ist with
$pm_speicher_groesse = $DB_site->query("
SHOW TABLE STATUS
FROM $dbname
LIKE 'pm'
");
This will fix this error (i hope)
(toontowncentral_com_-_database is not a good database name. This "-" is a the sign for subtraction. Better is to use this "_".)
Greets
PcFreak
Guy G
01-29-2005, 09:35 AM
Is there uninstallation script as well?
Anarchy
01-29-2005, 10:51 AM
@Anarchy
in statistic/sides/forum.php found
$pm_speicher_groesse = $DB_site->query("
SHOW TABLE STATUS
FROM $dbname
LIKE '" . TABLE_PREFIX . "pm'
");
replace ist with
$pm_speicher_groesse = $DB_site->query("
SHOW TABLE STATUS
FROM $dbname
LIKE 'pm'
");
This will fix this error (i hope)
(toontowncentral_com_-_database is not a good database name. This "-" is a the sign for subtraction. Better is to use this "_".)
Greets
PcFreak
After much playing around, i back quoted the `$dbname`
This fixed the problem.
Maybe you want to add this to your next release.
$pm_speicher_groesse = $DB_site->query("SHOW TABLE STATUS FROM `$dbname` LIKE 'pm'");
sv1cec
01-29-2005, 01:00 PM
Could you please explain to me what's the meaning of the last two lines shown below:
Total threads: 2,353
Total posts: 15,636
Hits: 518,888
Ø: 221 times <<<<<<<<
Thread replies: Ø 5.65 times <<<<<<<<
It's taken from the right column of the first page which appears when you run the statistics.
I assume the second is averate replies per thread, but I am not sure and I do not understand the first one.
Rgds
Lizard King
01-29-2005, 04:48 PM
Awesome statistics. Easy to install and very detailed statistics. Well Done.
yoyoyoyo
01-29-2005, 09:09 PM
Here is a quick & dirty way to integrate the stats page in to your ACP:
In your admincp/index.php file find
//##### Statistic 3 by PcFreak START #####
$printhr = true;
add below:
construct_nav_option('STATISTICS', '../statistic.php?', '<br />');
nothing too fancy, but it works. You can obviously put it wherever you want in your statistics ACP menu, and you can call it whatever you want. Again- I realize this isn't groundbreaking, but I thought one or two newbies like myself might find it useful.
MissKalunji
01-30-2005, 04:17 AM
when i got to my statistic it says...
Forums online since: 12-31-1969 at 19:00 (12813 days)
This forum was installed by:
???????? how i can fix it?
Lizard King
01-31-2005, 01:25 AM
Is there a way for me to see the second domain statistics in a different part like
xxxxxx.com page hits : 150.000
yyyyy.com page hits : 25.000
Is this possible ?
jeepinator
01-31-2005, 02:10 AM
This is the best hack I've ever seen!
It's working great. Thank you very much.
Hey dude, I'm working on a new image pack for you...will send it to you when it's done.
Waiting anxiously :lick:
hXc Radio
01-31-2005, 06:52 AM
A lot of things are not working for me. I have no refer sites and no hits since installed, but 42 of my members have been online today.
I thought of trying the cron script manually and received this error...
Fatal error: Call to a member function on a non-object in /home/hxcradio/public_html/forum/includes/cron/statisticupdate.php on line 20
hXc Radio
01-31-2005, 07:05 AM
I also ran $DB_site->query("
OPTIMIZE TABLE " . TABLE_PREFIX . "statistic_log , " . TABLE_PREFIX . "statistic_log_java , " . TABLE_PREFIX . "statistic_status"); in phpmyadmin just now... but still no updating
I have further cleaned up the English translation, especially in the AdminCP, to make things a bit more understandable now that I understand what it all does. :)
To "upgrade", just backup your database/download your current language file, unzip the .xml in this zip and go to your AdminCP - Languages and Phrases - Download / Upload Languages and browse to it and upload it into your existing English language.
To see the 'new translation' in action: http://forums.nzboards.com/statistic.php (I have edited the STATISTIC template slightly to change the names of the 'Type' column on the right..if anyone wants the changes, I will post them here)
If you don't like it, just upload the language .xml you backed up prior. :)
Harley77
01-31-2005, 11:10 AM
Any idea as to why all I get now when trying to open the Stats page is this:
Database error in vBulletin 3.0.3:
Invalid SQL:
SELECT COUNT(*) AS forums
FROM forum
WHERE forumid IN(1, 4, 3, 19, 26, 38, 10, 6, 33, 35, 7, 18, 9, 8, 32, 11, 12, 13, 22, 36, 20, 21, 37, 0)
mysql error: The SELECT would examine more rows than MAX_JOIN_SIZE. Check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is ok
mysql error number: 1104
I've completely uninstalled and reinstalled with no change. The only hacks I've installed recently since this started was the gift and ribbon hack for the store.
Freezerator
01-31-2005, 01:16 PM
Registered users: 16,890
User with an avatar: 11
User with a profile picture: 342
I don't think this number 11 is right... What can be wrong? I have installed de new languae.
I don't think this number 11 is right... What can be wrong? I have installed de new languae.
Have you applied the fix found here (https://vborg.vbsupport.ru/showpost.php?p=597937&postcount=47) (and mentioned in the first post of this thread)?
Freezerator
01-31-2005, 04:39 PM
Have you applied the fix found here (https://vborg.vbsupport.ru/showpost.php?p=597937&postcount=47) (and mentioned in the first post of this thread)?
Yes, it's already coded in the new files.
sv1cec
01-31-2005, 04:41 PM
This is the second time I am asking:
Could you please explain to me what's the meaning of the last two lines shown below:
Total threads: 2,353
Total posts: 15,636
Hits: 518,888
Ø: 221 times <<<<<<<<
Thread replies: Ø 5.65 times <<<<<<<<
It's taken from the right column of the first page which appears when you run the statistics.
I assume the second is averate replies per thread, but I am not sure and I do not understand the first one.
Rgds
yoyoyoyo
01-31-2005, 04:41 PM
I have further cleaned up the English translation, especially in the AdminCP, to make things a bit more understandable now that I understand what it all does. :)Thanks much!
Yes, it's already coded in the new files.
Well you have no avatars then.
SELECT COUNT(*) as avatar
FROM " . TABLE_PREFIX . "user where avatarid!='0'
");
That returns a value equal to the number of users with an avatar from your database. The previous call returns the number with custom avatars.
@sv1cec: I believe it is 'Average Views per thread', which is what I called it in the latest language file. :)
oldfan
01-31-2005, 05:35 PM
bug free yet?
sv1cec
01-31-2005, 05:41 PM
@sv1cec: I believe it is 'Average Views per thread', which is what I called it in the latest language file. :)
Thanks for that, is is too difficult for the author to answer this simple question with certainty please?
Tnx
Thanks for that, is is too difficult for the author to answer this simple question with certainty please?
Tnx
Given the language barrier...it probably *is* difficult for him to answer with certainty.
I looked at the template and the phrase name and what was being called in the php file and made an educated guess.
sv1cec
01-31-2005, 08:20 PM
Given the language barrier...it probably *is* difficult for him to answer with certainty.
I looked at the template and the phrase name and what was being called in the php file and made an educated guess.
OK Kal, thanks for your help anyway, I'll spend some time looking in the code to see what is going on there.
Rgds
gigaenvy
01-31-2005, 10:42 PM
How do you add another spider or bot? I want to see BecomeBot in the stats but still nothing after editing statistic_spider.php.
oldfan
01-31-2005, 11:36 PM
workin good, on 3.06 :)
Got any gifs for dark/black backgrounds ?
* oldfan clicks install
hXc Radio
01-31-2005, 11:57 PM
A lot of things are not working for me. I have no refer sites and no hits since installed, but 42 of my members have been online today.
I thought of trying the cron script manually and received this error...
Fatal error: Call to a member function on a non-object in /home/hxcradio/public_html/forum/includes/cron/statisticupdate.php on line 20
any help on this please? I even reinstalled and still same problems...
Freezerator
02-01-2005, 05:34 AM
Well you have no avatars then.
SELECT COUNT(*) as avatar
FROM " . TABLE_PREFIX . "user where avatarid!='0'
");
That returns a value equal to the number of users with an avatar from your database. The previous call returns the number with custom avatars.
Very strange then, because i have got topics where i can count on page 1 alreay more avatars then showed.
Freezerator
02-01-2005, 05:35 AM
any help on this please? I even reinstalled and still same problems...
Have you editted the head_include and php_includestart template?
shin asura
02-01-2005, 07:23 AM
The directions aren't easy to follow
The directions aren't easy to follow
I disagree.
What exactly are you finding hard to follow?
PcFreak
02-01-2005, 09:48 AM
workin good, on 3.06 :)
Got any gifs for dark/black backgrounds ?
* oldfan clicks install
Sorry. At the moment there are not an other image pack.
I hope that the member "TheVirus" will release his pack soon. :smoke:
How do you add another spider or bot? I want to see BecomeBot in the stats but still nothing after editing statistic_spider.php.
You must make a new entry in the statistic_spider table, too if you want add a new spider.
Total threads: 2,353
Total posts: 15,636
Hits: 518,888
?: 221 times <<<<<<<<mean: Average visitors per day:
Thread replies: ? 5.65 times <<<<<<<< mean: Answers to a topic: on the average
PS:
Many thanks to kall for the support in the last days.
Thanks for the new phrases, too.
PcFreak
oldfan
02-01-2005, 10:15 AM
Sorry. At the moment there are not an other image pack.
I hope that the member "TheVirus" will release his pack soon.
thanks, I'll keep a lookout for them :)
PS:
Many thanks to kall for the support in the last days.
Thanks for the new phrases, too.
PcFreak
yes, thank you :)
hXc Radio
02-01-2005, 11:20 AM
Have you editted the head_include and php_includestart template?
i did.. but thank you for suggesting because checking to make sure i did.. i found a */ in the php start temp. It is now showing all results. great hack!
*clicks install*
PS:
Many thanks to kall for the support in the last days.
Thanks for the new phrases, too.
*bows and swirls big puffy hat around, musketeer-style*
You are most welcome sir. :)
*edit* Oooh! You added me to the supporters field! *squeals excitedly* :D
sv1cec
02-01-2005, 06:05 PM
?: 221 times <<<<<<<<mean: Average visitors per day:
Thread replies: ? 5.65 times <<<<<<<< mean: Answers to a topic: on the average
Now I am really puzzled. Average visitors per day?
Please look at the picture here.
https://vborg.vbsupport.ru/external/2005/02/4.jpg
Maybe you mean "Average Visitors per day per thread" or "Average Visitors per Thread" ?
Also, can you please explain to me the difference between the two different "Hits" numbers, one in the first column, one in the second (blue arrows)?
Thanks
Well...I did fix that in the latest language release, making it a lot clearer...
The right-hand column now reads:
Total threads:
Total posts:
Thread views:
Avg thread views:
Carl Anderson
02-01-2005, 08:27 PM
Well...I did fix that in the latest language release, making it a lot clearer...
The right-hand column now reads:
Total threads:
Total posts:
Thread views:
Avg thread views:
Is there an easy way to fix this by just editing something?
Is there an easy way to fix this by just editing something?
Try looking at the STATISTIC template...it's all phrased, so you could go about it thusly:
Find in Phrases - *the phrase you are wanting to change*
Make note of its name
Search in template STATISTIC for that phrase.
Change it to a hardcoded entry...like 'My new title for this stat' :)
Try looking at the STATISTIC template...it's all phrased, so you could go about it thusly:
Find in Phrases - *the phrase you are wanting to change*
Make note of its name
Search in template STATISTIC for that phrase.
Change it to a hardcoded entry...like 'My new title for this stat' :)
Of course, why you would want to do that rather than just importing the latest English translation .xml ... I wouldn't know.
|Jordan|
02-04-2005, 03:59 AM
Where's the link in AdminCP?
Is there even a link? I can't find it.
Can you provide some instructions to enable the link.
Where's the link in AdminCP?
Is there even a link? I can't find it.
Can you provide some instructions to enable the link.
AAAAAAAAARGH!
==============================
== step 1 ==
==============================
-----------------------
open file:
-----------------------
admincp/index.php
Now, I could just be making an assumption here, but would that not be the obvious place to look?
Did you read the installer?
Everyone: Please, before asking questions, on this or any other hack, read the frikken install file. It saves a lot of hassle.
|Jordan|
02-04-2005, 05:13 AM
Oops
I didn't see that.
Sorry :o :surprised:
Oops
I didn't see that.
Sorry :o :surprised:
*pats you on head*
That's okay. Everyone has to start somewhere. :)
*continues packing entire life into boxes*
northernstar
02-05-2005, 02:55 AM
This looks like a great hack! But just one question, how much does it affect server load?
Are all the queries run when someone requests the statistics, or are they updated at a predetermined time and a cache is used?
Sorry for the newbie question, but I have a 20,000+ members, and over 500,000 posts, it kills me to think what this could do to the server if a bunch of ppl request the stats page around the same time :ermm:
PcFreak
02-05-2005, 08:51 AM
The serverload is very low.
Querys for the logging part.
Max. 6 Querys for the first log. (3 normal and 3 shoutdown querys)
After that, 3 Querys. (1 normal and 2 shoutdown) for each side refresh.
Show one side of the statistic it the same like show the index.php or a other part of the forum. (need between 8 and 12 querys)
PcFreak
SnowBot
02-05-2005, 05:15 PM
Installed without any problems...GREAT work again :)
Zachariah
02-05-2005, 06:59 PM
/me hands PcFreak a brew and a hardy handshake.
4number8
02-05-2005, 11:39 PM
Installed flawlessly, thank you so much PcFreak on another outstanding job.
This will be very useful :)
* 4number8 clicks install
Sweet Evil
02-07-2005, 02:13 AM
I installed ti and it seems to work fine, but when i add the code
<script type="text/javascript" src="./clientscript/statistic_java.js"></script>
to my headerinclude i get a gap at the top of my forums.
Any Ideas? Thanks!
use this one ;)
<div style="display:none">
<script type="text/javascript" src="./clientscript/statistic_java.js"></script>
</div>
Sweet Evil
02-07-2005, 02:57 AM
Thanks, Much Better :)
weirdpixels
02-08-2005, 11:10 AM
great hack :) *clicks install
S@NL - BlackBik
02-09-2005, 07:50 PM
Uninstall of V2 and install of V3 worked like a charm *thumbs up*
Thanks a lot!
Now there only rests the task for me of translating the phrases to Dutch :D
Jenta
02-10-2005, 12:07 PM
Why doesn't this work?
if ($statistic_on_off == "1") {
if (!($permissions['forumpermissions']) OR !($permissions['genericpermissions']) OR $bbuserinfo['usergroupid'] == 9)
{
print_no_permission();
}
}
i added OR $bbuserinfo['usergroupid'] == 9 but they can still see it
Battle_Ring
02-12-2005, 01:14 AM
i installed this set my domain in the options it said saved sucessfully but than it goes back to the page and nothing is i nthere for the domain
Delphiprogrammi
02-12-2005, 05:05 AM
the install script is in german ?????? sorry but i don't understand that language and i'm getting database crashes i downloaded https://vborg.vbsupport.ru/attachment.php?attachmentid=23192 it says vbstats_english but the install runs in german ??
edit
never mind that installed & up and running fine
* Delphiprogrammi clicking install
Delphiprogrammi
02-12-2005, 12:13 PM
hi,
this hack works fine however if would prefer if the system info like for example the webserver and the php(MySQL) version i'm using is only visible to me (Admin) because that information is kind off sensitieve besides that great hack
interfx
02-12-2005, 02:42 PM
Works great...
Make sure you put the line
include("./statistic_counter.php");
at the very bottom of the phpinclude_start template...
Outside of the /*...
I made that mistake, and just figured it out...
S@NL - BlackBik
02-14-2005, 10:44 PM
Sorry guys, but we found a "bug" in the vB Stats.
We recieved complaints that people couldn't see who was browsing a thread. All they saw was themselves, but not the other people who were in the thread. The "Who's online" page showed that serveral more people were browsing the thread, but they didn't show in the thread itself.
Our programmer has spent two evenings troubleshooting this problem and we found the cause.
It's the image that is generated by the statistic_java.js and that is in the header of every page. This image executes a script to see what browser, os, resolution etc he is using. The problem is this:
1. The user is opening the page and is put in the session table of the vB database.
2. The image is being execute, the vB Stats are updated, but the user is removed from the session table because at this time he is not viewing a forumpage but a generic page caused by the execution of the javascript.
Result: the sessions table is not up to date and the user is not being shown browsing the thread.
A possible sollution for this problem is not to touch the session in the statistic_java_counter.php. You can probably make sure of that by not using global.php, but only mysql includes and config includes.
We solved our problem by removing the java image from our header, but the result is that some statistics are not being updated. We hope you can find a better solution by making some changes to the program.
Greetz,
S@NL - BlackBiker
neocorteqz
02-16-2005, 03:48 AM
Is there an uninstall if i choose to remove this?
lifesourcerec
02-16-2005, 06:29 AM
very nice... :) Installed and it works like a charm.
Onkel_Tom
02-16-2005, 07:17 AM
Is there an uninstall if i choose to remove this?
Yes!
You can run the installer twice to uninstall the complete hack.
S@NL - BlackBik
02-16-2005, 02:43 PM
Since we've translated the vB statistic phrases to Dutch, I might as well share those with you.
See the attached file.
Have fun with it :)
lange
02-17-2005, 11:45 AM
Thanks. I'll try it.
hi,
this hack works fine however if would prefer if the system info like for example the webserver and the php(MySQL) version i'm using is only visible to me (Admin) because that information is kind off sensitieve besides that great hack
Wow, that would be really cool!
*reads the thread*
Hey look! Someone has posted how to do it already! All I had to do was read the thread!!
https://vborg.vbsupport.ru/showpost.php?p=598473&postcount=70
@PC Freak - You may want to add a link to that post in the first post - Hides server details for non-admins. :)
Onkel_Tom
02-17-2005, 05:09 PM
Thanks to all voters!
I think we will get HotM February as well ;)
Grendel
02-17-2005, 05:27 PM
Maybe I'm blind, but where is the german version?
Delphiprogrammi
02-17-2005, 05:40 PM
Wow, that would be really cool!
*reads the thread*
Hey look! Someone has posted how to do it already! All I had to do was read the thread!!
https://vborg.vbsupport.ru/showpost.php?p=598473&postcount=70
@PC Freak - You may want to add a link to that post in the first post - Hides server details for non-admins. :)
:speechless: :speechless:
S@NL - BlackBik
02-17-2005, 07:45 PM
Wow, that would be really cool!
:)
LOL. I've implemented this hack to the hack :rolleyes:
I'ts even cooler if you replace "Admin only!" by a new statisticsphrase.
For example, i've made a phrase "vbstatistic_admin_only" and translated it to Dutch :)
Just a thought ;)
Onkel_Tom
02-17-2005, 09:25 PM
Maybe I'm blind, but where is the german version?
Just look at vbulletin-germany.com ;)
here is the direct link to the thread => http://www.vbulletin-germany.com/forum/showthread.php?t=15191
neocorteqz
02-17-2005, 11:09 PM
Yes!
You can run the installer twice to uninstall the complete hack. sweet. Thanks,
This is a great hack. GL in the HotM vote. :)
PcFreak
02-18-2005, 06:50 AM
@PC Freak - You may want to add a link to that post in the first post - Hides server details for non-admins. :)Done ;)
Since we've translated the vB statistic phrases to Dutch, I might as well share those with you.
See the attached file.Many thanks for sharing the dutch ;) phrases. I add them in the first post. The Copyright remains with you.
i added OR $bbuserinfo['usergroupid'] == 9 but they can still see itHmm.
I dont have a solution for this problem.
Perhaps, it could be you have not set the userpermission correctly for the usergroup 9.
My tip: Check the userpermissions of your forum. I think, there is set something wrong.
PcFreak
Delphiprogrammi
02-20-2005, 01:14 PM
hi,
i upgraded to vb 3.0.7 and this refuses to work .... it work fine on 3.0.6
Database error in vBulletin 3.0.7:
Invalid SQL:
SHOW TABLE STATUS
FROM add
LIKE 'vb3_pm'
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 'add
LIKE 'vb3_pm'' at line 2
mysql error number: 1064
Date: Sunday 20th of February 2005 04:10:45 PM
Script: http://**************/statistic.php?
Referer: http://************/index.php?
Username: **********
IP Address: **********
any solution ? cause i like this hack
jeepinator
02-21-2005, 04:28 AM
I was hoping someone else would mention that it doesn't work with 3.0.7 :paranoid:
I just get a blank white page.
I freaking love this hack.
Lizard King
02-21-2005, 04:41 AM
hi,
i upgraded to vb 3.0.7 and this refuses to work .... it work fine on 3.0.6
Database error in vBulletin 3.0.7:
Invalid SQL:
SHOW TABLE STATUS
FROM add
LIKE 'vb3_pm'
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 'add
LIKE 'vb3_pm'' at line 2
mysql error number: 1064
Date: Sunday 20th of February 2005 04:10:45 PM
Script: http://**************/statistic.php?
Referer: http://************/index.php?
Username: **********
IP Address: **********
any solution ? cause i like this hack
I have it working on 3.0.7 working perfectly :)
Check it out here http://forum.ayyas.com/statistic.php
Delphiprogrammi
02-21-2005, 11:28 AM
I have it working on 3.0.7 working perfectly :)
Check it out here http://forum.ayyas.com/statistic.php
hmmmm you're right well i guess there is a problem with the MySQL version i use then i'll ask my host for help ;)
MissKalunji
02-21-2005, 11:31 AM
I was hoping someone else would mention that it doesn't work with 3.0.7 :paranoid:
I just get a blank white page.
I freaking love this hack.
run the install file and update the template
Lizard King
02-21-2005, 12:03 PM
run the install file and update the template
It is easier to merge the old forum files with the new ones so you dont have to make any file edit for the previously installed hacks ;)
MissKalunji
02-21-2005, 12:07 PM
It is easier to merge the old forum files with the new ones so you dont have to make any file edit for the previously installed hacks ;)
i didnt know that way...how do you do that????
Lizard King
02-21-2005, 12:19 PM
i didnt know that way...how do you do that????
Check out this thread (https://vborg.vbsupport.ru/showthread.php?t=38545)
Delphiprogrammi
02-21-2005, 12:33 PM
hmmmm you're right well i guess there is a problem with the MySQL version i use then i'll ask my host for help ;)
my domainname doesn't get saved i enter the domainname in statistic homepage options and i hit save vb tells me "settings saved successfully" but after the redirect the same field is empty ?????? hmmmm getting frusterated here :devious:
shadiguy1
02-21-2005, 02:14 PM
need unsinstall for this. please advise.
Delphiprogrammi
02-21-2005, 02:35 PM
hi,
this piece of php code is causing the error i get
$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
S@NL - BlackBik
02-21-2005, 06:25 PM
hi,
this piece of php code is causing the error i get
$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
Well, this doen't seem to be a problem with the vB Statistics but with your own host or configuration.
What you could do is open the database with e.g. MySQL Front and edit the field, in wich the name of your domain should be, manualy. That should do the trick.
S@NL - BlackBik
02-21-2005, 06:27 PM
need unsinstall for this. please advise.
You could start by reading this whole thread. I even think it's on this page.
Don't just ask questions, but first read if the question is allready delt with :(
TruthElixirX
02-21-2005, 06:45 PM
okay...whoa. I just downloaded the english version and everything was english except the installer. The installer is Dutch(I think?) and so..am I going to have ot uninstall it or will the dutch install be okay?
Delphiprogrammi
02-21-2005, 06:51 PM
okay...whoa. I just downloaded the english version and everything was english except the installer. The installer is Dutch(I think?) and so..am I going to have ot uninstall it or will the dutch install be okay?
installer that's german
Delphiprogrammi
02-21-2005, 06:54 PM
Well, this doen't seem to be a problem with the vB Statistics but with your own host or configuration.
What you could do is open the database with e.g. MySQL Front and edit the field, in wich the name of your domain should be, manualy. That should do the trick.
yeah i contacted the tech support from my host they didn't answered yet but i think the same there is something with there config ...
updated
i found a solution .for people who get this MySQL error
Database error in vBulletin 3.0.7:
Invalid SQL:
SHOW TABLE STATUS
FROM
LIKE 'testvb_pm'
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 'LIKE 'testvb_pm'' at line 3
mysql error number: 1064
Date: Monday 21st of February 2005 10:25:35 PM
Script:**************
Referer:
Username: **********
IP Address:**********
open op "statistick/sides/forum.php"
// find this code
$pm_speicher_groesse = $DB_site->query("
SHOW TABLE STATUS
FROM $dbname
LIKE '" . TABLE_PREFIX . "pm'
");
//replace that with
$pm_speicher_groesse = $DB_site->query("
SHOW TABLE STATUS
LIKE '" . TABLE_PREFIX . "pm'
");
you are done don't ask me why but for some reason MySQL is crashing if you add $dbname i don't know why
any cheers working now
S@NL - BlackBik
02-21-2005, 09:30 PM
For the record, PcFreak has confirmed the bug I posted here (https://vborg.vbsupport.ru/showpost.php?p=611863&postcount=216) and is working on a sollution :)
MissKalunji
02-22-2005, 01:35 AM
Check out this thread (https://vborg.vbsupport.ru/showthread.php?t=38545)
thx a million every upgrade i usually just redo everythin...
sv1cec
02-23-2005, 06:56 AM
Gentlemen,
I am receiving the following error, several times lately:
Database error in vBulletin 3.0.6:
Invalid SQL:
SELECT counter
FROM statistic_searchengine_keywords
WHERE keywords = 'crimp, pressure, reload\'
mysql error: You have an error in your SQL syntax near ''crimp, pressure, reload\'
' at line 4
mysql error number: 1064
Date: Tuesday 15th of February 2005 02:31:56 PM
Script: http://forum.m1911.org/showthread.php?t=1379&page=3
Referer: http://www.google.com/search?q=crimp,+pressure,+reload%5C&hl=en&lr=&start=10&sa=N
Username: Unregistered
I checked the code, and can't find anything wrong with it. The common thing I noticed in all the errors I received, is the \ at the end of the search words. Any idea on how to stop these error messages?
Rgds
Freezerator
02-23-2005, 07:07 AM
I get the same errors, but i think the reason is the \ in the query. As you can see when people search on google, their \ is above the enter button. When referrring to your site, the procedure to store the referrer goes wrong because of the \. Maybe a suggestion to strip \ from beeing inserted?
sv1cec
02-23-2005, 07:44 AM
Yes, I think you are right. I'll try to come up with some sort of patch, to strip that last \ from the string.
Since the backslash character is not used in normal word typing, and since I didn't want to spend too much time coming up with an elaborate solution, here is a simple patch.
Open your statistic_searchengines.php file and find:
$keywords_known = $DB_site->query("
SELECT counter
FROM " . TABLE_PREFIX . "statistic_searchengine_keywords
WHERE keywords = '$keyword_found'
");
Right above that, add:
$keyword_found=str_replace("\","",$keyword_found);
That would strip any \ character from the query string.
Rgds
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.