View Full Version : vB3 Boardstatistic Version 2
PcFreak
07-01-2004, 10:00 PM
no more support for statistic version 2
In the next days we will release a new statistic Version (vB Statistic 3).
For this reason I give from today on, no more support for the Statistic Version 2
This version is bigger, faster and we want to publish the statistic in two languages. (german and english).
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
For a first impression
You find a English demonstration of the Statistic here >> http://at-lantis.de/statistic.php
You find a German demonstration of the Statistic here >> http://boardszene.de/statistic.php
May someone will translate our Phrases from the new version 3.0 into other languages. If you are interested please send me or Onkel_Tom (https://vborg.vbsupport.ru/member.php?userid=8459) a PM with your eMail Address and we will sent you the phrases file in english to be translated into other languages.
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)
Statistic Version 3 have more as 7000 Lines of code and possibly, one of the largest Hacks that was ever written for vBulletin.
More as 450 different images
46 new Templates are provided
More than 350 phrases are needed.
Everything is completely adjustable over the AdminCp
More than 350 phrases are needed.
No much server load. Maximally 5 querys for logging. (normal 3 querys.)
The start side of the statistics needs approx. 15 querys (only if this is indicated)
More than 350 phrases are needed.
Possibility for later updates (e.g. new Spider and Crawler implements)
The installation is very, very simply, been made by an installscript and does not need more than 30 seconds. All attitudes and changes take maximally 5 minutes.
no changes of the existing vBulletin data base tables
15 new data base tables with more than 1100 inserts are provided
Support for international time formats implements.
Detect now browser plugins, resolutions and more with javascript.
vB Statistic Version 3 show Information about your System on a special side.
Detect now browser plugins, resolutions and more with javascript
More Infos soon
PcFreak
PcFreak
07-02-2004, 01:00 PM
Statistic Version 2
The board statistics 2,0 indicates hundreds of perfectly redundant and uninteresting datas over the current board.
The statistic show the Space Used by Attachments, the winner of the golden pineapple up to search robots, browser and operating system of your users etc.
The board statistics 2,0 is the advancement of the version 1, however 70 % of the code one rewrote and one modified.
All Templates are "wohlformuliert (validate) " written and correspond now to 100% the XHTML 1,0 standard.
https://vborg.vbsupport.ru/external/2010/10/30.jpg
What knows the statistics?
The statistics consists of 2 parts.
On the one some user datas will logged:
Sidecalls
Number of the visitors
Browser and operating system of the visitors
Countries from those the visitors come (Now all 254 images for the flags, in the old version are present were missing there the one or other flag)
Spiders (detect 92 different)
Referer and the Top level domain
The other part consists of the announcement and evaluating well-known data and/or sizes among other things:
Announcement of the TopPoster
User Activity
Announcements of the longest, most popular topics, forums etc..
Announcement of the last inquiries,
Stickys, search words many extended announcements when desired in PopUps.
and much other more.
Installation
The installation is simply and been made by one installationscript. (with approx. 3200 lines code)
36 new templates 8 new data base tables is installed and more then 300 datbase inserts made in the new tables.
All in all the installation takes maximally 5 - 10 minutes.
The statistics is managable over the Admincp.
The Templates and php code are developed in a "pcfreak moderate building block" principle. It should not difficulty to write appropriate extensions for the statistics.
AddOns
Arcade Add On (https://vborg.vbsupport.ru/showpost.php?p=528547&postcount=2)
Ok. Now the we come to the hack.
Download Zipfile, unpack and follow the installation instructions.
Delete all old data base tables for those, which installed the old statistics, and the old templates, before you install the new version.
So, that was all information.
I wish you much fun with the hack and a successful installation.
Criticism, improvement suggestions, praise, Sweets, chocolate and Bugmessages are always welcome.
PcFreak
(dont forget... I?m german. English is not my motherlanguage. So be friendly with me.)
Update 29.8.2004
Update the zip.file with a more bugfree statistik.php file
29 August
Old file was downloaded 678 times.
Updated the zip.file
Reason:
Onkel_Tom have fix a lot of errors. (many thank for doing that)
This version of the statisic hack is very stable. All credits go to Onkel Tom.
NEWS 29.8.2004
Arcade Statistic AddOn.
uninstall_statistik_english.php (from Onkel_Tom)
Arcade Statistic AddOn.
Now it is possible show some statistics about this great mod.
Downlaod zip.file and install.
For user with an old version of the statistic hack (before 29.8.2004) change the statistic.php with the new one.
uninstall_statistik_english.php (from Onkel_Tom)
Onkel_Tom had written an uninstall code. Use the uninstall_statistik_english.php if you want uninstall the statistic hack
Many thanks to Onkel_Tom for bugfixing and translating a lot of the statistic hack code.
PcFreak
PcFreak
07-02-2004, 01:05 PM
Some pics
1) admincp
2) Browser / OS Statistics
3) Visitor Countries
4) Statistic overview
5) More Informations in PopUps
6) Referer /Top Level Domain Statistic
7) Spider / Searchbots
8) Polls / Stickys and Searchword Statistic
9) last Days
Boofo
07-02-2004, 01:12 PM
Those pics are really hard to see anything with. ;)
Here you can see the stats in action. :)
http://www.offtopic-forums.com/statistik.php?
Oh, and btw. thanks for that Hack PcFreak. Me and my members really like that one! :)
Andreas
07-02-2004, 01:19 PM
Demo:
http://at-lantis.de/statistik.php
PcFreak
07-02-2004, 01:27 PM
Those pics are really hard to see anything with. ;)
Yepp...
But I know. Traffic is expensiv ;)
PcFreak
Andreas
07-02-2004, 01:32 PM
Yepp...
But I know. Traffic is expensiv ;)
PcFreak
Hmm ... the attachments are stored on vB.org, so Traffic shouldn't be your problem ;)
Btw: Using JPEG for screenshots normally isn't a good idea at all.
SnowBot
07-02-2004, 01:34 PM
Installing now but i have to say if version 1 is anything to go by then version to should be great :) Once again thanks for sharing such a fine hack.
Mijae
07-02-2004, 01:41 PM
I will install this after class :)
SnowBot
07-02-2004, 01:47 PM
Step 2)
=================================================
Create two new Phrases in the Phrasegroup:
Control center messages (I hope this is the english name for this group)
:) :)
I think its
Control Panel Global
Lets hope im right :)
The Second Phrase may be better to add as such,
Text: Statistics Were Completely Successfully Reset
Chris-FH
07-02-2004, 01:58 PM
*Chris clicks install
Simply great! :)
C.
ChrisSy
07-02-2004, 02:06 PM
is there an option to only allow admins to view the page?
Andreas
07-02-2004, 02:11 PM
If there is none:
In statistik.php FIND
require_once('/global.php');
Right after that ADD
if (!($permissions['adminpermissions'] & CANCONTROLPANEL)) {
print_no_permission();
}
@PCFreak
You might consider using single quotes for strings that don't contain variables, saves processing time as PHP doesn't have to check for variables then.
Using german variable names is somewhat ridicolous and makes it difficult to read the code, although I am a german native speaker ;)
SnowBot
07-02-2004, 02:26 PM
There are afew spelling mistakes in some things, how can we correct these. Such as
Titel
should be
Title. ?
nexialys
07-02-2004, 02:27 PM
ya... when we code on a tool, it's better understanding to use the tool's coding protocol... vB is in english, so do the code... anyway, is good hack this one is!
Andreas
07-02-2004, 02:30 PM
Such as
Titel
should be
Title. ?
That's not a spelling mistake but a phrase that is not yet translated ;)
Titel ist the german translation for Title.
SnowBot
07-02-2004, 02:31 PM
11 Visitors visited Synergy directly.
2 Visitors came over a Hyperlink (Referer) to us.
over 2 different Hyperlinks (Referer) found visitors to Synergy
One has Synergy over 1 different Top level Domains reaches
Und wer es wissen will: XHTML kann manchmal ziemlich bl?de sein (Ich hasse Netscape *g*)
HHmm
Und wer es wissen will: XHTML kann manchmal ziemlich bl?de sein (Ich hasse Netscape *g*)
Whats that ? :(
SnowBot
07-02-2004, 02:32 PM
That's not a spelling mistake but a phrase that is not yet translated ;)
Titel ist the german translation for Title.
so it auto translates ?
Andreas
07-02-2004, 02:35 PM
Und wer es wissen will: XHTML kann manchmal ziemlich bl?de sein (Ich hasse Netscape *g*)
"For those who would like to know: XHTML can be really stupid sometimes (I hate Netscape *g*)"
> so it auto translates ?
Don't know. Just check in phrase group manager if there is such a phrase and if so translate it.
SnowBot
07-02-2004, 02:43 PM
There is no phrase for it.
SnowBot
07-02-2004, 02:46 PM
Dont take this the wrong way PcFreak :) Its just meant as a suggestion, maybe ask an english speaker to help when making hacks that you are going to post on an english board? :) I am sure lots of people will be willing to help, apart from afew German words in this it i still great work and appreciated.
PcFreak
07-02-2004, 02:48 PM
"For those who would like to know: XHTML can be really stupid sometimes (I hate Netscape *g*)"
> so it auto translates ?
Don't know. Just check in phrase group manager if there is such a phrase and if so translate it.
You can change it directly in the templates.
You found Titel in the
statistic_polls
statistic_popular_thread_popup
statistic_popular_forum_popup
I had forgot to translate this word (my mistake)
PcFreak
Andreas
07-02-2004, 02:52 PM
You should use phrases instead of hardcoded text in the templates :)
Makes it easier to use this hack with different languages.
PcFreak
07-02-2004, 02:55 PM
Dont take this the wrong way PcFreak :) Its just meant as a suggestion, maybe ask an english speaker to help when making hacks that you are going to post on an english board? :) I am sure lots of people will be willing to help, apart from afew German words in this it i still great work and appreciated.
Of course
My english is not very well.
But the hack or the templates are "open source".
Perhaps someone convert the templates to better english. No problem make a installation script only for installing the templates.
Thank you for help
PcFreak
SnowBot
07-02-2004, 03:17 PM
:) Your english is better than my german :) Thanks for the fix :)
Tim Wheatley
07-02-2004, 05:12 PM
Does anyone with a large forum have this running? Or has someone looked at the code yet to check how this is effecting them?
My board is:
Threads: 146,276, Posts: 1,793,711, Members: 51,840
150-500 online at once, max is about 1000.
Beermonster
07-02-2004, 05:41 PM
I don't care what language it's in, I can understand what I need to :)
* Beermonster clicks install
ranger2kxlt
07-02-2004, 07:49 PM
My width is off....its goes off the right of my screen but the left is right....any ideas?
gmarik
07-02-2004, 09:22 PM
Great, really cool.
Is therea any stats for vistitors by
- hours
- days of week too?
Sam FT
07-02-2004, 11:30 PM
Ok I had the old Stats 1.0 hack. Removed it completly. Install the new Stats 2.0 hack as writing. So when I go to the statistik.php file, I get this database error
Invalid SQL:
SHOW TABLE STATUS
FROM full-throttle_us_-_vb
LIKE 'pm'
mysql error: You have an error in your SQL syntax near '-throttle_us_-_vb
LIKE 'pm'
' at line 3
mysql error number: 1064
Battle_Ring
07-03-2004, 04:01 AM
i installed this and when i go to statistik.php i got this
Database error in vBulletin 3.0.2:
Invalid SQL: SELECT dateline, nuser FROM stats ORDER BY nuser DESC LIMIT 1
mysql error: Table 'chrisr_HipHopStreetz.stats' doesn't exist
mysql error number: 1146
Date: Saturday 03rd of July 2004 12:54:31 AM
Script: http://www.hip-hop-streetz.com/forums/statistik.php
Referer:
Username: Chris
IP Address: 12.27.184.129
Maddrax
07-03-2004, 06:13 AM
Maddrax click install ;)
PcFreak
07-03-2004, 06:17 AM
@Battle_Ring
Sorry, but I can?t give help for your problem.
Because the table "stats" is a orginal table.
I have check the querie in the statistik.php. Cant found an error there.
I think there is a Problem with the TABLE_PREFIX
Found in the statistik.php
//Tag mit den meisten Neu Registrierungen
$getmostregister= $DB_site->query_first("SELECT dateline, nuser FROM " . TABLE_PREFIX . "stats ORDER BY nuser DESC LIMIT 1");
$getmostregister_tag = vbdate($vboptions['dateformat'], $getmostregister['dateline']);
$getmostregister_user = $getmostregister['nuser'];
and replace tihs code with this
//Tag mit den meisten Neu Registrierungen
//$getmostregister= $DB_site->query_first("SELECT dateline, nuser FROM " . TABLE_PREFIX . "stats ORDER BY nuser DESC LIMIT 1");
//$getmostregister_tag = vbdate($vboptions['dateformat'], $getmostregister['dateline']);
//$getmostregister_user = $getmostregister['nuser'];
Open the statistic side from your forum.
Tell me what is happen.
@Sam FT
hmm.
This is a normal query.
At the moment, i dont know why do you get a mysql error.
This is the orginal query
SHOW TABLE STATUS
FROM $dbname
LIKE 'pm'
PcFreak
Scrub
07-03-2004, 07:10 AM
Nevermind. The table is a defualt. :D. Stupid me. :(
Guess I am off to get into his cpanel and figure out if it is missing or if it is the table prefix. ;)
Edit: Weird. He does not have the table by defualt. :eek:
PcFreak
07-03-2004, 07:21 AM
I need the drop tables, because i have relaese this hack in two different languages. Some of the tables have different inserts e.g the statistik_laender table.
There are two different installation routines (and i must check both)
Thats the reason for the "drops".
PcFreak
Scrub
07-03-2004, 07:23 AM
Updated. :p. Well, it was because of that. He did not have the stats table. O_o. But anyway, this is pretty neat hack! Wish I had a public forum to add this to. :D. Keep up the good work! :D
Well, I don't know wether anyone of you uses table_prefixes. But on my board I use them and because of that, the installation script was giving errors. After fixing I had the problem ith all other scripts.
Sam FT
07-03-2004, 02:14 PM
@Sam FT
hmm.
This is a normal query.
At the moment, i dont know why do you get a mysql error.
This is the orginal query
SHOW TABLE STATUS
FROM $dbname
LIKE 'pm'
PcFreak
Well I am and when I run that query in mysql I still get the same error. So it is something in the query because I check all the pm tables to make sure there wasn't any bad with them.
nineball
07-03-2004, 03:35 PM
I got the same problem. For now I just commented it out and the rest of the hack seems to work ok.
Maybe it has to do with the version of mysql which is running. I also tried to run in in phpmyadmin and had a problem.
Sam FT
07-03-2004, 04:26 PM
Well I am running MySQL version 3.23.58.
Scrub
07-03-2004, 08:31 PM
Take out the ' around pm and try it? :p.
Hi
Im getting the following Error :
Warning: Invalid argument supplied for foreach() in /home/b4ne/www/global.php on line 639
If I try to view a Forum ...
Unable to add cookies, header already sent.
File: /home/b4ne/www/global.php
Line: 639
Made the manual instalation
VB 3.0.1
Tryed to leave the second edit out of global.php snd run the resetshop (as suggested on page 1)
No luck
any idas ?
GamerJunk.net
07-03-2004, 08:47 PM
Here you can see the stats in action. It's actually german, but maybe you can get a first impression of that. :)
http://www.space-dementia.de/goth-board/statistik.php?
Wow that is really german.
Ntenze
07-03-2004, 09:47 PM
I've tried a couple of times to install but recieve this error. I had version 1 working but deleted it to install V.2. Not for sure what i've done wrong
Really nice hack PCFreak
Database error in vBulletin 3.0.1:
Invalid SQL:
INSERT INTO `statistik_einstellungen` VALUES (0, 900, '', 10, 10, 10, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10)
mysql error: Table 'portal.statistik_einstellungen' doesn't exist
mysql error number: 1146
PcFreak
07-03-2004, 10:23 PM
@Ntenze
I update the zipfile, because there are few problems with some TABLE_PREFIX in the installation file.
Download the new one and install the hack again, please.
I think (hope) that you donĀ“t get errors again. (all the other members, witch get errors, too. Use the new zipfile in my first posting in this thread, please)
Please give me feedback, if it work.
Thank you
PcFreak
Sir_Yaro
07-03-2004, 10:57 PM
4 Juli
Old file was downloaded 93 times.
The requested URL /images/statistik/spider/msnbot.gif was not found on this server.
You forget about directory with searchrobots pictures
upload this to /images/statistik/spider
PcFreak
07-03-2004, 11:07 PM
The requested URL /images/statistik/spider/msnbot.gif was not found on this server.
You forget about directory with searchrobots
No i have not.
In the install text i have explain this
For the Spiderstatistic i release the images later. The paths for it are already in the database.
(I had no time to look for 92 little pictures for it)
PcFreak
PS: wc3 is not a spider. Its a service ;)
Ntenze
07-04-2004, 03:47 AM
Sorry PCFreak.... Still getting same error. Cleared cookies etc. What could i be doing wrong?
Database error in vBulletin 3.0.1:
Invalid SQL:
INSERT INTO statistik_einstellungen VALUES (0, 900, '', 10, 10, 10, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10)
mysql error: Table 'portal.statistik_einstellungen' doesn't exist
mysql error number: 1146
Date: Sunday 04th of July 2004 04:48:10 AM
SaN-DeeP
07-04-2004, 08:12 AM
i am using the old version of this statistik.
and i want to install this new version.
can u specify the upgrade instructions too ?
thnx.
PcFreak
07-04-2004, 08:34 AM
Ntenze
Sorry, but i dont understand this mysql error. Table "portal.statistik_einstellungen"
because the insert go to the table statistik_einstellungen.
When you dont need TABLE_PREFIX for your board!
Open the file statistikadmin.php and delete all " . TABLE_PREFIX . " atributes for the arrey statistik_einstellungen.
PcFreak
PcFreak
07-04-2004, 08:39 AM
i am using the old version of this statistik.
and i want to install this new version.
can u specify the upgrade instructions too ?
thnx.
You cant upgrade the new version with the old version. To many changed was made.
But installing the new version is very easy. Del all old templates. Del the tables for the old staistic in your database. And then install the new one.
PcFreak
esnecca
07-04-2004, 03:15 PM
PcFreak, this hack is a thing of beauty. The amount of work you've put into it glows from every detailed touch. I am charmed by the handful of German words remaining and have no intention of ever changing them: they are both a tribute to the brilliance of their author and, I believe, a symbol of the cultural diversity the internet has brought into everyone's home.
Congratulations and many thanks. :up:
Battle_Ring
07-04-2004, 11:58 PM
where can we get add ons and stuff for this
your site is german i cant read it
Phalynx
07-05-2004, 12:14 PM
Any chance to get this in GERMAN? :)
PcFreak
07-05-2004, 02:42 PM
@Battle_Ring
At the moment there are no Add Ons released.
But you get them here.
@Phalynx
Du bekommst die deutsche Version auf meinem Board oder bei vBulletin Germany.
PcFreak
SaN-DeeP
07-05-2004, 08:21 PM
You cant upgrade the new version with the old version. To many changed was made.
But installing the new version is very easy. Del all old templates. Del the tables for the old staistic in your database. And then install the new one.
PcFreakhey pcfreak.
thnx for the nice hack..
but as you specified when i deleted those 6 table entire forums crashed down ;)
I fixed it, installing the new version. but it again had table prefix problems. :(
i had to manually run the queries using phpmyadmin finished everything till here ->
$resetzeit = TIMENOW;
UPDATE vb3_statistik_zaehler
SET Summe = '$resetzeit'
WHERE Zaehler_fuer = 'Statistik_Aktiv'
;
print_form_header('install_statistik_english', '');
print_table_header("vBulletin 3 Statistik 2.0 Installation Script");
print_description_row("Congratulations! The board statistics version 2.0 was successfully installed!<br><b>PLEASE DELETE THIS FILE!</b>");
}
?>
not sure what to do.
i ran the foll. query sucessfully -> UPDATE vb3_statistik_zaehler
SET Summe = '$resetzeit'
WHERE Zaehler_fuer = 'Statistik_Aktiv'
; again via phpmyadmin.
but now when i goto my stats page.
this is the error i am getting.
Database error in vBulletin 3.0.0:
Invalid SQL:
SELECT Summe as Datum
FROM statistik_zaehler
WHERE Zaehler_fuer = 'Statistik_Aktiv'
mysql error: Table ***.statistik_zaehler' doesn't exist
mysql error number: 1146
i am using vb3_ as table prefix.
Thnx a lot for this nice STATS :) ALways useful
Regards,
zetetic
07-05-2004, 09:51 PM
Step 2)
=================================================
Create two new Phrases in the Phrasegroup:
Control center messages (I hope this is the english name for this group)
:) :)
I think its
Control Panel Global
Lets hope im right :)
I guessed that too. Doesn't appear to be right, though. I get a phrase not found error message after saving config changes.
ChuanSE
07-05-2004, 10:43 PM
Great hack :D
* ChuanSE clicks install
ChuanSE
07-05-2004, 10:45 PM
I guessed that too. Doesn't appear to be right, though. I get a phrase not found error message after saving config changes.
But it saved the config. the error msg is there because the phrasegroup doesn't exist. Allthough it gives a error message, your changes are saved ;)
Rampag33
07-06-2004, 03:38 AM
Which group does the phrases go into?
weitalia
07-06-2004, 05:13 PM
Fantastic hack but,man ur code is completely arabian for non english people...including vars..I think this is not a good way to code :(
And last but not least,no phrasing arrgh :(
By the way congratulations,for all the hard work u did,thanx ;)
;)
Jolten
07-06-2004, 05:15 PM
48 queries.. ugh... okay only superadmins will get this.
hey im having a huge problem here
whenever I go to any page outside of the first page (eg: www.domain.com/forums/statistik.php) it works fine, but when i try to visit any of the other pages this happens, check it out for yourself:
http://www.forevergaming.com/forums/statistik.php?do=last_x_days
any clue why?
MGM out
weitalia
07-07-2004, 12:56 AM
Step 2)
=================================================
Create two new Phrases in the Phrasegroup:
Control center messages (I hope this is the english name for this group)
:) :)
I think its
Control Panel Global
Lets hope im right :)
The Second Phrase may be better to add as such,
Text: Statistics Were Completely Successfully Reset Unfortunately you are not right.
If you take a look at the statistic.php file you find:
print_stop_message("statistik_zurueck_gesetzt");
and 4 lines after
print_stop_message("statistik_cp_gespeichert");
By this you can understand that we have to put both phrases in Control Panel Stop Message, to avoid errors.
;)
I have this installed, but many of the images aren't showing.
http://forums.nzboards.com/statistik.php?do=polls for example..
SaN-DeeP
07-07-2004, 10:18 AM
can someone tell me whats the error -> http://207.58.143.178/
how do i fix it ?
thnx
SaN-DeeP
07-07-2004, 12:00 PM
can someone tell me whats the error -> http://207.58.143.178/
how do i fix it ?
thnx
fixed it and added admin permissions only ^_^
PcFreak
07-07-2004, 02:47 PM
I have this installed, but many of the images aren't showing.
http://forums.nzboards.com/statistik.php?do=polls for example..
Replace the template statistic_polls_bit.txt with this code.
<tr>
<td class="$bgclass"> <div align="left"><a title="$thementitel_alt_text" href="showthread.php?t=$themenid">$thementitel</a></div></td>
<td class="$bgclass"><div align="center"><a title="Show Profil of $autor" href="member.php?u=$sticky_autorid">$autor</a></div></td>
<td class="$bgclass"><div align="left"><a title="$frage_alt_text" href="poll.php?do=showresults&pollid=$pollid">$frage</a></div></td>
<td class="$bgclass"><div align="center">$polldatum</div></td>
<td class="$bgclass"><div align="center">$moegliche_antworten</div></td>
<td class="$bgclass"><div align="center">$abgestimmt_haben</div></td>
<td class="$bgclass"><div align="center"><img src="$umfrage_aktive" alt="Poll aktiv/ Not aktive" width="15" height="15" /></div></td>
<td class="$bgclass"><div align="center">$umfrage_ende (days)</div></td>
<td class="$bgclass"><div align="center"><img src="$mehrauswahl" alt="'Multiple choice possible / not possible" width="15" height="15" /></div></td>
<td class="$bgclass"><div align="center"><img src="$oeffentlich" alt="publicly / not publicly" width="15" height="15" /></div></td>
<td class="$bgclass"><div align="center">$bestaunt</div></td>
</tr>
I dont?know why, but something is missed in this template on your board.
@MetalGearMaster
I think there is a other hack (storehack?) witch make problems. You dont use the orginal headinclude, header or footer template.
PcFreak
Do you mean I have to Revert those 3 templates to the vB default?? i don't understand why they're causing trouble... could you please give me a bit more information, thanks!
MGM out
Smitty
07-08-2004, 05:35 AM
I just installed this on my production board. The installation went flawlessly. Your installation script is excellent and appreciated. It made installation not only easy but fast. I have been 'playing' with it for a bit now and so far as I can tell everything works as it should.
I am very impressed and I appreciate your sharing all your hard work on this!
Smitty
07-08-2004, 06:25 AM
Question: I have Google's AdSense on my forums. I would like to be able to distinguish between the AdSense bot visits and the 'standard' Google indexing bot visits, as I can in online.php, in the 'statistik.php?do=spider' statistics page.
Can anyone tell me where and/or how to do this?
#######################################
EDIT ADD:
In statistic_last_x_threads_bit
Original:
<tr>
<td>
<a title="$postinfo" href="showthread.php$session[sessionurl]t=$beitragsid">$beitragstitel</a>
<br />
from
<a title="Show Profile of $geschrieben_von" href="member.phpu=$schreiberid">$geschrieben_von</a>
written $geschrieben_am
<br />
last reply from
<a title="Show Profile of $letzte_antwort" href="member.phpu=$lastposterid">$letzte_antwort</a>
written $letzte_antwort_am
</td>
</tr>
Added ? to links:
<tr>
<td>
<a title="$postinfo" href="showthread.php$session[sessionurl]?t=$beitragsid">$beitragstitel</a>
<br />
from
<a title="Show Profile of $geschrieben_von" href="member.php?u=$schreiberid">$geschrieben_von</a>
written $geschrieben_am
<br />
last reply from
<a title="Show Profile of $letzte_antwort" href="member.php?u=$lastposterid">$letzte_antwort</a>
written $letzte_antwort_am
</td>
</tr>
Replace the template statistic_polls_bit.txt with this code.
<tr>
<td class="$bgclass"> <div align="left"><a title="$thementitel_alt_text" href="showthread.php?t=$themenid">$thementitel</a></div></td>
<td class="$bgclass"><div align="center"><a title="Show Profil of $autor" href="member.php?u=$sticky_autorid">$autor</a></div></td>
<td class="$bgclass"><div align="left"><a title="$frage_alt_text" href="poll.php?do=showresults&pollid=$pollid">$frage</a></div></td>
<td class="$bgclass"><div align="center">$polldatum</div></td>
<td class="$bgclass"><div align="center">$moegliche_antworten</div></td>
<td class="$bgclass"><div align="center">$abgestimmt_haben</div></td>
<td class="$bgclass"><div align="center"><img src="$umfrage_aktive" alt="Poll aktiv/ Not aktive" width="15" height="15" /></div></td>
<td class="$bgclass"><div align="center">$umfrage_ende (days)</div></td>
<td class="$bgclass"><div align="center"><img src="$mehrauswahl" alt="'Multiple choice possible / not possible" width="15" height="15" /></div></td>
<td class="$bgclass"><div align="center"><img src="$oeffentlich" alt="publicly / not publicly" width="15" height="15" /></div></td>
<td class="$bgclass"><div align="center">$bestaunt</div></td>
</tr>
I dont?know why, but something is missed in this template on your board.
@MetalGearMaster
I think there is a other hack (storehack?) witch make problems. You dont use the orginal headinclude, header or footer template.
PcFreak
Hmm, that didn't work.
What do you suggest I do?
Reinstall completely?
Smitty
07-08-2004, 08:59 AM
In statistic_polls_bit I also found this:
<a title="Show Profil of $autor" href="member.php?u=$sticky_autorid">$autor</a>
It does not give a user ID. Clicking the link takes you to a message saying the user is not registered.
What it is calling is: http :// site . com/Forums/member.php?u=
As you can see there is no user ID appended to the link.
EDIT ADD:
Changed to:<a title="Show Profil of $autor" href="member.php?u=$autorid">$autor</a>
GeoffE
07-09-2004, 01:45 PM
Great hack .. having a couple of small problems though ..
In the main page, the Visitors total is 19 since I installed the hack (7/7), but looking at the board we have 27 online at the moment ..
In countries, we only seem to have 15 visitors (from England), but I know there have been a lot more from other countries, France and India to name a couple, and in referrers we only seem to have 3 visitors ..
Any ideas?
thanks for your help ..
Smitty
07-09-2004, 02:48 PM
I'm not sure. I'm still playiing with what I installed and haven't really zeroed in on several numbers and how they're computed. I'm not a php / MySQL guru ato begin with.
I still have one bug I can't figure out how to fix where, in the Most Popular Forums popup, no forum ID is given when someone clicks on the forum name.
I've chaged some labels and such.
You can check mine at http://Elsmar.com/Forums/
Natch
07-09-2004, 03:10 PM
the country visitors are based on the domain name in their referer - so this is not really that accurate :( much more heavey work on the server to reverse DNS the names to get IP's then parse thelookup to find a country name, then parse that against the databse table of country names ?
vBFreak
07-09-2004, 04:03 PM
dont forget... I?m german. English is not my motherlanguage. So be friendly with me.
why do you not attach a translated version for all german people like me here? Now I have to translate it by myself :(
PcFreak
07-09-2004, 04:33 PM
why do you not attach a translated version for all german people like me here? Now I have to translate it by myself :(
The german version is relased on the vBulletin germany board
http://www.vbulletin-germany.com/
or you can get the geman version on my board.
PcFreak
PcFreak
07-09-2004, 04:39 PM
I'm not sure. I'm still playiing with what I installed and haven't really zeroed in on several numbers and how they're computed. I'm not a php / MySQL guru ato begin with.
I still have one bug I can't figure out how to fix where, in the Most Popular Forums popup, no forum ID is given when someone clicks on the forum name.
I've chaged some labels and such.
You can check mine at http://Elsmar.com/Forums/
Yep, this is a bug.
I will fix them in a new zipfile soon.
To fix this now, search in the template statistic_popular_forum_bit
$popularforum_id
replace it with
$popularforum_forumid
(you found this two times)
PcFreak
zetetic
07-09-2004, 06:43 PM
While doing that I noticed the variable $popularforum_titel which is a misspelling. It should be $popularforum_title. I won't change it because I don't know where all it's used.
Oh, and all those references to "autor" on the last post on the last page should be "author". Not messing with ya just trying to help. :)
Smitty
07-09-2004, 06:59 PM
Yep, this is a bug.
(you found this two times)
Thanks! I had that template in bbedit looking at it but I just didn't see the problem. I replaced both and it works fine now.
I'm still having problems with no fix :(
Once again, check out my Stats and click on any page besides the main (Overview) page to view my problem: www.forevergaming.com/forums/statistik.php
MGM out
PcFreak
07-09-2004, 10:39 PM
I'm still having problems with no fix :(
Once again, check out my Stats and click on any page besides the main (Overview) page to view my problem: www.forevergaming.com/forums/statistik.php
MGM out
I can?t see any problem.
Ok. The poll statistic is a little bit small on your side, but this ist not a bug.
This screenshoot show, what i see, when i visit your side.
PcFreak
yea, I know, i just fixed it.... I copied the header from forumhome into Statistiks_header and it worked (while editing the title to say Stats and adding statistik_menue to the bottom)
damned XML giving me problems :p
thanks for the help! lol
MGM out
Smitty
07-10-2004, 04:55 AM
In the do=referer Referrer Summary at the bottom of the page, I understand:
"1427 Visitors visited The Elsmar Cove directly"
and
"1215 Visitors came over a Hyperlink (Referer) to us"
Can anyone better explain to me what these are:
"over 1185 different Hyperlinks (Referer) found visitors to The Elsmar Cove"
and
"One has The Elsmar Cove over 117 different Top level Domains reaches"
PcFreak
07-10-2004, 05:00 AM
Perhaps also this solution helps.
In AdminCP under vBulletin Settings -> General Settings
there must be a setting like this:
Templatenames as comment in HTML source text write?
NO!
(This is a free translation, because my AdminCp is in German).
PcFreak
Smitty
07-10-2004, 05:05 AM
I was looking at the Browsers numbers. How do the two numbers relate to each other?
Other Unidentified 7.804 % (283)* *of it 625 Spider
See attached.
Deska
07-11-2004, 09:24 PM
I got these errors:
Database error in vBulletin 3.0.3:
Invalid SQL:
SELECT * FROM vb3_thread
WHERE forumid IN(1, 2, 4, 3, 33, 5, 6, 7, 8, 31, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 29, 27, 28, 9, 10, 32, 30, 0)
AND thread.open <> 10
AND thread.visible = '1'
ORDER BY replycount DESC
mysql error: Unknown table 'thread' in where clause
mysql error number: 1109
Anyone could help?
Thank's...
Smitty
07-12-2004, 02:47 AM
When did you get the error? It looks like you may have a table prefix issue but I'm guessing.
Deska
07-12-2004, 03:27 AM
When did you get the error? It looks like you may have a table prefix issue but I'm guessing.
When visit url mydomain/statistik.php
I check all table prefix seems ok but I still got that, :(
PcFreak
07-12-2004, 06:31 AM
In statistik.php
search for
SELECT * FROM " . TABLE_PREFIX . "thread
replace it with
SELECT * FROM " . TABLE_PREFIX . "thread as thread
I think you found this 2 or 3 times.
PcFreak
Deska
07-12-2004, 08:55 AM
Thank's...
Work fine now ;)
Berethorn
07-12-2004, 10:01 PM
I'm getting this error during the install phase:
Database error in vBulletin 3.0.1:
Invalid SQL:
INSERT INTO statistik_einstellungen VALUES (0, 900, '', 10, 10, 10, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10)
mysql error: Table 'bere_vb.statistik_einstellungen' doesn't exist
mysql error number: 1146
ChuanSE
07-13-2004, 05:11 AM
Hmmm, the statistik main page works, except from the visitors count since the stat started.
All stays 0, also on the other statistik pages, all values stay zero, as if they don't get counted?
Any idea's? :)
joshskeety
07-13-2004, 03:30 PM
I'm getting this error during the install phase:
Database error in vBulletin 3.0.1:
Invalid SQL:
INSERT INTO statistik_einstellungen VALUES (0, 900, '', 10, 10, 10, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10)
mysql error: Table 'bere_vb.statistik_einstellungen' doesn't exist
mysql error number: 1146
I am getting the same errors.. Its either the one you are getting or I get a
Database error in vBulletin 3.0.1:
Invalid SQL:
INSERT INTO vb3_ statistik_laender VALUES (1, 'ac', 'United Kingdom Academic Institutions', 'images/statistik/flaggen/ascension.gif', 'images/statistik/bar1.gif', 0, 0)
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 'statistik_laender VALUES (1, 'ac', 'United Kingdom Academic Ins
mysql error number: 1064
I saw one other guy post about this, but he never got his question answered.. PCFreak, what could be causing this?
Josh
joshskeety
07-13-2004, 05:29 PM
Okay I figured out all these problems.. PC Freak.. First of all, great program.. I know its hard translating. It took me a while, but you are missing ALOT of " TABLE_PREFIX" where there should be. Another thing is the "Thread of Thread" change you mentioned earlier.
Finally, the last error I received is because in your install_Statistik_English.php file. You put a space where there shouldn't be this totally freaked MySql out...
You had " statistik_laender VALUES Should be "statistik_laender VALUES
If you make these changes, your install will be perfect!! I have one other question though.. The browser stuff didn't refresh information. Everything is 0% is this normal for a while?
Thanks,
Josh
GlitterKill
07-13-2004, 05:48 PM
Excellent hack... *clicks install*
I had trouble with the mysql code for the "LIKE 'pm'" section so i just commented out the PM stuff. Anyone else have that problem?
http://forums.pimprig.com/statistik.php
joshskeety
07-13-2004, 05:51 PM
Excellent hack... *clicks install*
I had trouble with the mysql code for the "LIKE 'pm'" section so i just commented out the PM stuff. Anyone else have that problem?
http://forums.pimprig.com/statistik.php
Now your getting all the browser info and referalls and such.. Im not getting those.. What could be the issue?
http://www.cowboys-forum.com/statistik.php
Josh
Berethorn
07-14-2004, 02:04 AM
Okay I figured out all these problems.. PC Freak.. First of all, great program.. I know its hard translating. It took me a while, but you are missing ALOT of " TABLE_PREFIX" where there should be. Another thing is the "Thread of Thread" change you mentioned earlier.
Finally, the last error I received is because in your install_Statistik_English.php file. You put a space where there shouldn't be this totally freaked MySql out...
You had " statistik_laender VALUES Should be "statistik_laender VALUES
If you make these changes, your install will be perfect!! I have one other question though.. The browser stuff didn't refresh information. Everything is 0% is this normal for a while?
Thanks,
Josh
Glad to see you got this fixed! Is it too much to explain how to fix it? Is there simple way? :)
Smitty
07-14-2004, 02:38 AM
Something else must be happening for some of you because several days ago I did the install on my Mac test board and then on my BSD production board without one single problem in install on either.
*Most* of the statistics appear to be appropriate/correct. I'm sure the Spiders page isn't correct and there are a couple others I question, but it's an excellent 'hack'.
ChuanSE
07-14-2004, 05:21 AM
Guyz, can someone plz give us a fixed install file, a explanation how to make it work or delete this thread from releases forum PLZ :)
thx in advance
Smitty
07-14-2004, 09:30 AM
Guyz, can someone plz give us a fixed install file, a explanation how to make it work or delete this thread from releases forum PLZ :)
thx in advance
All I did was run the install (on 2 platforms) and it works fine (on both). All I did was follow the directions in the zip file.
Have you tried dropping the database fields it creates, deleting the templates it creates and then doing an install from scratch?
joshskeety
07-14-2004, 12:49 PM
I would, but instead of putting the table prefixes I put the prefix in manually, so im afraid it would not work with your database.
In the install file, make sure that EVERY REFERENCE TO A TABLE has the table prefix tag on it. I found that many did not so half the time it was looking for Prefix_statistik_table and the other half of the time it was looking for statistik_table. Of course you have to have one or the other. Plus the reference I made above where MySql 4.X does not like that space on the install page.
Josh
PcFreak
07-14-2004, 12:59 PM
Sorry, my wife and me are moving.
I have no mutch time work on a new installation routine or update the old files.
But i promise, i did this when we finished with our move.
Then i will release the arcade update too.
beg your pardon.
PcFreak
PcFreak
07-14-2004, 01:06 PM
Now your getting all the browser info and referalls and such.. Im not getting those.. What could be the issue?
http://www.cowboys-forum.com/statistik.php
Josh
You have forgot to activate the statistic.
To activate the statistic and count your user
add this code at last line in the" phpinclude_start template"
//##################################
include("./statistik_counter.php");
//##################################
PcFreak
GeoffE
07-14-2004, 03:36 PM
Got mine working fine now as well :classic:
(had only modified one of my php start templates (have multiple styles) :rolleyes: )
skorzguy
07-14-2004, 03:51 PM
Finally installed statistics and it looks great. A few changes and I easily see this being hack of the month. One really stupid question, how do I center it? It's to the right of the screen. Here is an example
http://www.allstarchat.com/forums/statistik.php
68 Z-28
07-14-2004, 06:30 PM
Installed perfect with no problems on 3.0.3 GREAT HACK!
Smitty
07-15-2004, 03:52 AM
An FYI: vBullletin isn't stable on MySQL 4.1 - See http://www.vbulletin.com/forum/showthread.php?t=110339
and
http://bugs.mysql.com/bug.php?id=4302
Vivi Ornitier
07-15-2004, 04:12 AM
I get these errors when viewing any stat page besides the main one.
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
End tag 'map' does not match the start tag 'area'. Error processing resource 'http://forums.squareultima.com/statistik.php?do=referer'. Line 71, Position 4
</map>
---^
Maybe it's a IE error because it works in mozilla fine but then again everyone uses IE.
ChuanSE
07-15-2004, 05:31 AM
You have forgot to activate the statistic.
To activate the statistic and count your user
add this code at last line in the" phpinclude_start template"
//##################################
include("./statistik_counter.php");
//##################################
PcFreak
How could i forget that :p
redlabour
07-15-2004, 04:18 PM
Thanx for this great Quality Hack !
chrisvonc
07-16-2004, 10:40 AM
Installed nice on my test forum but if I try to update the settings in the AdminCP, I click Update, it gives me an error message:
Can not find phrase "statistik_cp_gespeichert"
I assumed that KirbyDE's post was to make this for admin access only but as there are multiple reoccurances of the "require_once('./global.php');", which one should the change be made after or should it be all of them? (BTW KirbyDE, you have a typo, there should be a "." in front of the "/global.php" :) )
If there is none:
In statistik.php FIND
require_once('/global.php');
Right after that ADD
if (!($permissions['adminpermissions'] & CANCONTROLPANEL)) {
print_no_permission();
}
Thanks again! Very nice.
MissKalunji
07-16-2004, 05:38 PM
* clicks Install *
Great hack!! installed it with No problem on vb 3.0.3 only dat i dunno in wich phrase im suppose to add the "hack update".
Does anyone knows where i can get the add ons? or they aint out yet?
Wachtmeister
07-16-2004, 06:16 PM
Can't we finnaly get a working installer for boards using table prefixes?
German: PCFreak, das Script ist cool, aber es funktioniert nicht, wenn man Table Prefixe f?r sein Forum benutzt. Kannst Du das irgendwann mal fixen? Man muss sonst den ganzen Code von Hand ?ndern. Danke
joshskeety, i would love to use your installer ;) It's easier to search and replace your board_prefix with mine ;)
Clicked install .. great hack .. amazing amount of useful information provided.
Only error I get is Can not find phrase "statistik_cp_gespeichert when trying to update in AdminCP
http://www.thetechguys.co.uk/forum/statistik.php
S@NL - BlackBik
07-17-2004, 08:06 AM
Great hack :)
Installed flawless on our board.
Had some minor problems, but most of them were adressed in this thread.
The phrases go to the "Control Panel Stop Message" as mentioned earlier in this thread.
I see one little problem though. The avatar and profile picture stats are not updating. Anyone else have that problem?
And a suggestion for a future release: please put all text in phrases. That way translation is easy for all languases. I translated manualy to Dutch, but that's to bad for our foreign visitors ;)
Berethorn
07-17-2004, 06:09 PM
Got it fixed after much editing of the code, very hard to explain exactly what. :(
It's a great hack BTW, when it works! :D
Intex
07-17-2004, 08:45 PM
Congrats on the new version. Hope your move goes well. I'll wait for your update before I upgrade from v1. Also looking forward to the arcade add-on :).
If you want any help with the English translation again, let me know.
Mr. Brian
07-19-2004, 10:47 PM
Going to install this right now.
Mr. Brian
07-20-2004, 09:25 AM
Oh my god! I hate to see this.
Now its my turn.. to get this. :o
Database error in vBulletin 3.0.1:
Invalid SQL:
INSERT INTO statistik_einstellungen VALUES (0, 900, '', 10, 10, 10, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10)
mysql error: Table 'soccerwi_soccerforum.statistik_einstellungen' doesn't exist
mysql error number: 1146
Date: Tuesday 20th of July 2004 02:21:53 AM
Script: http://www......./forums/admincp/install_statistik_english.php
Referer: http://www....../forums/admincp/install_statistik_english.php
Username: Mr. ...
IP Address: 12345678
Hope someone can help me.
Thanks:)
Mr. Brian
07-20-2004, 10:32 AM
Still stuck at step 3.. :tired:
vBFreak
07-20-2004, 12:30 PM
The german version is relased on the vBulletin germany board
http://www.vbulletin-germany.com/
or you can get the geman version on my board.
PcFreak
I'm using now the german version... but with both versions I have 2 small problems with the style...
Problem 1)
I'm using 1024x768 and have still a scrollbar to left an right... it seems that the tables are too big :/
Problem 2)
In Polls / Stickys / Searchwords is a color-bug in the table behind the statistics...
I've attached a screen which displays my problem nearer, so everyone can understand it...
MissKalunji
07-20-2004, 03:33 PM
Another Question........... The hack been installed for about 4 days and the The Country section, Browser 0%, Spider and the refery
still empty dats normal?
aHMET
07-21-2004, 09:29 PM
Still stuck at step 3.. :tired:
Brian here is the final step (3) you should manually do it from a MySQL Manager
* you should change "vB3_" with your table prefix
* you should change "statistik_zaehler" to "tableprefix + statistik_zaehler"
and there is a fixed statistik.php
I just fixed the problems that I faced
If you have much problems please inform
* this is a very good script but author was drunken while coding hehe :)
aHMET
07-21-2004, 09:34 PM
Another Question........... The hack been installed for about 4 days and the The Country section, Browser 0%, Spider and the refery
still empty dats normal?
reset and try again
MissKalunji
07-21-2004, 10:03 PM
Thx i found my error i didnt put the counter
:D great hack
Deska
07-22-2004, 05:55 AM
Any update about Arcade AddOns ?
Elfo King
07-22-2004, 12:45 PM
Step 2)
=================================================
Create two new Phrases in the Phrasegroup:
Control center messages (I hope this is the english name for this group)
:) :)
I think its
Control Panel Global
Lets hope im right :)
The Second Phrase may be better to add as such,
Text: Statistics Were Completely Successfully Reset
Hi,
are u sure ?
When i click "Update" button in "General Statistic Setting" i have the error message in the image attached.
http://www.uebb.it/statko.JPG
THX all!
Any solution?
Mr. Brian
07-22-2004, 07:55 PM
Well, I give up! Can someone provide me the uninstall script?
Many many thanks in advance.
DeMiNe0
07-22-2004, 09:36 PM
can somone export the data and structor of the tables? His installer wont import them without errors.
DeMiNe0
07-23-2004, 02:12 PM
anyone?
aHMET
07-23-2004, 03:44 PM
I did
Mr. Brian
07-23-2004, 05:13 PM
Brian here is the final step (3) you should manually do it from a MySQL Manager
* you should change "vB3_" with your table prefix
* you should change "statistik_zaehler" to "tableprefix + statistik_zaehler"
and there is a fixed statistik.php
I just fixed the problems that I faced
If you have much problems please inform
* this is a very good script but author was drunken while coding hehe :)
Hi aHMET,
thanks for your response, well actually I've already tried that before but still getting the same problem.. :rolleyes:
Works prefectly on 3.03, I will help translate all the stuff into english more and will post all the updates I do.
Martyjp
07-24-2004, 04:22 PM
Last days doesnt work for me, get this error
Invalid SQL:
SELECT userid FROM user WHERE 'Lann'Al' = username
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 'Al' = username' at line 1
mysql error number: 1064
Every other page works fine and it did work about 10 minutes ago :confused:
aHMET
07-24-2004, 08:57 PM
Hi aHMET,
thanks for your response, well actually I've already tried that before but still getting the same problem.. :rolleyes:
you use table_prefix dont you ?
try to delete table prefix cuz it will create lots of problem in the future
I deleted table prefixes it just took my 10 min
vBFreak
07-25-2004, 12:02 AM
Nobody here who is disturbed through these scrollbars and wrong table widths and these color-bug???
I've found out that it is OK if I remove the code for the popups in the navbar, but I can't do that because then the Search and the Quick Links aren't working...
Plz help, what can I do?
Problem 1 is the scrollbar to the left and right side... I'm using 1024*768 as resolution and they shouldn't be there then because this is the standard resolution...
Problem 2 is the colorbug of the table-background
http://www.gerritsforum.de/stats_probs.gif
weitalia
07-27-2004, 06:54 PM
Hi,
are u sure ?
When i click "Update" button in "General Statistic Setting" i have the error message in the image attached.
THX all!
Any solution?
You have to read more carefully entire post...cause HERE (https://vborg.vbsupport.ru/showpost.php?p=530094&postcount=66) you have the solution!
:squareeyed:
The General
07-28-2004, 10:04 PM
Very excellent hack! I've been waiting for this a long time! Cool...
Is there any way to change the colors? Halve of the text is in the same color as the background... =[
Beermonster
07-31-2004, 11:32 AM
For some reason I'm not getting any results in Polls / Stickys / Searchwords all I get is
no genuine retrieval query, any ideas?
Apart from that it works great got to be one of my favorite hacks
iliton
08-05-2004, 01:55 PM
Hi all!
I have some problem
when i click on (for example)
_www.my-domein.com/forums/statistik.php?do=browseros
or
_www.my-domein.com/forums/statistik.php?do=countries
...
...
_www.my-domein.com/forums/statistik.php?do=polls
i see this page
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
End tag 'head' does not match the start tag 'meta'. Error processing resource
where i can find this tags?
what i did wrong?
Smitty
08-05-2004, 02:24 PM
For some reason I'm not getting any results in Polls / Stickys / Searchwords all I get is
no genuine retrieval query, any ideas?
Where you see 'no genuine retrieval query' it measns it's an open search, such as when someone clicks "Posts since last visit" or "Today's Posts" (the 24 hour rolling one). These technically are searches, but not for specific search words - thus you see 'no genuine retrieval query'.
I relabeled mine. See http://Elsmar.com/Forums/statistik.php?do=polls
Beermonster
08-06-2004, 07:36 AM
Where you see 'no genuine retrieval query' it measns it's an open search, such as when someone clicks "Posts since last visit" or "Today's Posts" (the 24 hour rolling one). These technically are searches, but not for specific search words - thus you see 'no genuine retrieval query'.
I relabeled mine. See http://Elsmar.com/Forums/statistik.php?do=polls
Makes sense :) thanks for that
oldfan
08-06-2004, 04:04 PM
this mod bug free yet?
I tried installing it about 2 weeks ago and got mysql errors.
thanks
this mod bug free yet?
I tried installing it about 2 weeks ago and got mysql errors.
thanks
What errors did you get?
Worked here without any problems...
Smitty
08-06-2004, 04:32 PM
Same here. No problem at all.
SnowBot
08-06-2004, 08:18 PM
I have reset the statistics on my forum for the most users online but it doesnt reset them, is this anythingto do with this hack?
Also it says
Most users ever online was 77, 9th May 2004 at 11:32
But i have had more than this on at a time. Any help? :)
Smitty
08-06-2004, 11:22 PM
'Most users ever online' is in the vB database - You have to reset it there. I don't remember how, off hand, but I've seen it discussed. It has nothing to do with this 'hack'.
SnowBot
08-07-2004, 12:28 AM
'Most users ever online' is in the vB database - You have to reset it there. I don't remember how, off hand, but I've seen it discussed. It has nothing to do with this 'hack'.
Yer i found it :)
To reset the "Most Users Online" run this query
UPDATE datastore SET data = '' WHERE title = 'maxloggedin'
iliton
08-08-2004, 09:34 AM
!!!!!
its hack not working correctly
I had uninstalled it :(
best regards to autor ;)
!!!!!
its hack not working correctly
I had uninstalled it :(
best regards to autor ;)
Never had any problems with it. Works perfect since 3.0.1
What problems did you have?
oldfan
08-09-2004, 03:22 AM
What errors did you get?
Worked here without any problems...
i got these errors
Database error in vBulletin 3.0.3:
Invalid SQL:
INSERT INTO statistik_einstellungen VALUES (0, 900, '', 10, 10, 10, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10)
mysql error: Table 'bbs.statistik_einstellungen' doesn't exist
mysql error number: 1146
Smitty
08-09-2004, 04:24 AM
The install script should have made that table so something screwed up during your install. Do you know if the other database tables were created correctly?
iliton
08-09-2004, 06:46 AM
Never had any problems with it. Works perfect since 3.0.1
What problems did you have?
vB3.0.3 & vbadvanced CMPS & custom skin ...
I think that problem in a skin ... see here (https://vborg.vbsupport.ru/showpost.php?p=540244&postcount=144)
But I do not want to change it.
vB3.0.3 & vbadvanced CMPS & custom skin ...
I think that problem in a skin ... see here (https://vborg.vbsupport.ru/showpost.php?p=540244&postcount=144)
But I do not want to change it.
vBulletin Options - General Settings - Add Template Names in HTML-Comments - NO
And it should work. :)
oldfan
08-09-2004, 02:28 PM
The install script should have made that table so something screwed up during your install. Do you know if the other database tables were created correctly?
vB3statistik_browser_os
vB3statistik_domain
vB3statistik_einstellungen
vB3statistik_laender
vB3statistik_log
vB3statistik_referer
vB3statistik_spider
vB3statistik_zaehler
are installed. if that helps
iliton
08-10-2004, 06:25 AM
vBulletin Options - General Settings - Add Template Names in HTML-Comments - NO
And it should work. :)
It is not a funny realy,
why about it is not present words in readme?
Or the mention is?
Nevertheless many thanks Vega
I have checked up, all works!
oldfan
08-10-2004, 03:47 PM
vB3statistik_browser_os
vB3statistik_domain
vB3statistik_einstellungen
vB3statistik_laender
vB3statistik_log
vB3statistik_referer
vB3statistik_spider
vB3statistik_zaehler
are installed. if that helps
bump
Ive just installed the hack but I cant find anywhere in the admincp, a link to administer this hack? Anyone know why please?
Smitty
08-10-2004, 06:03 PM
bump
Sorry - I don't get by here that often. Ummm, I looked and in your error it has a table prefix of "bbs." Your script is calling tables with that prefix.
As for your tables list, it has the correct 8 tables installed by this 'hack'.
I can't remember the details - I'm jut an old guy keeping my forum online - I'm not php and mysql savvy - but that is the issue, or so it appears. I know this issue came up with some other folks and I thought it came up in this thread earlier.
As I remember there's a 'switch' or something for those installing with and without the table prefix.
If you look at the post I made just below this one there is an attachment which shows the tables on the far left. Note: none have the bbs. prefix.
Smitty
08-10-2004, 06:06 PM
Ive just installed the hack but I cant find anywhere in the admincp, a link to administer this hack? Anyone know why please?
Did you edit the admincp file? I can't remember which frame it is in, but you have to put the code in that file for it to list in the adminCP.
turbidblue
08-11-2004, 02:24 AM
I am getting this error:
Database error in vBulletin 3.0.3:
Invalid SQL:
SHOW TABLE STATUS
FROM turbidblue_com_-_1
LIKE 'pm'
mysql error: You have an error in your SQL syntax near '-_1
LIKE 'pm'
' at line 3
mysql error number: 1064
any help??
turbidblue
08-11-2004, 10:57 PM
booost in hopes someone can help me out! i really need this for my forum!
thanks in advance ;)
oldfan
08-11-2004, 11:16 PM
I've remove this script for the 2nd time now :(
I wish someone would rewrite it, because its a awesome addon :)
turbidblue
08-11-2004, 11:49 PM
I tried to manually run the query in PhpMyAdmin and I got this error:
SQL-query :
SHOW TABLE STATUS FROM $dbname LIKE 'pm'
MySQL said:
Can't read dir of './$dbname/' (Errcode: 2)
???
please help!
we_are_borg
08-13-2004, 06:50 AM
I have a little problem with the script.
I have Vb 3.0.3 installing was no problem i encountered one small problem with the prhases but that is solved by reading this thread.
I have done everything in the readme file but the statistic will not show, but http://forum.ffdungeon.info/statistik.php is working well. I have made the change to phpinclude_start but it still not work, all edits are checked but i can't get it to work.
Has anyone managed to cure the width issue yet? I use a fixed width site and this hack breaks the layout :(
Even on a full screen style, this hack throws up scrollbars.
Any clues?
Blam Forumz
08-16-2004, 05:01 AM
/me installs this uber hack
Dennis01
08-16-2004, 04:05 PM
Installed with alle mentioned problems and more.. but sure worth the trouble.
However I have a few problems with browser/os, country's and referer/domains they all do display correctly but all stay empty, it seems the database doesnt get any input about these.
Does anyone have a clue where to start looking whats wrong?
tia
ogden2k
08-16-2004, 09:05 PM
Not bad of a hack. I only want to OS and browser option. Is ther a hack that shows just that type of information?
oldfan
08-16-2004, 09:30 PM
I see the zip file was updated, this mean the mysql was corrected?
Nitesh
08-17-2004, 10:50 AM
Hack looks really good but I just need to know how it affects serverload? Has anyone installed it on big boards (1 million posts+)?
Thank you :)
oldfan
08-19-2004, 02:32 PM
ARrrrr...
Ok I've this is my third attemped at this install :(
I've followed the install word for word..
When run the install, I get this error
Database error in vBulletin 3.0.3:
Invalid SQL:
INSERT INTO statistik_einstellungen VALUES (0, 900, '', 10, 10, 10, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10)
mysql error: Table 'bbs.statistik_einstellungen' doesn't exist
mysql error number: 1146
Date: Thursday 19th of August 2004 08:30:29 AM
Script: http://xxxxxxxxxxx/admincp/install_statistik_english.php
Referer: http://xxxxxxxxxx/admincp/install_statistik_english.php
can someone help me get this addon running :)
Smitty
08-20-2004, 08:39 AM
Note that the error is:
mysql error: Table 'bbs.statistik_einstellungen' doesn't exist
Note the bbs. prefix on the database table that is being called. I'm not sure where in this thread, and it's late so I'm not prepared to read back through, but I'm sure this is addressed somewhere in the thread. I think it was addressed a page back as well.
oldfan
08-20-2004, 02:42 PM
the tables I have install are;
vB3statistik_browser_os
vB3statistik_domain
vB3statistik_einstellungen
vB3statistik_laender
vB3statistik_log
vB3statistik_referer
vB3statistik_spider
vB3statistik_zaehler
I've search this thread high and low, I cannot find a fix for the table errors :ermm:
Maybe the author of this mod can shed some light on this problem
Note that the error is:
mysql error: Table 'bbs.statistik_einstellungen' doesn't exist
Note the bbs. prefix on the database table that is being called. I'm not sure where in this thread, and it's late so I'm not prepared to read back through, but I'm sure this is addressed somewhere in the thread. I think it was addressed a page back as well.
oldfan
08-20-2004, 02:47 PM
Is this the fix your talking about?
I don't understand
* you should change "vB3_" with your table prefix
Would I have to change all other prefixs for my other mods?
sorry, its abotu confussing to me.
thanks for your help
Brian here is the final step (3) you should manually do it from a MySQL Manager
* you should change "vB3_" with your table prefix
* you should change "statistik_zaehler" to "tableprefix + statistik_zaehler"
and there is a fixed statistik.php
I just fixed the problems that I faced
If you have much problems please inform
* this is a very good script but author was drunken while coding hehe :)
oldfan
08-20-2004, 10:41 PM
i got it running, but I still have to database errors :(
http://bbs.metallifukinca.com/statistik.php
oldfan
08-21-2004, 12:21 AM
jesus murphy...
nothing but database errors, I've run 100's of installs and never had this many problems
/me clicks un-install again
integra99
08-21-2004, 06:30 AM
I installed this hack the first time, no problems.
oldfan
08-21-2004, 03:08 PM
I've found out its not working for me because my prefix is vB3 not vB3_, the installer doesn't recognize other prefixes. :(
Onkel_Tom
08-21-2004, 07:51 PM
Okay, here we go....
I'm using this hack also on my Forum and do some bugfixing in the german vBulletin Forum for this hack. I saw this thread here in at vBulletin.com yesterday night and found a lot of questions, problems and db errors, so I decided today to do a complete rework of this hack from my installed german version to a new english Version.
I worked now 8 hours on this hack and hope that most of the bugs are fixed ;)
All changes from this forum and also from the german one are implemented in my new version.
So I also will give further support for this hack if using my new files for install.
Please read the installation instruction to see what is changed and work carefully through it to get this hack work.
have fun
@ oldfan
the name of the tableprefix is defined in the file config.php with $tableprefix, so the install script only reads the prefix name from there and installs your tables like that name.
After additional 6 hours with installing this hack in a new Testboard I found again several bad translations and also again some german words ;)
Also 2 db queries has wrong syntax for prefixed tables again !
If you found misspelling or bugs please let me know that I can fix the download.
for a updated zip file please look some posts later ;)
iceman-x
08-22-2004, 01:58 PM
I keep geting the same problem over and over.
Database error in vBulletin 3.0.3:
Invalid SQL:
INSERT INTO statistik_einstellungen VALUES (0, 900, '', 10, 10, 10, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10)
mysql error: Table 'xxxxxx_xxxxx.statistik_einstellungen' doesn't exist
mysql error number: 1146
Date: Sunday 22nd of August 2004 07:54:20 AM
Script: http://www.xxxxxxx.xxxxxxxxxx.com/admincp/install_statistik_english.php
Referer:
mysql error: Table 'xxxxxxx_xxxxx.statistik_einstellungen' doesn't exist
Yes i have downloaded the new versjon of the Onkel_tom fix.
thanks for any help.
Ian Emu-UK
08-22-2004, 02:04 PM
Okay, here we go....
I'm using this hack also on my Forum and do some bugfixing in the german vBulletin Forum for this hack. I saw this thread here in at vBulletin.com yesterday night and found a lot of questions, problems and db errors, so I decided today to do a complete rework of this hack from my installed german version to a new english Version.
I worked now 8 hours on this hack and hope that most of the bugs are fixed ;)
All changes from this forum and also from the german one are implemented in my new version.
So I also will give further support for this hack if using my new files for install.
Please read the installation instruction to see what is changed and work carefully through it to get this hack work.Thanks Onkel_Tom, used your fixed version and it's fine.
I still get a problem with the bit "like 'pm'" saying invalid SQL, but it works fine if I comment that bit out.
Onkel_Tom
08-22-2004, 04:43 PM
@ Ian Emu-UK
Which PHP Version do you have ? < 3.23 ?
The Show Table syntax is working from V 3.23 and higher:
SHOW TABLE STATUS [FROM db_name] [LIKE 'pattern']
You can also have a look at http://dev.mysql.com/doc/mysql/en/SHOW_TABLE_STATUS.html to read the documentation of MySQL
@ iceman-x
You are right ! There was again a table prefix missing in the install script "install_statistik_english.php"
Search for:
INSERT INTO statistik_einstellungen VALUES (0, 900, '', 10, 10, 10, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10)
and replace it with:
INSERT INTO " . TABLE_PREFIX . "statistik_einstellungen VALUES (0, 900, '', 10, 10, 10, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10)
or just download the updated zip file 3 posts before ;)
Ian Emu-UK
08-22-2004, 05:45 PM
@ Ian Emu-UK
Which PHP Version do you have ? < 3.23 ?
The Show Table syntax is working from V 3.23 and higher:
SHOW TABLE STATUS [FROM db_name] [LIKE 'pattern']
You can also have a look at http://dev.mysql.com/doc/mysql/en/SHOW_TABLE_STATUS.html to read the documentation of MySQLPHP is 4.3.2 on the server.
Looking at the error message, it might be because the host has put an - in the database name. (In truth I have no idea though as I know very little about SQL)
Invalid SQL:
SHOW TABLE STATUS
FROM total-em_forum
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 '-em_forum
LIKE 'pm'' at line 2
I'm sure I can live without it though ;)
One translation hasn't been done that I've spotted so far:
The last 10 Searchwords (Big Brother ist watching you)
Should be (Big Brother is watching you) but I kinda like it the way it is so I'll be keeping it that way on my forum :)
oldfan
08-22-2004, 06:32 PM
whoo thank Onkel_Tom!!!
I'll give it a test run later night, I'll let you know how things turned out
Thanks!! :)
Onkel_Tom
08-22-2004, 07:03 PM
Sorry, it's not the PHP version !
We need the MySQL Version ;)
I've never tried to name a database with "-", mine are always with "_" in the name and it works.
Do you use also table prefixes for your tables ?
You can try this:
find in statistik.php:
LIKE 'pm'
and replace it with:
LIKE " . TABLE_PREFIX . "'pm'
Ian Emu-UK
08-22-2004, 08:00 PM
Sorry, it's not the PHP version !
We need the MySQL Version ;)
I've never tried to name a database with "-", mine are always with "_" in the name and it works.
Do you use also table prefixes for your tables ?
You can try this:
find in statistik.php:
LIKE 'pm'
and replace it with:
LIKE " . TABLE_PREFIX . "'pm'
MySQL on my test home server is the latest, and on my site server it's 4.0.16.
It still said the same after I altered the part you said to, but I removed the "FROM $dbname" bit from the query and now it works and gives the size for the PM table.
Is that part un-needed or will I run into problems having removed it at some point?
Thanks for your help Onkel_Tom :)
Onkel_Tom
08-22-2004, 08:21 PM
... I removed the "FROM $dbname" bit from the query and now it works and gives the size for the PM table.
Is that part un-needed or will I run into problems having removed it at some point?
This is not a problem because we are still in this database. The MySQL syntax mentioned to give the database with this command but if we are not outside this db it's not a problem ;)
I will fixed this also in the next release !
Thanks for your help to get this hack working :)
Hope more people will install this hack and give a click in the "hack of the month August " section for this very nice work from PcFreak.
iceman-x
08-22-2004, 09:40 PM
Database error in vBulletin 3.0.3:
Invalid SQL:
SELECT Summe as Datum
FROM statistik_zaehler
WHERE Zaehler_fuer = 'Statistik_Aktiv'
mysql error: Table 'elitesat_elite.statistik_zaehler' doesn't exist
mysql error number: 1146
Date: Sunday 22nd of August 2004 03:33:14 PM
The table fix workt perfekt.;) but now i goth a new problem. it keep looking for the old tabel. I tryed to deleted alle the tabel. and reinstalled. but dident work.
It look like the statistik work. the error apers when i am trying to enter the admin opitons. "statistikadmin.php?do=statistik_general"
iceman-x
08-22-2004, 10:18 PM
Found the ansvare to the problem. In the "statistikadmin.php"
i canged this..
Find this
$statistikaktiv = $DB_site->query("
SELECT Summe as Datum
FROM statistik_zaehler
WHERE Zaehler_fuer = 'Statistik_Aktiv'
");
and replaced whit this.
$statistikaktiv = $DB_site->query("
SELECT Summe as Datum
FROM " . TABLE_PREFIX . "statistik_zaehler
WHERE Zaehler_fuer = 'Statistik_Aktiv'
");
and then it works fine. :)
thanks for all the help.
Wential
08-22-2004, 10:32 PM
I took a few hours and worked through all the MySQL errors and it seems to work except for Browser & Operating System Stats. See my attachment. I know not EVERYONE is using "Other" for a browser. Did I miss something on the install?
Onkel_Tom
08-22-2004, 11:23 PM
@ Iceman-X
https://vborg.vbsupport.ru/external/2004/08/1.gif
thanks for the hint of another missing table_prefix
@ Wential
Browsers and OS are identified from the file /includes/functions_statistik.php so please check if this file is in that directory.
In that file the the Browsers are identified by getenv("HTTP_USER_AGENT") and a listing with the Browsernames.
Is only Browsertyp and OS version not identified by the statistics ?
Wential
08-23-2004, 12:08 AM
Ah, I missed replacing the " . TABLE_PREFIX . " with vb3_ in that file. Hopefully it will start showing up now. And yes, that was the only part that wasn't filling in with data. You're assistance is much appreciated.
Onkel_Tom
08-23-2004, 12:30 AM
Your welcome ;)
If the script still not identify the browsers and OS try this.
open file functions_statistik.php from Directory /includes and find:
$agent = getenv("HTTP_USER_AGENT");
replace it with this syntax:
$agent = $_SERVER['HTTP_USER_AGENT'];
for the $_SERVER Syntax you must have at least php 4.1.0 installed on your server
Wential
08-23-2004, 01:18 AM
The first solution didn't work after waiting an hour. I'm trying your second $_SERVER fix now. I'm running MYSQL 4.0.18 and PHP 4.3.6 so hopefully it will work. I hope it's not a problem that I run my own local Windows 2003 servers on a dedicated T-3 line. You wouldn't believe how many things (VB related) are designed around Apache. Yuck!
Wential
08-23-2004, 01:19 AM
Darn that was fast. It works perfectly now! Onkel Tom, you're a genius!
Onkel_Tom
08-23-2004, 01:26 AM
You can also easy test the function by this small php script.
Just copy ist to a file on your server like browsertest.php and run it from your Browser to see what is the output ;)
<?php
$agent0 = getenv("HTTP_USER_AGENT");
$agent1 = $_SERVER['HTTP_USER_AGENT'];
$agent2 = $HTTP_USER_AGENT;
$agent3 = get_browser();
echo "<b>getenv:</b> $agent0</br \></br \>";
echo "<b>_SERVER:</b> $agent1</br \></br \>";
echo "<b>HTTP_USER_AGENT:</b> $agent2</br \></br \>";
echo "<b>get_browser:</b> $agent3</br \></br \>";
?>
Onkel_Tom
08-23-2004, 01:37 AM
Don't forget to change also the same line in file statistic_counter.php at line 26 !!!
It should read in your case as:
$browserstamp = $_SERVER['HTTP_USER_AGENT'];
Wential
08-23-2004, 02:01 AM
Don't forget to change also the same line in file statistic_counter.php at line 26 !!!
It should read in your case as:
$browserstamp = $_SERVER['HTTP_USER_AGENT'];
Got it, thanks again!
Zelda-King
08-23-2004, 09:07 AM
On both version 1 and this version some of the most popular user countries don't show for me. I have remote countries like the Seychelles listed but not the UK/US.
... The English templates still need a lot of work, and it's not just the language. The notation isn't consistant. For example some statistic fields have a : after them and others do not.
Here's my updated STATISTIC template:
$statistic_header
<script language="JavaScript" type="text/javascript">
<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.rand om()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPositi on+',left='+LeftPosition+',scrollbars='+scroll+',l ocation=no,directories=no,status=no,menubar=no,too lbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2"><div align="center"><strong>Statistic Overview</strong></div></td>
</tr>
<tr>
<td class="panelsurround">
<div class="panel">
<fieldset class="fieldset">
<legend><strong>Topics/Threads/Users</strong></legend>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="$stylevar[formspacer]">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td class="alt2">Threads:</td>
<td class="alt2">$Themen</td>
</tr>
<tr>
<td>Posts:</td>
<td>$Beitraege</td>
</tr>
<tr>
<td class="alt2">Thread Views:</td>
<td class="alt2">$Beitraege_gelesen (? $Beitraege_durchschnitt times)</td>
</tr>
<tr>
<td>Registered Members:</td>
<td>$Member</td>
</tr>
<tr>
<td class="alt2">Visitors:</td>
<td class="alt2">$Besucher*</td>
</tr>
<tr>
<td>Side Calls:</td>
<td>$Seitenaufrufe*</td>
</tr>
<tr>
<td class="tcat" colspan="2"><div align="center">* - Since Statistics
Started on $statistikaktiv</div></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
</fieldset>
</div>
<div class="panel">
<fieldset class="fieldset">
<legend><strong>User Activity</strong></legend>
<table width="95%" border="0" align="center">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="alt2" width="30%">Active users: </td>
<td class="alt2" width="70%">$aktive_user_prozent % ($aktive_user) on this
forum have posted*</td>
<td class="alt2" width="70%"> <img src="images/statistik/bar5.gif" alt="Active user" width="$aktive_user_bar" height="10" border="0" /></td>
</tr>
<tr>
<td>Not active Users: </td>
<td>$unaktive_user_prozent % ($alle_unaktiven_user) on this forum have never
posted*</td>
<td> <img src="images/statistik/bar10.gif" alt="Not active User" width="$unaktive_user_bar" height="10" border="0" /></td>
</tr>
<tr>
<td> </td>
<td colspan="2" class="tcat"><div align="center">*Since $vboptions[bbtitle] is online</div></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="tfoot" colspan="3"><div align="center">Visits of registered Members for the last 30, 14 and 7 days </div></td>
</tr>
<tr>
<td class="alt2">The last 30 days:</td>
<td class="alt2"colspan="2">
<img src="images/statistik/bar1.gif" alt="Besuche von registrierten Membern f?r die letzten 30 days" width="$bar_aktiv_user1" height="10" border="0" />
$aktiven_user1_prozent % ($aktiven_user1)</td>
</tr>
<tr>
<td>The last 14 days:</td>
<td colspan="2"> <img src="images/statistik/bar2.gif" alt="Besuche von registrierten Membern f?r die letzten 14 days" width="$bar_aktiv_user2" height="10" border="0" />
$aktiven_user2_prozent %($aktiven_user2)</td>
</tr>
<tr>
<td class="alt2">The last 7 days:</td>
<td class="alt2"colspan="2">
<img src="images/statistik/bar3.gif" alt="Besuche von registrierten Membern f?r die letzten 7 days " width="$bar_aktiv_user3" height="10" border="0" />
$aktiven_user3_prozent %($aktiven_user3)</td>
</tr>
<tr>
<td>Not visited $vboptions[bbtitle] for more then 30 days:</td>
<td colspan="2">
<img src="images/statistik/bar4.gif" alt="$vboptions[bbtitle] l?nger als 30 days nicht mehr besucht!" width="$bar_aktiv_user4" height="10" border="0" />
$aktiven_user4_prozent % ($aktiven_user4) </td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</fieldset>
</div>
<div class="panel">
<fieldset class="fieldset">
<legend><strong>Private Messages </strong></legend>
<table width="95%" border="0" align="center">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td class="alt2">All written PMs:</td>
<td class="alt2">$PMS</td>
</tr>
<tr>
<td>All PMs in the database:</td>
<td>$alle_pm ($pm_ungelesen unread)</td>
</tr>
<tr>
<td class="alt2">Space Used by PMs:</td>
<td class="alt2">$pm_speicher_in_kb kb ($pm_speicher_in_mb mb)</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
</fieldset>
</div>
<div class="panel">
<fieldset class="fieldset">
<legend><strong>Database</strong></legend>
<table width="95%" border="0" align="center">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/database.gif" alt="Database Size" width="14" height="14" border="0" /></td>
<td class="alt2">Database Size:</td>
<td class="alt2">$datenbank_in_kb KiloBytes ($datenbank_in_mb Mb)</td>
</tr>
<tr>
<td><img src="images/statistik/misc/serverinfo.gif" alt="Server Info" width="14" height="14" border="0" /></td>
<td>Server Info:</td>
<td>$serverinfo</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/mysqlinfo.gif" alt="MYSQL Version" width="14" height="14" border="0" /></td>
<td class="alt2">MYSQL Version:</td>
<td class="alt2">$mysqlversion</td>
</tr>
<tr>
<td><img src="images/statistik/misc/smilie.gif" alt="Smilies" width="14" height="14" border="0" /></td>
<td>Smilies:</td>
<td>$alle_smilies total</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/anhaenge.gif" alt="Stored Attachments" width="14" height="14" border="0" /></td>
<td class="alt2">Stored Attachments:</td>
<td class="alt2">$alle_anhaenge</td>
</tr>
<tr>
<td><img src="images/statistik/misc/anhaenge1.gif" alt="Space Used by Attachments" width="14" height="14" border="0" /></td>
<td>Space Used by Attachments:</td>
<td>$anhaenge_speicher_in_kb KiloBytes ($anhaenge_speicher_in_mb Mb)</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/auge.gif" alt="Attachments Viewed / Downloaded" width="14" height="14" border="0" /></td>
<td class="alt2">Attachments Viewed / Downloaded:</td>
<td class="alt2">$alle_downloads times</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</fieldset>
</div>
</td>
<td valign="top" class="panelsurround">
<div class="panel">
<fieldset class="fieldset">
<legend><strong>The 5 Top Posters</strong></legend>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="$stylevar[formspacer]">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/goldmedal.gif" alt="Gold Medal Winner" width="14" height="14" border="0" /></td>
<td class="alt2"><a title="Show $postername1's profile" href="member.php?u=$posterid1">
$postername1</a></td>
<td class="alt2"><img src="images/statistik/bar1.gif" alt="Gold Medal Winner" width="$maxposter1_bar" height="10" border="0" />
with $poster_beitragszahl1 posts ($maxposter1_prozent %)</td>
</tr>
<tr>
<td><img src="images/statistik/misc/silvermedal.gif" alt="Silver Medal Winner" width="14" height="14" border="0" /></td>
<td><a title="Show $postername2's profile" href="member.php?u=$posterid2">
$postername2</a></td>
<td><img src="images/statistik/bar2.gif" alt="Silver Medal Winner" width="$maxposter2_bar" height="10" border="0" />
with $poster_beitragszahl2 posts ($maxposter2_prozent %)</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/bronzemedal.gif" alt="Bronce Medal Winner" width="14" height="14" border="0" /></td>
<td class="alt2"><a title="Show $postername3's profile" href="member.php?u=$posterid3">
$postername3</a></td>
<td class="alt2"><img src="images/statistik/bar3.gif" alt="Bronze Medal Winner" width="$maxposter3_bar" height="10" border="0" />
with $poster_beitragszahl3 posts ($maxposter3_prozent %)</td>
</tr>
<tr>
<td><img src="images/statistik/misc/ananas.gif" alt="Golden pineapple" width="14" height="14" border="0" /></td>
<td> <a title="Show $postername4's profile" href="member.php?u=$posterid4">
$postername4</a></td>
<td><img src="images/statistik/bar4.gif" alt="Golden pineapple" width="$maxposter4_bar" height="10" border="0" />
with $poster_beitragszahl4 posts ($maxposter4_prozent %)</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/lollipop.gif" alt="Lollipop" width="14" height="14" border="0" /></td>
<td class="alt2"><a title="Show $postername5's profile" href="member.php?u=$posterid5">
$postername5</a></td>
<td class="alt2"><img src="images/statistik/bar5.gif" alt="Just a Lollipop" width="$maxposter5_bar" height="10" border="0" />
with $poster_beitragszahl5 posts ($maxposter5_prozent %)</td>
</tr>
<tr>
<td colspan="3"><br />These members have a combined total of $maxposter_summe posts!!<br />
<a onclick="NewWindow(this.href,'statistik','640','480','yes', 'center');return false" onfocus="this.blur()" title="Show the $topposter_limit Top Poster in a PopUp Window" href="statistik.php?do=topposter_popup">
Show $topposter_limit Top Posters</a>
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</fieldset>
</div>
<div class="panel">
<fieldset class="fieldset">
<legend><strong>Other Records</strong></legend>
<table width="95%" border="0" align="center">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/antworten.gif" alt="Largest Thread" width="14" height="14" border="0" /> </td>
<td class="alt2">Largest Thread:</td>
<td class="alt2"><a title="$maxthread_titel_long" href="showthread.php?threadid=$maxthread_id">$maxthread_titel</a> <br />
with <strong>$maxthread_antworten</strong> replies<br/>
<a onclick="NewWindow(this.href,'statistik','640','480','yes', 'center');return false" onfocus="this.blur()" title="Show the $maxthread_limit Threads in a PopUp Window" href="statistik.php?do=maxthread_popup">
Show $maxthread_limit Threads (PopUp Window)</a></td>
</tr>
<tr>
<td><img src="images/statistik/misc/ansehen.gif" alt="Most Popular Thread" width="14" height="14" border="0" /></td>
<td>Most Popular Thread: </td>
<td><a title="$mostpopular_titel_long" href="showthread.php?threadid=$mostpopular_id">$mostpopular_titel</a> <br />
with <strong>$mostpopular_views</strong> views<br/>
<a onclick="NewWindow(this.href,'statistik','640','480','yes', 'center');return false" onfocus="this.blur()"
title="Show the $mostpopular_limit most Popular Threads in a PopUp Window" href="statistik.php?do=mostpopular_popup">
Show the $mostpopular_limit Most Popular Threads</a></td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/poular_forum.gif" alt="Most Popular Forum:" width="14" height="14" border="0" /></td>
<td class="alt2">Most Popular Forum:</td>
<td class="alt2"><a title="$popularforum_titel" href="forumdisplay.php?forumid=$popularforum_id">$popularforum_titel</a> <br />
with <strong>$popularforum_antworten</strong> posts<br/>
<a onclick="NewWindow(this.href,'statistik','640','480','yes', 'center');return false" onfocus="this.blur()" title="Show the $popularforum_limit Most Popular Forums in a PopUp Window" href="statistik.php?do=popularforum_popup">
Show the $popularforum_limit Most Popular Forums</a></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="tcat" colspan="3"><div align="center">Absolute records</div></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="alt2">
<img src="images/statistik/misc/mostonline.gif" alt="Most users ever online" width="14" height="14" border="0" /></td>
<td class="alt2" colspan="2">Most users ever online was <strong>$maxusers[maxonline]</strong>,<strong>$recorddate</strong> at <strong>$recordtime </strong></td>
</tr>
<tr>
<td><img src="images/statistik/misc/newusers.gif" alt="Most new registrations" width="14" height="14" border="0" /></td>
<td colspan="2">Most new registrations was <strong>$getmostregister_tag</strong>
with <strong>$getmostregister_user New Members</strong> <br />
<a onclick="NewWindow(this.href,'statistik','440','480','yes', 'center');return false" title="Show the $popularforum_limit days with the Most new registrations in a PopUp Window" href="statistik.php?do=mostregister_popup">
Show $mostregister_limit days</a>
</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/onlines.gif" alt="Most registered Member visited" width="14" height="14" border="0" /></td>
<td class="alt2" colspan="2">Most registered member visits was <strong>$getmost_member_tag</strong>
with <strong>$getmost_member_user</strong> Members<br />
<a onclick="NewWindow(this.href,'statistik','540','480','yes', 'center');return false" title="Show the $visit_limit days with the most registered Member visited in a PopUp Window" href="statistik.php?do=visit_popup">
Show $visit_limit days</a>
</td>
</tr>
<tr>
<td><img src="images/statistik/misc/threads.gif" alt="written the most new threads" width="14" height="14" border="0" /></td>
<td colspan="2">Most new threads was <strong>$getmost_threads_tag</strong>
with <strong>$getmost_threads_sum</strong> New Threads <br />
<a onclick="NewWindow(this.href,'statistik','540','480','yes', 'center');return false" onfocus="this.blur()" title="Show the $mostthread_limit days written the most new threads in a PopUp Window" href="statistik.php?do=mostthread_popup">
Show $mostthread_limit days</a>
</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/posts.gif" alt="Written the most new posts" width="14" height="14" border="0" /></td>
<td class="alt2"colspan="2">Most new posts was <strong>$getmost_posts_tag</strong>
with <strong>$getmost_posts_sum</strong> New Posts<br />
<a onclick="NewWindow(this.href,'statistik','540','480','yes', 'center');return false" onfocus="this.blur()" title="Show the $mostpost_limit days with the most new posts in a PopUp Window" href="statistik.php?do=mostpost_popup">
Show $mostpost_limit days</a>
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</fieldset>
</div>
<div class="panel">
<fieldset class="fieldset">
<legend><strong>Avatars / Profile Pics</strong></legend>
<table width="95%" border="0" align="center">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/noavatar.gif" alt="Users Without Avatar" width="14" height="14" border="0" /></td>
<td class="alt2">Users Without Avatar: </td>
<td class="alt2"><img src="images/statistik/bar1.gif" alt="Users Without Avatar" width="$kein_avatarbar" height="10" border="0" /> $prozent_avatar % ($kein_avatar)</td>
</tr>
<tr>
<td><img src="images/statistik/misc/mit_avatar.gif" alt="Users with Avatar" width="14" height="14" border="0" /></td>
<td>Users with Avatar: </td>
<td><img src="images/statistik/bar2.gif" alt="Users with Avatar" width="$mit_avatarbar" height="10" border="0" /> $prozent_mit_avatar % ($alle_avatars)</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/noavantar.gif" alt="Users Without Profile Pic" width="14" height="14" border="0" /></td>
<td class="alt2">Users Without Profile Pic: </td>
<td class="alt2"><img src="images/statistik/bar3.gif" alt="Users Without Profile Pic" width="$kein_profilpicbar" height="10" border="0" /> $prozent_profilpic % ($kein_profilpic)</td>
</tr>
<tr>
<td><img src="images/statistik/misc/mit_profil.gif" alt="Users with Profile Pic" width="14" height="14" border="0" /></td>
<td>Users with Profile Pic: </td>
<td><img src="images/statistik/bar4.gif" alt="Users with Profile Pic" width="$mit_profilpicbar" height="10" border="0" /> $prozent_mit_profilpic % ($alle_profilpics)</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</fieldset>
</div>
</td>
</tr>
<tr>
<td class="tcat" colspan="2"> </td>
</tr>
</table>
$statistic_footer
Onkel_Tom
08-23-2004, 10:20 AM
On both version 1 and this version some of the most popular user countries don't show for me. I have remote countries like the Seychelles listed but not the UK/US.
... The English templates still need a lot of work, and it's not just the language. The notation isn't consistant. For example some statistic fields have a : after them and others do not.
Hmm, UK and US are listed in the database table "statistik_laender" as unique entry, so the statistic should also identify all visitors from this countries.
Countries are identified by the following lines in function_statistik.php
$ip = $_SERVER['REMOTE_ADDR'];
$fullhost = gethostbyaddr($ip);
and the Browserlanguage in the same file by:$sprache = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
If your server can't handle this request, $_server needs PHP < 4.1.0, you should upgrade php or use older syntax for php > 4.0.1
btw. you are using the old template STATISTICS which has more missed translations than my new one...
and sorry for that, we are germans which are not english professionals ;)
but we are understanding english as well :D
For the notation I will update missing ":" in the next update.
Zelda-King
08-23-2004, 10:44 AM
Oh I don't expect you Germans to translate it to English at all. You've done admirably to even have a remote English version. I was just surprised with such a popular hack, that there hasn't been more member support to get it fully translated. Fortunately I still remember some German.
Zelda-King
08-23-2004, 10:48 AM
Incidentally I'm using PHP 4.3.8 / MySQL 4.0.20-standard
Here's my URL: http://www.gamercrossfire.net/bb/statistik.php?do=countries
Wential
08-23-2004, 11:02 AM
Yeah after 10+ hours of stats collecting, I don't have any USA listings either. The UK one seems to be working though.
Zelda-King
08-23-2004, 11:09 AM
Now I have England showing under browser language, but not visitor host. My host is English.
Onkel_Tom
08-23-2004, 12:16 PM
Can you please check what is the output of this script on your browser wenn you upload a file with this content:
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$fullhost = gethostbyaddr($ip);
$at = preg_replace("/^[^.]+./", "*.", $fullhost);
$hostdot = ".";
$hoster = strrchr($at, $hostdot);
$sprache = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
echo "<b>IP Adress:</b> $ip</br \>";
echo "<b>full hostname:</b> $fullhost</br \>";
echo "<b>only TLD of hostname:</b> $at</br \>";
echo "<b>country of hoster(provider):</b> $hoster</br \>";
echo "<b>your language:</b> $sprache</br \>";
?>
Mine looks like:
IP Adress: 80.131.xxx.xxx
full hostname: pxxxxxx.dip0.t-ipconnect.de
only end of hostname: *.dip0.t-ipconnect.de
country of hoster(provider): .de
your language: de
If visitors uses software tools like Norton Internet Security which can suppress Browser output of this information you will get "unknown" result in your statistics.
Zelda-King
08-23-2004, 01:00 PM
I'm on it. In the meantime here's a new English STATISTIC template for you based on the english2.zip file (last update before this post).
$statistic_header
<script language="JavaScript" type="text/javascript">
<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.rand om()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPositi on+',left='+LeftPosition+',scr ollbars='+scroll+',location=no,directories=no,stat us=no,menubar=no,toolbar=no,re sizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2"><div align="center"><strong>Statistic Overview</strong></div></td>
</tr>
<tr>
<td class="panelsurround">
<div class="panel">
<fieldset class="fieldset">
<legend><strong>Topics/Threads/Users/Hits</strong></legend>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="$stylevar[formspacer]">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td class="alt2">Threads:</td>
<td class="alt2">$Themen</td>
</tr>
<tr>
<td>Posts:</td>
<td>$Beitraege</td>
</tr>
<tr>
<td class="alt2">Thread Views:</td>
<td class="alt2">$Beitraege_gelesen (? $Beitraege_durchschnitt times)</td>
</tr>
<tr>
<td>Registered Members:</td>
<td>$Member</td>
</tr>
<tr>
<td class="alt2">Visitors:</td>
<td class="alt2">$Besucher*</td>
</tr>
<tr>
<td>Website Hits:</td>
<td>$Seitenaufrufe*</td>
</tr>
<tr>
<td class="tcat" colspan="2"><div align="center">* - Since Statistics
started on $statistikaktiv</div></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
</fieldset>
</div>
<div class="panel">
<fieldset class="fieldset">
<legend><strong>User Activity</strong></legend>
<table width="95%" border="0" align="center">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="alt2" width="30%">Active users: </td>
<td class="alt2" width="70%">$aktive_user_prozent % ($aktive_user) have posted*</td>
<td class="alt2" width="70%"> <img src="images/statistik/bar5.gif" alt="Users which have posted on this board" width="$aktive_user_bar" height="10" border="0" /></td>
</tr>
<tr>
<td>Inactive Users: </td>
<td>$unaktive_user_prozent % ($alle_unaktiven_user) have never posted*</td>
<td> <img src="images/statistik/bar10.gif" alt="Users which never posted on this board" width="$unaktive_user_bar" height="10" border="0" /></td>
</tr>
<tr>
<td> </td>
<td colspan="2" class="tcat"><div align="center">*Since $vboptions[bbtitle] came online</div></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="tfoot" colspan="3"><div align="center">Visits of registered Members for the last 30, 14 and 7 days </div></td>
</tr>
<tr>
<td class="alt2">The last 30 days:</td>
<td class="alt2"colspan="2">
<img src="images/statistik/bar1.gif" alt="Visits from registered Members in the last 30 days" width="$bar_aktiv_user1" height="10" border="0" />
$aktiven_user1_prozent % ($aktiven_user1)</td>
</tr>
<tr>
<td>The last 14 days:</td>
<td colspan="2"> <img src="images/statistik/bar2.gif" alt="Visits from registered Members in the last 14 days" width="$bar_aktiv_user2" height="10" border="0" />
$aktiven_user2_prozent %($aktiven_user2)</td>
</tr>
<tr>
<td class="alt2">The last 7 days:</td>
<td class="alt2"colspan="2">
<img src="images/statistik/bar3.gif" alt="Visits from registered Members in the last 7 days" width="$bar_aktiv_user3" height="10" border="0" />
$aktiven_user3_prozent %($aktiven_user3)</td>
</tr>
<tr>
<td>No visit in the last 30 days:</td>
<td colspan="2">
<img src="images/statistik/bar4.gif" alt="Members which has not visited $vboptions[bbtitle] for more than 30 days!" width="$bar_aktiv_user4" height="10" border="0" />
$aktiven_user4_prozent % ($aktiven_user4) </td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</fieldset>
</div>
<div class="panel">
<fieldset class="fieldset">
<legend><strong>Private Messages </strong></legend>
<table width="95%" border="0" align="center">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td class="alt2">Total PMs written:</td>
<td class="alt2">$PMS</td>
</tr>
<tr>
<td>Total PMs stored in database:</td>
<td>$alle_pm ($pm_ungelesen unread)</td>
</tr>
<tr>
<td class="alt2">Memory used by PMs:</td>
<td class="alt2">$pm_speicher_in_kb kb ($pm_speicher_in_mb mb)</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
</fieldset>
</div>
<div class="panel">
<fieldset class="fieldset">
<legend><strong>Database and Server</strong></legend>
<table width="95%" border="0" align="center">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/database.gif" alt="Database Size" width="14" height="14" border="0" /></td>
<td class="alt2">Database Size:</td>
<td class="alt2">$datenbank_in_kb kb ($datenbank_in_mb mb)</td>
</tr>
<tr>
<td><img src="images/statistik/misc/serverinfo.gif" alt="Server Info" width="14" height="14" border="0" /></td>
<td>Server Information:</td>
<td>$serverinfo</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/mysqlinfo.gif" alt="MYSQL Version" width="14" height="14" border="0" /></td>
<td class="alt2">MySQL Version:</td>
<td class="alt2">$mysqlversion</td>
</tr>
<tr>
<td><img src="images/statistik/misc/smilie.gif" alt="Smilies" width="14" height="14" border="0" /></td>
<td>Usable Smilies:</td>
<td>$alle_smilies total</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/anhaenge.gif" alt="Stored Attachments" width="14" height="14" border="0" /></td>
<td class="alt2">Stored Attachments:</td>
<td class="alt2">$alle_anhaenge</td>
</tr>
<tr>
<td><img src="images/statistik/misc/anhaenge1.gif" alt="Space Used by Attachments" width="14" height="14" border="0" /></td>
<td>Memory used by Attachments:</td>
<td>$anhaenge_speicher_in_kb kb ($anhaenge_speicher_in_mb mb)</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/auge.gif" alt="Attachments viewed or downloaded" width="14" height="14" border="0" /></td>
<td class="alt2">Attachments Hits:</td>
<td class="alt2">$alle_downloads times</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</fieldset>
</div>
</td>
<td valign="top" class="panelsurround">
<div class="panel">
<fieldset class="fieldset">
<legend><strong>The Top 5 Posters</strong></legend>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="$stylevar[formspacer]">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/goldmedal.gif" alt="Gold Medal Winner" width="14" height="14" border="0" /></td>
<td class="alt2"><a title="Show $postername1's profile" href="member.php?u=$posterid1">
$postername1</a></td>
<td class="alt2"><img src="images/statistik/bar1.gif" alt="Gold Medal Winner" width="$maxposter1_bar" height="10" border="0" />
with $poster_beitragszahl1 posts ($maxposter1_prozent %)</td>
</tr>
<tr>
<td><img src="images/statistik/misc/silvermedal.gif" alt="Silver Medal Winner" width="14" height="14" border="0" /></td>
<td><a title="Show $postername2's profile" href="member.php?u=$posterid2">
$postername2</a></td>
<td><img src="images/statistik/bar2.gif" alt="Silver Medal Winner" width="$maxposter2_bar" height="10" border="0" />
with $poster_beitragszahl2 posts ($maxposter2_prozent %)</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/bronzemedal.gif" alt="Bronze Medal Winner" width="14" height="14" border="0" /></td>
<td class="alt2"><a title="Show $postername3's profile" href="member.php?u=$posterid3">
$postername3</a></td>
<td class="alt2"><img src="images/statistik/bar3.gif" alt="Bronze Medal Winner" width="$maxposter3_bar" height="10" border="0" />
with $poster_beitragszahl3 posts ($maxposter3_prozent %)</td>
</tr>
<tr>
<td><img src="images/statistik/misc/ananas.gif" alt="Golden pineapple" width="14" height="14" border="0" /></td>
<td> <a title="Show $postername4's profile" href="member.php?u=$posterid4">
$postername4</a></td>
<td><img src="images/statistik/bar4.gif" alt="Golden pineapple" width="$maxposter4_bar" height="10" border="0" />
with $poster_beitragszahl4 posts ($maxposter4_prozent %)</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/lollipop.gif" alt="Just a Lollipop" width="14" height="14" border="0" /></td>
<td class="alt2"><a title="Show $postername5's profile" href="member.php?u=$posterid5">
$postername5</a></td>
<td class="alt2"><img src="images/statistik/bar5.gif" alt="Lollipop" width="$maxposter5_bar" height="10" border="0" />
with $poster_beitragszahl5 posts ($maxposter5_prozent %)</td>
</tr>
<tr>
<td colspan="3"><br />These members have a combined total of $maxposter_summe posts!!<br />
<a onclick="NewWindow(this.href,'statistik','640','480','yes', 'center');return false" onfocus="this.blur()" title="Show the $topposter_limit Top Posters in a PopUp Window" href="statistik.php?do=topposter_popup">
Show Top $topposter_limit Posters (PopUp Window)</a>
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</fieldset>
</div>
<div class="panel">
<fieldset class="fieldset">
<legend><strong>Other Records</strong></legend>
<table width="95%" border="0" align="center">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/antworten.gif" alt="Largest Thread" width="14" height="14" border="0" /> </td>
<td class="alt2">Largest Thread:</td>
<td class="alt2"><a title="$maxthread_titel_long" href="showthread.php?threadid=$maxthread_id">$maxthread_titel</a> <br />
with <strong>$maxthread_antworten</strong> replies<br/>
<a onclick="NewWindow(this.href,'statistik','640','480','yes', 'center');return false" onfocus="this.blur()" title="Show the $maxthread_limit Threads in a PopUp Window" href="statistik.php?do=maxthread_popup">
Show $maxthread_limit Threads (PopUp Window)</a></td>
</tr>
<tr>
<td><img src="images/statistik/misc/ansehen.gif" alt="Most Popular Thread" width="14" height="14" border="0" /></td>
<td>Most Popular Thread:</td>
<td><a title="$mostpopular_titel_long" href="showthread.php?threadid=$mostpopular_id">$mostpopular_titel</a> <br />
with <strong>$mostpopular_views</strong> views<br/>
<a onclick="NewWindow(this.href,'statistik','640','480','yes', 'center');return false" onfocus="this.blur()"
title="Show the $mostpopular_limit most Popular Threads in a PopUp Window" href="statistik.php?do=mostpopular_popup">
Show the $mostpopular_limit Most Popular Threads (PopUp Window)</a></td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/poular_forum.gif" alt="Most Popular Forum" width="14" height="14" border="0" /></td>
<td class="alt2">Most Popular Forum:</td>
<td class="alt2"><a title="$popularforum_titel" href="forumdisplay.php?forumid=$popularforum_id">$popularforum_titel</a> <br />
with <strong>$popularforum_antworten</strong> posts<br/>
<a onclick="NewWindow(this.href,'statistik','640','480','yes', 'center');return false" onfocus="this.blur()" title="Show the $popularforum_limit Most Popular Forums in a PopUp Window" href="statistik.php?do=popularforum_popup">
Show the $popularforum_limit Most Popular Forums (PopUp Window)</a></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="tcat" colspan="3"><div align="center">Absolute Records</div></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="alt2">
<img src="images/statistik/misc/mostonline.gif" alt="Most users ever online" width="14" height="14" border="0" /></td>
<td class="alt2" colspan="2">Most users ever online was <strong>$maxusers[maxonline]</strong>, on <strong>$recorddate</strong> at <strong>$recordtime </strong></td>
</tr>
<tr>
<td><img src="images/statistik/misc/newusers.gif" alt="Most new registrations" width="14" height="14" border="0" /></td>
<td colspan="2">Most new registrations was on <strong>$getmostregister_tag</strong>
with <strong>$getmostregister_user New Members</strong> <br />
<a onclick="NewWindow(this.href,'statistik','440','480','yes', 'center');return false" title="Show the $popularforum_limit days with the Most new registrations in a PopUp Window" href="statistik.php?do=mostregister_popup">
Show $mostregister_limit days (PopUp Window)</a>
</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/onlines.gif" alt="Most registered members visited" width="14" height="14" border="0" /></td>
<td class="alt2" colspan="2">Most visits by registered members was on <strong>$getmost_member_tag</strong>
with <strong>$getmost_member_user</strong> Members<br />
<a onclick="NewWindow(this.href,'statistik','540','480','yes', 'center');return false" title="Show the $visit_limit days when the most registered members visited in a PopUp Window" href="statistik.php?do=visit_popup">
Show $visit_limit days (PopUp Window)</a>
</td>
</tr>
<tr>
<td><img src="images/statistik/misc/threads.gif" alt="written the most new threads" width="14" height="14" border="0" /></td>
<td colspan="2">Most new threads posted was on <strong>$getmost_threads_tag</strong>
with <strong>$getmost_threads_sum</strong> New Threads <br />
<a onclick="NewWindow(this.href,'statistik','540','480','yes', 'center');return false" onfocus="this.blur()" title="Show the $mostthread_limit days with the most new threads posted in a PopUp Window" href="statistik.php?do=mostthread_popup">
Show $mostthread_limit days (PopUp Window)</a>
</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/posts.gif" alt="Written the most new posts" width="14" height="14" border="0" /></td>
<td class="alt2"colspan="2">Most new posts written was on <strong>$getmost_posts_tag</strong>
with <strong>$getmost_posts_sum</strong> New Posts<br />
<a onclick="NewWindow(this.href,'statistik','540','480','yes', 'center');return false" onfocus="this.blur()" title="Show the $mostpost_limit days with the most new posts in a PopUp Window" href="statistik.php?do=mostpost_popup">
Show $mostpost_limit days (PopUp Window)</a>
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</fieldset>
</div>
<div class="panel">
<fieldset class="fieldset">
<legend><strong>Avatars / Profile Pics</strong></legend>
<table width="95%" border="0" align="center">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/noavatar.gif" alt="Users Without Avatar" width="14" height="14" border="0" /></td>
<td class="alt2">Users Without Avatar: </td>
<td class="alt2"><img src="images/statistik/bar1.gif" alt="Users Without Avatar" width="$kein_avatarbar" height="10" border="0" /> $prozent_avatar % ($kein_avatar)</td>
</tr>
<tr>
<td><img src="images/statistik/misc/mit_avatar.gif" alt="Users with Avatar" width="14" height="14" border="0" /></td>
<td>Users with Avatar: </td>
<td><img src="images/statistik/bar2.gif" alt="Users with Avatar" width="$mit_avatarbar" height="10" border="0" /> $prozent_mit_avatar % ($alle_avatars)</td>
</tr>
<tr>
<td class="alt2"><img src="images/statistik/misc/noavantar.gif" alt="Users Without Profile Pic" width="14" height="14" border="0" /></td>
<td class="alt2">Users Without Profile Pic: </td>
<td class="alt2"><img src="images/statistik/bar3.gif" alt="Users Without Profile Pic" width="$kein_profilpicbar" height="10" border="0" /> $prozent_profilpic % ($kein_profilpic)</td>
</tr>
<tr>
<td><img src="images/statistik/misc/mit_profil.gif" alt="Users with Profile Pic" width="14" height="14" border="0" /></td>
<td>Users with Profile Pic: </td>
<td><img src="images/statistik/bar4.gif" alt="Users with Profile Pic" width="$mit_profilpicbar" height="10" border="0" /> $prozent_mit_profilpic % ($alle_profilpics)</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</fieldset>
</div>
</td>
</tr>
<tr>
<td class="tcat" colspan="2"> </td>
</tr>
</table>
$statistic_footer
Zelda-King
08-23-2004, 01:04 PM
Can you please check what is the output of this script on your browser...
IP Adress: xxx.xx.xx.xx
full hostname: hostxxx-xx-xx-xx.rangexxx-xx.btcentralplus.com
only TLD of hostname: *.rangexxx-xx.btcentralplus.com
country of hoster(provider): .com
your language: en-us,en;q=0.5
(That's with and without my ZoneAlarm Security Suite switched on.)
Onkel_Tom
08-23-2004, 01:13 PM
what happens if your are changing the following line in file functions_statistik.php
search for:
elseif(ereg("us", $sprache))$browser_sprache="UnitedStates";
and replace by:
elseif(ereg("en-us", $sprache))$browser_sprache="UnitedStates";
Zelda-King
08-23-2004, 01:17 PM
It still isn't showing America. I'll leave the file like that until directed otherwise and give you the link: http://www.gamercrossfire.net/bb/statistik.php?do=countries
(Note: STATISTIC template updated in above post.)
Just a couple of things in some other templates I ironed out;
statistic_polls:
$statistic_header
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2"><div align="center"><strong>Polls / Stickys /
Searchwords</strong></div></td>
</tr>
<tr>
<td colspan="2"> <div class="panel">
<fieldset class="fieldset">
<legend><strong>The last $poll_limit Polls</strong></legend>
<div align="center">
<table width="95%" border="0">
<tr>
<td class="thead"><div align="center"><strong>Title</strong></div></td>
<td class="thead"><div align="center"><strong>Starter</strong></div></td>
<td class="thead"><div align="center"><strong>Poll</strong></div></td>
<td class="thead"><div align="center"><strong>Date</strong></div></td>
<td class="thead"><div align="center"><strong>Answer possibilities</strong></div></td>
<td class="thead"><div align="center"><strong>Voted</strong></div></td>
<td class="thead"><div align="center"><strong>Opened</strong></div></td>
<td class="thead"><div align="center"><strong>Ends</strong></div></td>
<td class="thead"><div align="center"><strong>Multiple choice</strong></div></td>
<td class="thead"><div align="center"><strong>Public</strong></div></td>
<td class="thead"><div align="center"><strong>Views</strong></div></td>
</tr>
$statistic_polls_bit
</table>
<table width="95%" border="0">
<tr>
<td> </td>
</tr>
<tr>
<td class="thead"><div align="right"><img src="images/statistik/misc/daumenhoch.gif" alt="activ" width="15" height="15" />
active <img src="images/statistik/misc/daumenrunter.gif" alt="inactive" width="15" height="15" />
inactive</div></td>
</tr>
</table>
</div>
</fieldset>
</div></td>
</tr>
<tr>
<td valign="top"> <div class="panel">
<fieldset class="fieldset">
<legend><strong>The last $sticky_limit sticky threads</strong></legend>
<table width="95%" border="0" align="center">
<tr>
<td colspan="4"> </td>
</tr>
<tr>
<td class="thead"><div align="center"><strong>Title</strong></div></td>
<td class="thead"><div align="center"><strong>Author</strong></div></td>
<td class="thead"><div align="center"><strong>Date</strong></div></td>
<td class="thead"><div align="center"><strong>views</strong></div></td>
</tr>
$statistic_sticky_bit
</table>
</fieldset>
</div>
</td>
<td valign="top"> <div class="panel">
<fieldset class="fieldset">
<legend><strong>The latest $search_limit Searchwords (Big Brother is watching you)</strong></legend>
<table width="95%" border="0" align="center">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td class="thead"><div align="center"><strong>Search word</strong></div></td>
<td class="thead"><div align="center"><strong>searched on</strong></div></td>
<td class="thead"><div align="center"><strong>needed time to find</strong></div></td>
</tr>
$statistic_search_bit
</table>
<table width="95%" border="0" align="center">
<tr>
<td><div align="right"><img src="images/statistik/misc/bag.gif" alt="This was a search for latest threads (Not a real search query)" width="20" height="21" border="0" />
Search for latest threads (Not a real search query)</div></td>
</tr>
</table>
</fieldset>
</div>
</td>
</tr>
<tr>
<td class="tcat" colspan="2"> </td>
</tr>
</table>
$statistic_footer
statistic_last_x_days
$statistic_header
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2"><div align="center"><strong>Statistics for the
last $xtage_limit days and the last $xthemen_limit threads</strong></div></td>
</tr>
<tr>
<td valign="top" class="panelsurround">
<div class="panel">
<fieldset class="fieldset">
<legend><strong>The last $xtage_limit days</strong></legend>
<table width="95%" border="0" cellpadding="0" cellspacing="$stylevar[formspacer]">
<tr>
<td class="thead"><div align="center"><strong>Date</strong></div></td>
<td class="thead"><div align="center"><strong>New Registrations</strong></div></td>
<td class="thead"><div align="center"><strong>New Threads</strong></div></td>
<td class="thead"><div align="center"><strong>New Posts</strong></div></td>
<td class="thead"><div align="center"><strong>Registered Members Visits</strong></div></td>
</tr>
$statistic_last_x_result_bit
</table>
</fieldset>
</div>
</td>
<td valign="top" class="panelsurround">
<div class="panel">
<fieldset class="fieldset">
<legend><strong>The last $xthemen_limit threads</strong></legend>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="$stylevar[formspacer]">
<tr>
<td class="thead"><div align="center"><strong>Date</strong></div></td>
</tr>
$statistic_last_x_threads_bit
</table>
</fieldset>
</div>
</td>
</tr>
<tr>
<td class="tcat" colspan="2"> </td>
</tr>
</table>
$statistic_footer
I think that's most grammatical discrepancies dealt with now.
Onkel_Tom
08-23-2004, 01:53 PM
Okay, I think I found the problem !
The countrynames in table "statistik_laender" are not identical with the Names given in file "functions_statistik.php"
So the query $DB_site->query("
UPDATE " . TABLE_PREFIX . "statistik_laender
SET Zaehler_Browsersprache = Zaehler_Browsersprache +1
WHERE (Name_Land = '$browser_sprache')
");
can't work while trying to compare "Name_Land" with "$browser_sprache"....
Zelda-King, if you can do me favour, please replace the following line in file functions_statistik.php:
elseif(ereg("us", $sprache))$browser_sprache="UnitedStates";
with:
elseif(ereg("us", $sprache))$browser_sprache="United States";
and try if it works. The problem only occur on countries with 2 separated words like United States, United Kingdom etc.
Countries like Germany, Venezuela etc. are working
So I have to fix the complete 2 listings in functions_statistik.php for Browser language and countries by host :tired:
Wential
08-23-2004, 02:05 PM
United States listings are working now. Thanks!
Zelda-King
08-23-2004, 02:08 PM
I don't quite follow... well I understand the problem but there is no 'file' called statistik_laender so do you mean I should change the database table statistik_laender or alter the functions_statistik.php? I've changed the reference to the United States in functions_statistik.php. No show of America yet... I suppose I have to wait until some more Americans show up again.
Wential
08-23-2004, 02:41 PM
I just changed the line to this elseif(ereg("us", $sprache))$browser_sprache="United States"; and it started working.
Zelda-King
08-23-2004, 02:59 PM
The browser thing is working for me now. I applied the same change to the visitor countries section but I'm having no joy yet.
Onkel_Tom
08-23-2004, 03:08 PM
I don't quite follow... well I understand the problem but there is no 'file' called statistik_laender...
Sorry, only 3 hours sleep this night, it's the file "functions_statistik.php" not statistik_laender
Onkel_Tom
08-23-2004, 03:55 PM
Okay, here we go ...
attached you will find the new file functions_statistik.php which must be copied to /include Directory and overwriting the old one.
In this file all entries are fixed to be identified from statistics Hack as correct Browser language and origin country of visitor.
Zelda-King
08-23-2004, 04:13 PM
I realise you've been doing some real drudgery work on this but I'd better mention the new file has Bosnia andH erzegovina where it should have Bosnia and Herzegovina.
Well I still have a problem with certain countries showing on Visitor Countries... though the browser ones work fine, as I posted before. Weird. I know they use the same table.
Update: Ah.. United States has finally decided to show up. It doesn't seem to log everyone from there but it does initially work. Still nothing from the UK yet. :/
Zelda-King
08-23-2004, 05:56 PM
Nice update. The templates STATISTIC, statistik_polls and statistic_last_x_days lack my latest updates. They're all on this page. I'm not bothered because I fixed mine myself but if you update the templates again at some point could you please use those fixes? :D
Edit: Hmm, someone's registering under two tables. United States AND Unknown. The hits and percentage was going up at the same rate until another American came online.
Here, I updated the English in the statistic_referer template:
$statistic_header
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2"><div align="center"><strong>The latest $refrerer_limit Referers
and the $domain_limit Top Level Domains</strong></div></td>
</tr>
<tr>
<td valign="top" class="panelsurround"> <div class="panel">
<fieldset class="fieldset">
<legend><strong>The latest $refrerer_limit Referers</strong></legend>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="$stylevar[formspacer]">
<tr>
<td> </td>
</tr>
$statistic_referer_bit
</table>
</fieldset>
</div></td>
<td valign="top" class="panelsurround"> <div class="panel">
<fieldset class="fieldset">
<legend><strong>The $domain_limit Top Level Domains</strong></legend>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="$stylevar[formspacer]">
<tr>
<td> </td>
</tr>
$statistic_domain_bit
</table>
</fieldset>
</div></td>
</tr>
<tr>
<td colspan="2" valign="top" class="panelsurround"><div class="panel">
<fieldset class="fieldset">
<legend><strong>Referers summary</strong></legend>
<table width="auto" border="0">
<tr>
<td> </td>
</tr>
<tr>
<td class="alt2"><span class="highlight">$direkte_zugriffe</span>
visitors visited $vboptions[bbtitle] directly.</td>
</tr>
<tr>
<td class="alt1"><span class="highlight">$alle_referer</span>
visitors visited $vboptions[bbtitle] via a hyperlink (Referer).</td>
</tr>
<tr>
<td class="alt2"><span class="highlight">$Anzahl_der_Referer</span>
different hyperlinks (Referer) referred visitors to $vboptions[bbtitle].
</td>
</tr>
<tr>
<td class="alt1"><span class="highlight">$Anzahl_der_Kurz_Referer</span>
different referring domains referred visitors to $vboptions[bbtitle].
</td>
</tr>
</table>
</fieldset>
</div>
</td>
</tr>
<tr>
<td class="tcat" colspan="2"> </td>
</tr>
</table>
$statistic_footer
Zelda-King
08-23-2004, 09:50 PM
I just noticed the Europe table in statistik_laender is 'Europ' (with no 'e' on the end), so the 'Europe' references in functions_statistik.php won't work surely. Oh.. and the Ascension flag is missing from the flaggen folder.
Onkel_Tom
08-24-2004, 12:11 AM
Thanks Zelda-King for your translation work on the Templates !
I integrated the better english in my new zip File.
I checked the table inserts for "statistik_laender" and there is Europe with "e" in.
Also my test db has the Europe with "e" inside, so that must be a transfering or inserting error on your server.
We have both a wrong thinking about a translation in poll template. It's not "Ends" as category, it's Duration. This field doesn't show the days remaining, it shows only the configured duration of the poll ;)
What about the installation and Script executing problems ?
Does it work for all in the meanwhile ?
YamaMotoYama
08-24-2004, 12:11 AM
This is an awsome hack. I installed it with only one problem: I have several users that use an apostrophe in there username. This causes sql errors. Do you know of away around this?
Thanks in advance,
Y.
Smitty
08-24-2004, 12:17 AM
We have both a wrong thinking about a translation in poll template. It's not "Ends" as category, it's Duration.Fields:
Thread Title
Started by
Poll Question
Date
Poll Choices
Total Votes
Thread Open or Closed
Duration
Multiple Choice
'Open' Poll (Is poll open or closed)
Views
NOTE: Down at the bottom - Searches. People on my board asked why all the dots with bags. I put in this note: "General Search (Like 'Last 24 Hours' or 'Last Visit')" - http://Elsmar.com/Forums/statistik.php?do=polls
EDIT ADD: I did a few translations a bit back. I'm not going through the update until you folks finish because the stats are relative to me. That is, some of the language translations aren't important to me and the statistics it gives me are sufficient - Like 10 times what I had before and are presented well.
That said, I appreciate the fine tuning you folks are doing on this. I had a different program back in the vB 2.x days and really loved this when I saw it - this one is exceptional. I'm not a php programmer so it's all beyond me or I'l pitch in on that stuff.
Zelda-King
08-24-2004, 12:40 AM
I'll just change it to 'Europe' in my database then. Not a problem.
What about the installation and Script executing problems ?
Does it work for all in the meanwhile ?I've had no trouble with that, and I think it's good the templates are done first. It means we who've installed the hack can make template updates easier, plus if we want to add into every style it's easy to just change the default style to any otehr mother style then just rerun the templates bit. (It doesn't inject into all styles. Just the default one, but I like that because I have a Mother - Child system anyway.)
Onkel_Tom
08-24-2004, 12:44 AM
thanks Smitty for your positive feedback.
If you install the new files and Templates you get ride of the "(days)" in the duration row of the polls ;)
But you are right to wait until our fine tuning is done. It's only neccesary to download the new files for that people which have problem to get the scripts run.
@YamaMotoYama
I will check the apostrophe problem in username...
Zelda-King
08-24-2004, 01:31 AM
Here's an Ascension flag (United Kingdom Academic Institutions) in case anyone else is missing one.
oldfan
08-24-2004, 03:12 AM
We got a final version? If so, were can I download it :)
Thanks for all your HARD WORK Onkel_Tom!!
Zelda-King
08-24-2004, 10:38 AM
A very slight grammar change was needed in the statistic_spider template:
$statistic_header
<!-- Spider Anzeige Start -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2"><div align="center"><strong>Spiders and Searchrobots</strong></div></td>
</tr>
<tr>
<td valign="top" class="panelsurround">
<div class="panel">
<fieldset class="fieldset">
<legend><strong>Spiders</strong> ($wieviele_spider of known 93 different) <font color="#FF0000"> (Display dynamical)</font></legend>
<table width="95%" border="0" align="center">
<tr>
<td> </td>
</tr>
$statistic_bots_bit
</table>
</fieldset>
</div>
</td>
<td valign="top" class="panelsurround">
<div class="panel">
<fieldset class="fieldset">
<legend><strong>Searchrobots Summary</strong></legend>
<table width="95%" border="0" align="center">
<tr>
<td>$totalspider ($totalspider_in_prozent %) counted Spiders since statistics started.</td>
</tr>
</table>
</fieldset>
</div>
</td>
</tr>
<tr>
<td class="tcat" colspan="2"> </td>
</tr>
</table>
<!-- Spider Anzeige Ende -->
$statistic_footer
Onkel_Tom
08-24-2004, 10:41 AM
@ oldfan
You know, a final version will never be reached because of updates, additions and so on ;)
But I think we reached now a status that the hack must work on all installations without database errors and script errors, especially the apostrophe problem mentioned by YamaMotoYama. I have to check this but have no free time right now.
So I suggest for all people which have problems before with the hack to install it on your site and to help us with the bugfixing if still errors occur. Normally the installation and also the scripts must run fine now, but if nobody is testing it and waiting for a final version, we will get no final :D
@ Zelda-King
Thanks for the missing flag ;)
Onkel_Tom
08-24-2004, 02:20 PM
- apostrophe problem fixed ! ;), just replace statistik.php
- also a problem in template statistic_last_x_threads_bit where fix to show the thread itself and the profile of last poster, there was missing a "?" in the syntax of 3 href lines.
- Template statistic_spider translated from Zelda-King included
- missing flag for United Kingdom Academic Institutions included, thanks Zelda-King
YamaMotoYama
08-24-2004, 05:00 PM
Awsome, thank you so much.
Y.
- apostrophe problem fixed ! ;), just replace statistik.php
- also a problem in template statistic_last_x_threads_bit where fix to show the thread itself and the profile of last poster, there was missing a "?" in the syntax of 3 href lines.
- Template statistic_spider translated from Zelda-King included
- missing flag for United Kingdom Academic Institutions included, thanks Zelda-King
new zip file with all updates right now !
LAST UPDATE of Zip File: August, 24th 05:05pm
Smitty
08-24-2004, 05:14 PM
So I suggest for all people which have problems before with the hack to install it on your site and to help us with the bugfixing if still errors occur. Normally the installation and also the scripts must run fine now, but if nobody is testing it and waiting for a final version, we will get no final :D
There have not been any changes to the database, correct? To 'upgrade' all we have to do is change the templates and the main php file, correct? Or should we just run the install script?
Wential
08-24-2004, 06:02 PM
The install script still has problems in it but yes, you would just re-run the install script. Attached is my "fixed" install script, but it has been modified to put vb3_ before all the database commands as the prefix. If you use it, change vb3_ globally in the file to whatever you use as a database prefix first.
Zelda-King
08-24-2004, 06:20 PM
I just noticed a lot of the flagge_link entries in statistik_laender point to noflag.gif.
Onkel_Tom
08-24-2004, 08:08 PM
@ Wential
You are right !
If you include a variable from config.php like the table prefix you should also include this file in your installation script:
find in file install_statistik_english.php:
require_once('./global.php');
require_once('./includes/adminfunctions_template.php');
replace it with:
require_once('./global.php');
require_once('./includes/config.php');
require_once('./includes/adminfunctions_template.php');
and try to install again ;)
Sorry for that, my test installation has no table prefix so I'm not able to found out that we still have a problem there.
@Zelda-King
Ooooh, that's crazy because the german version of this hack has all flags in the database, but german countrynames :devious:
I will try a export from my german database table and try to replace the flags in the english version....
apokphp
08-24-2004, 08:33 PM
Tom, your install script results in this error:
Parse error: parse error, unexpected T_STRING in /home/apok/public_html/forums/admincp/install_statistik_english.php on line 340
I took out the prefix from Wentials, and it worked fine.
1 problem though. I installed this on another site before the latest English Translation install script was posted. How can I uninstall this hack on that server, so I can reinstall w/ the new English translation?
Wential
08-24-2004, 08:45 PM
Tom, your install script results in this error:
He's knows. See my post above for the install script fix attachment. If you don't use "vb3_" as your table prefix, change it globally throughout the file. I could create one for you, but I don't know what you use.
Onkel_Tom
08-24-2004, 09:07 PM
This is not the problem of apokphp !
This error from apokphp results of an not escaped character in that line, sh*t
This was from a translation fix by Zelda-King
apokphp for instance search in the file install_statistic_english.php for:
Show $postername1's
and replace that by Show $postername1\'s
this must be done for 5 instances with the name
$postername1
$postername2
$postername3
$postername4
$postername5
Just change your search to this names and change on each line the 's to \'s
@ Wential
Your table prefix fix is 3 postings before ;)
@Zelda-King
I'm working at the moment at the flag problem and find out that there are 3 countries mixed in the table. It's ID97 Indonesia, ID98 Ireland, ID99 Israel and ID100 Isle of Man. I will fix that also in the next release...
apokphp
08-24-2004, 09:13 PM
I have used Wentials, and removed the prefix. It works fine.
But as stated previously, I have a problem. I have installed this on 2 servers. One just now, using the latest English translation...works great.
The PROBLEM, is that I installed this a few weeks ago on a different server using the old English translation, which is needing a lot of help with proper translation. How can I uninstall it so I can reinstall w/ the updated install script?
apokphp
08-24-2004, 09:17 PM
Also, found another bug.
When you click Top 10 posters, it displays their homepage url. When you click on the homepage url, it gives you the "page not found" error.
What is displayed in the browser upon clicking it is: http://www.ez-company.net/forums/goto.php?goto=http://www.ez-company.net
See for yourself here: http://www.ez-company.net/forums/statistik.php
Zelda-King
08-24-2004, 09:44 PM
This is not the problem of apokphp !
This error from apokphp results of an not escaped character in that line, sh*t
This was from a translation fix by Zelda-KingHmm, under the circumstances, the original sentence "View the profile of" is acceptable. It's not actually bad grammar at all. Just, well... the done way is to say "view username's profile".
Onkel_Tom
08-24-2004, 10:37 PM
Hmm, under the circumstances, the original sentence "View the profile of" is acceptable. It's not actually bad grammar at all. Just, well... the done way is to say "view username's profile".
No problem Zelda, we can fix it with the escaped ' ;)
Also, found another bug.
When you click Top 10 posters, it displays their homepage url. When you click on the homepage url, it gives you the "page not found" error.
What is displayed in the browser upon clicking it is:
Thanks apokphp, I will check it
For the deinstallation there is no deinstall script right now, so you have to drop all database tables with statistik_* and also delete all templates with statistic_* and the main template STATISTC.
I requested a deinstallation script from PcFreak (the maker of this hack) a few days ago in the german vbulletin forum but get no answer right now...
Zelda-King
08-24-2004, 10:39 PM
I made a list of all the countries that have the 'noflag' problem. It's easy to spot them in install_english.php by doing a text search for noflag.gif. :D
Anguilla, Brunei Darussalam, Bouvet Island, Belarus, Belize, Cocos Keeling Islands, Dem. Rep. Congo, Cote d Ivoire, Cape Verde, Christmas Island, Wesetern Sahara, Falkland Islands, Faroe Islands, French Guiana, Gibraltar, Guadaloupe, Equatorial Guinea, South Georgia and South Sandwich Islands, Guam, Heard and McDonald Islands, Israel, Jersey, Saint Kitts and Nevis, Cayman Islands, Libya, Mali, Northern Mariana Islands, Martinique, Montserrat, Mauritius, New Caledonia, Norfolk, Island, Nepal, Niue, French Polynesia, Saint Pierre and Miquelon, Pitcairn, Qatar, Reunion, Saint Helena, Svalbard and Jan Mayen Islands, San Marino, Sao Tome and Principe, El Salvador, Turks and Caicos Islands, French Southern Territories, Tokelau, East Timor, US Minor Outlying Islands, Saint Vincent and the Grenadines, Virgin Islands British, Wallis and Futuna Islands, Samoa, Mayotte.
Now here's what I DON'T get: I fixed the El Salvador link in the database as a test fix and even though that entry now correctly points to elsalvador.gif, I still see the flag on the stats page as noflag.gif. Weird. :/
Onkel_Tom
08-24-2004, 11:42 PM
Did you reload the page with F5 ????
Try also CTRL + F5 to not use the Internet files cache
Onkel_Tom
08-24-2004, 11:56 PM
here is the dump of the fixed country table for phpmyadmin.
If you have phpmyadmin installed on your server, just open your database and click on SQL in top and then open the file countryfix_table.txt with your favorite editor, press CTRL + A to mark all and afterwards CTRL +C to copy all.
Go to your phpmyadmin window and press CTRL +V to paste all the data in the SQL field, now press OK to process the new entries.
hope this is fine now, but I have to check also each entry step by step with image name and name of country in compare with functions_statistik.php to be sure all entries are correct.
As Zelda mentioned the El Salvador flag has also a wrong image name in database....
Zelda-King
08-25-2004, 12:05 AM
Did you reload the page with F5 ????
Try also CTRL + F5 to not use the Internet files cacheI refreshed. I cleaned my cache. I closed/reopened my browser. Anyway I'll see how this table fix goes.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.