![]() |
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 Code:
|
Don't forget to change also the same line in file statistic_counter.php at line 26 !!!
It should read in your case as: Code:
$browserstamp = $_SERVER['HTTP_USER_AGENT']; |
Quote:
|
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: Code:
$statistic_header |
Quote:
Countries are identified by the following lines in function_statistik.php Code:
$ip = $_SERVER['REMOTE_ADDR']; Code:
$sprache = $_SERVER['HTTP_ACCEPT_LANGUAGE']; 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. |
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.
|
Incidentally I'm using PHP 4.3.8 / MySQL 4.0.20-standard
Here's my URL: http://www.gamercrossfire.net/bb/sta...p?do=countries |
Yeah after 10+ hours of stats collecting, I don't have any USA listings either. The UK one seems to be working though.
|
Now I have England showing under browser language, but not visitor host. My host is English.
|
Can you please check what is the output of this script on your browser wenn you upload a file with this content:
PHP Code:
Code:
IP Adress: 80.131.xxx.xxx |
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).
Code:
$statistic_header |
Quote:
Code:
IP Adress: xxx.xx.xx.xx |
what happens if your are changing the following line in file functions_statistik.php
search for: Code:
elseif(ereg("us", $sprache))$browser_sprache="UnitedStates"; Code:
elseif(ereg("en-us", $sprache))$browser_sprache="UnitedStates"; |
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/sta...p?do=countries
(Note: STATISTIC template updated in above post.) Just a couple of things in some other templates I ironed out; statistic_polls: Code:
$statistic_header Code:
$statistic_header |
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 Code:
$DB_site->query(" Zelda-King, if you can do me favour, please replace the following line in file functions_statistik.php: Code:
elseif(ereg("us", $sprache))$browser_sprache="UnitedStates"; Code:
elseif(ereg("us", $sprache))$browser_sprache="United States"; 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: |
United States listings are working now. Thanks!
|
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.
|
I just changed the line to this elseif(ereg("us", $sprache))$browser_sprache="United States"; and it started working.
|
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.
|
Quote:
|
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. |
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. :/ |
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: Code:
$statistic_header |
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.
|
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 ? |
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. |
Quote:
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. |
I'll just change it to 'Europe' in my database then. Not a problem.
Quote:
|
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... |
Here's an Ascension flag (United Kingdom Academic Institutions) in case anyone else is missing one.
|
We got a final version? If so, were can I download it :)
Thanks for all your HARD WORK Onkel_Tom!! |
A very slight grammar change was needed in the statistic_spider template:
Code:
$statistic_header |
@ 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 ;) |
- 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 |
Awsome, thank you so much.
Y. Quote:
|
Quote:
|
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.
|
I just noticed a lot of the flagge_link entries in statistik_laender point to noflag.gif.
|
@ 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: Code:
require_once('./global.php'); Code:
require_once('./global.php'); 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.... |
Tom, your install script results in this error:
Quote:
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? |
All times are GMT. The time now is 05:31 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|