Log in

View Full Version : vb3 Statistic Version 1.01


PcFreak
06-06-2004, 10:00 PM
vb3 Statistic

Many people had ask me when i release this hack?

The problem is, my english is bad and its hard for me, write a installations text.
So everyone feel free to help me with the instructions.

A live demo you found:
http://at-lantis.de/statistik.php

OK. Now we come to the hack.

Please make a backup of your database, before installing this hack

This hack will show you an extra side with some Stats.

- show Summary stats
- show the Browser/Os System of the users
- show the countrys (countrys by Hoster and Countries by browserlanguage)
- show the last 10 threads
- show the last 20 top referers
- show spiders and crawlers
- Forum book of records (new)
- Statistic for the last ten days (new)

and many, many other interesting counts

Files to edit
Just one template

New files
4 new php files
6 templates
a lot (but very small) images

Database changes
six new tables

I will try to give support for this hack

BIG UPDATE ( to version 1.01)

Upload a new zipfile 11. June 2004
Reason
I have fix some bugs

The images Bhutan will show now. (If you install the old version you must change in table _statistik_laender under id 31 the flagge_link for Bhutan from images/statistik/flaggen/butan.gif to images/statistik/flaggen/bhutan.gif manuelly)
some templates are optimzed (Thank you obsidian and Zelda King)
I have modified the code for the last 10 threads (thanks go to Mystics from vBulletin Germany)
Now theads just show from the forum ids for all forums user is allowed to view.
fix some other little bugs

PcFreak

New

Statistic Version 2.0 is finish.
I will release the new version later this day.
I give no more support for the Version 1.01.

13th_Disciple
06-07-2004, 10:31 AM
holy crap!

/me clicks install!

Natch
06-07-2004, 10:41 AM
holy crap!

* 13th_Disciple clicks install!
I concur!

* Natch also click's install ...

Giveit2u43
06-07-2004, 10:56 AM
looks amazing... thanks a lot, this blows my own little stats hack out of the water...

paratek
06-07-2004, 11:58 AM
Amazing....installs no problem, hopefully someone will take on the translation to English

Logik
06-07-2004, 12:43 PM
When this is made to english, i will install

chet
06-07-2004, 12:59 PM
Ditto

Chet

PcFreak
06-07-2004, 01:12 PM
I will translate the templates and countrynames, later this day.
I promise it

Give me just some hours to do this.

Thank you PcFreak

Princeton
06-07-2004, 01:25 PM
Good job :up:

Can you get browser window (size) statistics?

Beermonster
06-07-2004, 01:25 PM
I have seen something simular to this on another forum, only not as much info, I will install this when it's in English, thanks :)

PcFreak
06-07-2004, 01:34 PM
Good job :up:

Can you get browser window (size) statistics?

And a plugin statistic, too. :rolleyes:

It?s possible. But just with java.
But the most user have java not activated.

PcFreak

Beermonster
06-07-2004, 01:35 PM
OK I couldn't wait :)

MindTrix
06-07-2004, 03:23 PM
I got some free time so i would give a translation a shot if you would like? Also the file is not in the first post to be downloaded, was that intentional until the english translation?

nexialys
06-07-2004, 04:35 PM
don't translate hardcoded, put everything in language phrases, so we can all share and translate to our own languages, please!

Natch
06-07-2004, 05:30 PM
Also it's a great hack, but you should code according to Web standards - those tempaltes will not validate :(

Intex
06-07-2004, 05:33 PM
Great hack PCFreak - I'll wait for the English version too.

Natch
06-07-2004, 05:42 PM
One other suggestion: is ther any chance that there can be an importer for the stats from Bane's vBStats ?

Beermonster
06-07-2004, 05:46 PM
I've converted the templates to English, and also the countries names in the php file (well most of them :) ) although the countries names aren't showing right on my forum, but that could be because it hasn't updated yet.

Thanks for the hack pcfreak, hope you don't mind me translating it, sometimes when you convert German to English it kinda looses it's meaning, hopefully I've got the meaning right :)

13th_Disciple
06-07-2004, 06:10 PM
Also it's a great hack, but you should code according to Web standards - those tempaltes will not validate :(
picky.. :p

get back to work on vBwar..

btw, just kidding on that web standards bit.. i don't want folks biting my head off for being like Microsoft.. :(

PcFreak
06-07-2004, 06:47 PM
I've converted the templates to English, and also the countries names in the php file (well most of them :) ) although the countries names aren't showing right on my forum, but that could be because it hasn't updated yet.

Thanks for the hack pcfreak, hope you don't mind me translating it, sometimes when you convert German to English it kinda looses it's meaning, hopefully I've got the meaning right :)

Thank you very mutch Beermonster
PcFreak

insanctus
06-07-2004, 06:51 PM
Looks interesting, I will click install and try her out.

bigreefer
06-07-2004, 07:09 PM
Sorry but i Have many SQL Errors.

one example

SQL-Befehl :

CREATE TABLE _statistik_zaehler(

Zaehler_f?r varchar( 80 ) NOT NULL default '',
Summe int( 10 ) NOT NULL default '0',
PRIMARY KEY ( Zaehler_f?r )
) TYPE = MYISAM COMMENT = 'Zaehler f?r Hits, Besucher, ect...'

MySQL meldet:


#1064 - 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 '?r varchar(80) NOT NULL default '',
Summe int(10) NOT NULL



don?t use ? ? ? :)

I have change it to "ue" but if I go to http//www.mydomain.de/statistik.php
It shwow me this


Datenbankfehler in vBulletin 3.0.1:

Ungueltige SQL-Abfrage:
UPDATE _statistik_zaehler
SET Summe = Summe+1
WHERE Zaehler_f?r = 'Anzahl_der_Besucher'

mysql error: Unknown column 'Zaehler_f?r' in 'where clause'

mysql error number: 1054

Datum: 07.06.2004 22:21:13
Skript: http://www.celebritymarkt.de/statistik.php
Referer:
Benutzername: Snatch
IP-Adresse: 213.23.58.187


I have change Zaehler_f?r to Zaehler_fuer in all files. No it runs and Big clicks install :)

bigreefer
06-07-2004, 07:32 PM
I have one more problem,

the statistik line is too long, is there a way to make this short ?
I must scroll very mutch, thas not so good :disappointed:

PcFreak
06-07-2004, 07:47 PM
@bigreefer

you have forgot this spell " ;" after ect...'; <-

CREATE TABLE _statistik_zaehler (
Zaehler_f?r varchar(80) NOT NULL default '',
Summe int(10) NOT NULL default '0',
PRIMARY KEY (Zaehler_f?r)
) TYPE=MyISAM COMMENT='Zaehler f?r Hits, Besucher, ect...';

The other problem.
Search in statistik.php for
$alle_avantars = number_format($alle_avantars['avantar']); //Alle Benutzer mit Avantar

replace it with
$alle_avantars = intval($alle_avantars['avantar']); //Alle Benutzer mit Avantar


and found
$alle_profilpics = number_format($alle_profilpics['profilpic']); //Alle Benutzer mit Profilbild


replace it with
$alle_profilpics = intval($alle_profilpics['profilpic']); //Alle Benutzer mit Profilbild


I hope this will help.

PcFreak

PcFreak
06-07-2004, 08:28 PM
Some database don´t work with Umlauds (Ä,Ö, Ü) ect.
I had change a little bit code and the querys witch has use umlauts (Zaehler_für is now Zaehler_fuer)
Sorry for this mistake (zip.file is update)

Logikos
06-07-2004, 08:32 PM
/me installs!!!

Thanks!!!

Vivi Ornitier
06-07-2004, 09:42 PM
where's sms.php????

Vivi Ornitier
06-07-2004, 09:44 PM
actually now that i look at the statistik.php code, those changes were already made but it is still stretching the tables.

PcFreak
06-07-2004, 10:25 PM
actually now that i look at the statistik.php code, those changes were already made but it is still stretching the tables.

Whitch table is stretching ?
I think i can hlep. :o

PcFreak

PS; Sorry, i mean statistik.php

templates911
06-08-2004, 12:23 AM
Is there any way this would work with vB 3.0? I havn't upgraded yet and dont plan to until more changes are made that what was in the last upgrade.

Vivi Ornitier
06-08-2004, 12:55 AM
templates911: I'm runnin it on vb3.0.0 and it's fine besides the table stretching

PcFreak: It's the same tables in those screenshots, it's the avatar tables.

http://forums.squareultima.com/statistik.php

PcFreak
06-08-2004, 01:46 AM
I have fix this problem
Udate the zip.file very soon
PcFreak

58sniper
06-08-2004, 02:37 AM
Okay, one problem I had was the referer links were fairly long, and were pushing the 'referer summary' box off the screen to the right. Here's how I fixed it:

in statistik.php, find

$referer_summe = $top_referer['Zaehler'];


and paste this underneath:
$referer_short = substr($referer_adresse,0,50);

and then, in the statistik_referer template, replace the entire thing with
<tr>
<td class="alt2" valign="top">
&nbsp;<a href="$referer_adresse">$referer_short</a>&nbsp;($referer_summe Visitor(s))
</td>
</tr>

Also, the font surrounding the copyright doesn't match everything else. In the statistik_hauptseite template, I changed


<font face="Times New Roman">? by PcFreak</font>

to

? by PcFreak

although I don't see the reason for the copyright to appear so many times...

see my example (http://www.efhs84.com/forum/statistik.php?) (I've cleaned up some other things as well - just to suite my taste)

one thing that I'm still working on is the location that's reported in online.php. Currently, if you're viewing statistik.php, online.php reports "LOCATION UNKNOWN" with a link to statistik.php.

PcFreak
06-08-2004, 02:58 AM
To show the statistic in online.php

Open the file includes/functions_online.php
find
default:
if ($permissions['wolpermissions'] & CANWHOSONLINEBAD)
{


above add
// ##### Statistik Start #####
case 'statistik':
$userinfo['action'] = 'View the statistic and think about Winston Churchill';
$userinfo['where'] = "<a href=\"statistik.php\">$vboptions[bbtitle] Statistik</a>";
break;
// ##### Statistik Ende #####


find
default:
$userinfo['activity'] = 'unknown';
}

return $userinfo;

above add
// ##### Statistik Start #####
case 'statistik.php':
$userinfo['activity'] = 'statistik';
break;
// ##### Statistik Ende #####


Thats all

@58sniper

Your Stats looks nice.
I have no problem with the copyright. One ?PcFreak on you side is enough. (make me a little bit proud :cool: )

Thank you for this mod

PcFreak

58sniper
06-08-2004, 03:29 AM
Thanks. I've made that change (among others), and it's working fine.

Great hack!

Also, something else that some might like:


in the navbar template (in some themes, this could be in the header template instead):

find

<if condition="$show['admincplink']"><a href="$admincpdir/index.php?$session[sessionurl]">$vbphrase[admin]</a> -</if>

and replace with


<if condition="$show['admincplink']"><a href="$admincpdir/index.php?$session[sessionurl]">$vbphrase[admin]</a> - <a href="$vboptions[bburl]/statistik.php?$session[sessionurl]">Statistics</a> -</if>

that will put a link to the statistics down at the bottom along with the link for your admincp. Just a thought.

gmarik
06-08-2004, 06:15 AM
Rather simple. Add most visitors @ hour ...

PcFreak
06-08-2004, 12:26 PM
Do not referer you own domain.
In statsitik_counter find
// Der User hat einen Link auf dem Board angeklickt, dann wird nichts eingetragen.
if (strpos(strtolower($DER_REFERER), 'at-lantis.de') === false)
{

Replace 'at-lantis.de' with your own domain. Example: 'my-domain.net'

So your own links are not showing in the top referer part.

PcFreak

Mijae
06-08-2004, 03:30 PM
A question before I install this...how many queries does this generate? On statistik.php? How many queries does it add to other forum parts, if any?

PcFreak
06-08-2004, 04:05 PM
A question before I install this...how many queries does this generate? On statistik.php? How many queries does it add to other forum parts, if any?

On my statistics site (i have some futures more) the hack (the statistik.php) generate 35 queries. But most of them just select counters.

Here is the time for my statistik.php

Page generated in 0,42463 seconds with 35 queries,
spending 0.0515158176422 doing MySQL queries and -0.0515158176422 doing PHP things.


There are no other queries to other forum parts

PcFreak

snyx
06-08-2004, 06:25 PM
I hope this will help.

PcFreak
anyway to dump the browser stats and add "max user online, top reffers, top viewed threads, top replied threads" plus other board based stats?

this was the ultimate stat page, anyway to mod one like this..
https://vborg.vbsupport.ru/showthread.php?t=41421

PcFreak
06-08-2004, 06:50 PM
I think about that.
Maybe in a future version.
I have a lot of ideas.
As will see which is still possible to integrate.

PcFreak

SaN-DeeP
06-08-2004, 07:59 PM
I think about that.
Maybe in a future version.
I have a lot of ideas.
As will see which is still possible to integrate.

PcFreakis it possible to display this stats only for few usergroups ?
like admins, mods, etc. and disable for rest.

if yes, please let me know how.
so that i can install it on my forums :)
i just downloaded the attachment
but hack is not in proper english yet :( can some change the language ?

Thnx.
Sandy..

bigreefer
06-08-2004, 08:18 PM
actually now that i look at the statistik.php code, those changes were already made but it is still stretching the tables.



User wihtout Avantar -1033 % (-31)
User with Avantar 1133 % (34)
User without Profilpic -166. % (-5)
User with Profilpic


look here http://www.celebritymarkt.de/statistik.php

And why the Stats are in English and German at the Same Page ?

Plz. Help

Intex
06-08-2004, 08:21 PM
PCFreak - great hack. Just installed the English version. Though you should know that there are numerous lines in your SQL files to run that don't contain #, so these are being interpreted as commands and the query fails to run. I've run them all individually and they run ok, but others with a bit less experience might get tripped up on this, so you may want to amend.

PcFreak
06-09-2004, 01:15 AM
@beermaster
Have you change the number_format to intval?

The best is, you replace the your old statistik.php with the new one in the zip file.

@intex
OK. My instruction iin the text file is misleadingly.
I will changes it. ;)

PcFreak



// i have upload a new zip.file
Read the first post

Zephanor
06-09-2004, 05:32 AM
Step 5
------------------
And now we will aktivate the statistik and count our user

add this code at last line in the" phpinclude_start template"

##################################
include("./statistik_counter.php");
##################################

None of my stats work except the first section with the Threads, users, PM, database stats and the like. Maybe I've not waited long enough for it to update but how long should I wait? It's been some time now.

Thanks for the help in advanced.

Nice hack and it looks quite cool! :)

bigreefer
06-09-2004, 05:57 AM
Sorry but ........

I updated with the new statistik.php but look at the Sektion "Avantar / Profilpics" and "The Top 20 Referer of our Visitors from Celebrity Markt" at my Forum.

http://www.celebritymarkt.de/statistik.php

Ps. is there anywhere a German Support ?

PcFreak
06-09-2004, 07:08 AM
None of my stats work except the first section with the Threads, users, PM, database stats and the like. Maybe I've not waited long enough for it to update but how long should I wait? It's been some time now.

Thanks for the help in advanced.

Nice hack and it looks quite cool! :)
Add this code

include("./statistik_counter.php");

without ####################

This is just a Break sign

sorry some german word?s

@bigreeferman
Auf meiner Homepage kann ich dir vielleicht versuchen weiterzuhelfen
Da kann, weil auch in deutsch, dir am besten helfen.

Klicke einfach auf meine Signatur

PcFreak

chet
06-09-2004, 10:29 AM
I have the same problem on my test box so I have not installed in on my live box as yet, I would be interested in you corrected one too

Chet

PcFreak
06-09-2004, 10:34 AM
@chet and Intex
Can i get the links to yours statisticsite please.

PcFreak

chet
06-09-2004, 11:25 AM
Mine is sitting on my LAN so can not be accessed from the outside, but looking at the link from the other user, mine is just the same

Chet

Intex
06-09-2004, 12:38 PM
English Template Update

PCFreak - I've updated the main template file (statistik_hauptseite), to correct all the grammatical, spelling and typos - I hope you don't mind. I've completely renamed some of the wording as well. Hope that's ok with you.

The only thing that remains is to change the wording of the countries / lauguage section, which are not in the templates themselves. PCFreak - perhaps you could do that (or somebody else)?

Feel free to include it in your main zip file :). P.S. What's a 'side call'?


@chet and Intex
Can i get the links to yours statisticsite please.

PcFreak

trackpads
06-09-2004, 01:23 PM
Awesome!!!! A++++

The Geek
06-09-2004, 01:34 PM
I think I found the problem with the elongated bars... the calculations are not correct when you use results from number_format. I changed those to intval and it calculates correctly now:

Here is the area I changed... hope I havent missed any:


//################################################## ################################################
//## Auswertgung einger Top Resulte START
//################################################## ################################################

$alle_beitraege = $DB_site->query_first("SELECT COUNT(*) as beitraege FROM " . TABLE_PREFIX . "post ");
$alle_beitraege = intval($alle_beitraege['beitraege']); //alle Beitr?ge

$alle_themen= $DB_site->query_first("SELECT COUNT( * ) as themen FROM " . TABLE_PREFIX . "thread ");
$alle_themen = intval($alle_themen['themen']); //alle Themen

$alle_user= $DB_site->query_first(" SELECT COUNT( * ) as benutzer FROM " . TABLE_PREFIX . "user ");
$alle_user = intval($alle_user['benutzer']); //alle Benutzer

$alle_pm= $DB_site->query_first("SELECT COUNT( * ) as pm FROM " . TABLE_PREFIX . "pm ");
$alle_pm = intval($alle_pm['pm']);

trackpads
06-09-2004, 02:18 PM
I think I found the problem with the elongated bars... the calculations are not correct when you use results from number_format. I changed those to intval and it calculates correctly now:

Here is the area I changed... hope I havent missed any:


//################################################## ################################################
//## Auswertgung einger Top Resulte START
//################################################## ################################################

$alle_beitraege = $DB_site->query_first("SELECT COUNT(*) as beitraege FROM " . TABLE_PREFIX . "post ");
$alle_beitraege = intval($alle_beitraege['beitraege']); //alle Beitr?ge

$alle_themen= $DB_site->query_first("SELECT COUNT( * ) as themen FROM " . TABLE_PREFIX . "thread ");
$alle_themen = intval($alle_themen['themen']); //alle Themen

$alle_user= $DB_site->query_first(" SELECT COUNT( * ) as benutzer FROM " . TABLE_PREFIX . "user ");
$alle_user = intval($alle_user['benutzer']); //alle Benutzer

$alle_pm= $DB_site->query_first("SELECT COUNT( * ) as pm FROM " . TABLE_PREFIX . "pm ");
$alle_pm = intval($alle_pm['pm']);

Works great! Thanks!

Also, thanks alot Intex for the template update!!

-Jason

http://www.trackpads.com/forum/statistik.php

Ming Keong
06-09-2004, 02:28 PM
Great hack! I've just installed it and found that it shows the statistics two times on the same page. See http://www.pdatrends.com/statistics.php and wait for it to fully load.

It seems to be happening for the other statistics pages installed by other members. eg. http://www.celebritymarkt.de/statistik.php

How can this be fixed?

The Geek
06-09-2004, 02:31 PM
Great hack! I've just installed it and found that it shows the statistics two times on the same page. See http://www.pdatrends.com/statistics.php and wait for it to fully load.

It seems to be happening for the other statistics pages installed by other members. eg. http://www.celebritymarkt.de/statistik.php

How can this be fixed?
use the updated template that intex put up about 4 posts back... the reason is that the template is the english... then the german for some reason.
Intex's updated template has only the english.

Intex
06-09-2004, 03:10 PM
Yup, I had the same problem and reported it as a problem, then two minutes later deleted my thread because I'd found that PCFreak had dupilcated the template.

The Engilsh template I submitted corrects everything as far as I can see and generally tidies things up. I changed the wording of some areas too, which I'm hoping PCFreak doesn't mind me doing.

We still need to change the country names. I'll do that later unless someone beats me to it :)


use the updated template that intex put up about 4 posts back... the reason is that the template is the english... then the german for some reason.
Intex's updated template has only the english.

Intex
06-09-2004, 03:10 PM
You're welcome :).



Works great! Thanks!

Also, thanks alot Intex for the template update!!

-Jason

http://www.trackpads.com/forum/statistik.php

Zephanor
06-09-2004, 03:35 PM
Thanks dude, I figured that out shortly after the post, I was up laaaate.

:p

Can anyone give me direction or a place I can find on how to make changes to my database itself? I want to translate the countries and domains into english as well.

And I spent a lot of time combing through and changing the main template and I could have just waited a day for someone else to do it, lol!

The Geek
06-09-2004, 03:49 PM
I think I found the problem with the elongated bars... the calculations are not correct when you use results from number_format. I changed those to intval and it calculates correctly now:

Here is the area I changed... hope I havent missed any:


//################################################## ################################################
//## Auswertgung einger Top Resulte START
//################################################## ################################################

$alle_beitraege = $DB_site->query_first("SELECT COUNT(*) as beitraege FROM " . TABLE_PREFIX . "post ");
$alle_beitraege = intval($alle_beitraege['beitraege']); //alle Beitr?ge

$alle_themen= $DB_site->query_first("SELECT COUNT( * ) as themen FROM " . TABLE_PREFIX . "thread ");
$alle_themen = intval($alle_themen['themen']); //alle Themen

$alle_user= $DB_site->query_first(" SELECT COUNT( * ) as benutzer FROM " . TABLE_PREFIX . "user ");
$alle_user = intval($alle_user['benutzer']); //alle Benutzer

$alle_pm= $DB_site->query_first("SELECT COUNT( * ) as pm FROM " . TABLE_PREFIX . "pm ");
$alle_pm = intval($alle_pm['pm']);

Here are the other updated templates for english:

template name: statistik_referer
-------------------------

<tr>
<td class="alt2" valign="top">
&nbsp;<a href="$referer_adresse">$referer_adresse
</a>&nbsp;($referer_summe Visitors)
</td>
</tr>


template name: statistik_letztenbeitraege
-------------------------

<tr>
<td> <small><a href="showthread.php?$session[sessionurl]t=$beitragsid">$beitragstitel</a>
<br>
by<b><font color="#FF0000"> $geschrieben_von</font></b> posted
<font color="#FF0000"><i>
$geschrieben_am</i></font> last reply from <b><font color="#663300">$letzte_antwort</font></b><font color="#996633"> </font>
posted
<font color="#663300"> <i>$letzte_antwort_am</i></font></small><font color="#996633"></td>
</tr></font>


I also translated most of the countries that I could be bothered with (damn there are a few!)... here is the english table create and inserts. I am sure there are a few countries that I missed (or maybe got wrong).

The Geek
06-09-2004, 03:53 PM
Just updated a couple more country names I noticed I missed (Network and Commercial) go figure ;)

BTW: havent mentioned it yet... but this is a kick ass hack.

PcFreak
06-09-2004, 04:03 PM
I will update the zip.file later this day.
I have build more statistics (see them on my statistic Site) http:at-lantis.de/statistik.php
Now the statsitik show
New are
- Statistic from the last 10 days
- Book of records
- Server and mysql infos

In the next update i hope every errors are eliminated
PcFreak

Click on install, so i can inform you about the new update.

Ming Keong
06-09-2004, 04:16 PM
use the updated template that intex put up about 4 posts back... the reason is that the template is the english... then the german for some reason.
Intex's updated template has only the english.

Thanks.. :)

PcFreak
06-09-2004, 04:18 PM
but this is a kick ass hack.

Is this good or bad?

The Geek
06-09-2004, 04:36 PM
Is this good or bad?
very good ;)

The Geek
06-09-2004, 04:54 PM
Updated the English transaltion of the countries again (found 3 or 4 I had missed). I think I should have about 95% of them now.
https://vborg.vbsupport.ru/showpost.php?p=521048&postcount=61

Intex
06-09-2004, 05:13 PM
the_nail_geek - nice work :). Amazing how quickly we can all get it done when a few people help out.

PCFreak - Yeah new stats look good. Let me know if you want any translation doing prior to release. I'm sure the_nail_geek will also help out too :).

PcFreak
06-09-2004, 05:34 PM
I udate a new zip.file in few minutes
The countrienames was translated. I have just upload the german functions_statistik.php and the german countrytables.
I have check my zipfile several times.
I think now it´s perfekt

PcFreak

Intex
06-09-2004, 05:52 PM
PCFreak - I've discovered a problem. In the country stats there are stats for United Kingdom as well as Great Britain. These are the same country :). What's funnier is the stats are different slightly too!

Could you investigate. Cheers.

PcFreak
06-09-2004, 06:03 PM
The reason is
England have two Domains
They have gb (Great Britan with Wales, Scottland, England) and uk (United Kingdom)
But they have the same flags.

PcFreak

Intex
06-09-2004, 06:06 PM
Hmm ok. I also note that I have other stats for other countries showing up, but my new website isn't live at the moment. Are the stats taken from any previous data as the website I'm working on has a populated vB 2.2.9 database.

Highlander
06-09-2004, 06:17 PM
can i get it in completely german?

Sooner95
06-09-2004, 06:29 PM
is this all set as far as English? I really wanna install this, just want to make sure its all set..thx

Sooner95
06-09-2004, 06:31 PM
nevermind, i read the entire thread, then re-read the first post.. Look slike its all set for English, will be installing, You hard work is appreciated!

chet
06-09-2004, 07:01 PM
Again your hard work is appreciated, I will wiat till all the bugs have gone before I install, I'm not expert when it comes to php and Vb so I will wait a while before I install, but I will install :)

Chet

Oxygen
06-09-2004, 07:27 PM
I enjoyed the vbStats where just the domain was present rather than the entire URL
to do this simply modify the statistik_counter.php
While this may not suite everyone it makes the appearance of the domain better for me.

Find:

$DER_REFERER = $_SERVER['HTTP_REFERER'];

replace with:

//$DER_REFERER = $_SERVER['HTTP_REFERER'];
$DER_REFERER = parse_url($_SERVER[HTTP_REFERER]);


and two sql instances
find:

WHERE Referer ='$DER_REFERER'

replace with

WHERE Referer ='$DER_REFERER[host]'

find:

VALUES('','$DER_REFERER','1')

replace with:

VALUES('','$DER_REFERER[host]','1')

PcFreak
06-09-2004, 07:41 PM
Again your hard work is appreciated, I will wiat till all the bugs have gone before I install, I'm not expert when it comes to php and Vb so I will wait a while before I install, but I will install :)

Chet

I think [hope] i have eliminating with the version 1.01 99% of all errors To install attempt simply it. You must for it none orginal vb php.files change.

@Oxygen

Thank you for this tipp.
Feel free to modify.

(but i think my solution is better :rolleyes: There are few reason, that i have not used host)

can i get it in completely german?
Ja, auf meinem Board (siehe Signatur) oder bei vBulletin germany :)
Besser auf meinem Board, weil ich da am schnellsten aktuallisiere

PcFreak

Zelda-King
06-09-2004, 08:56 PM
Hmm, the new stats (forum records, etc) don't show me the figures. Aren't there supposed to be some new queries to run for the new section? I don't see any new files in the sql directory. Also, my version of MySQL no longer shows.

URL: http://www.gamercrossfire.net/bb/statistik.php

I had upgraded from the old version of the hack. You may as well see my refined English while you're there. :)

(Oops, I was SURE I clicked install before. :/ Oh well, have now.)

PcFreak
06-09-2004, 10:20 PM
@Zelda-King

use the new statistik.php in the new zip.file. will fix your problem ;)

PcFreak

GamerJunk.net
06-10-2004, 01:47 AM
I keep getting a lot of errors when trying to run the queries

PcFreak
06-10-2004, 02:58 AM
What kind of errors?
Witch tables or inserts?
Sorry but this is not a real good information to give support

Pxfreak

Sam FT
06-10-2004, 03:14 AM
I am having one problem with this hack. The thread count at the top is two more threads than I really have compared to my forumhome page at the bottom. Here is the stat page http://www.full-throttle.us/forums/statistik.php and forumhome http://www.full-throttle.us/forums. I install the hack as instructed and I havn't modified anything dealing with the thread counter.

PcFreak
06-10-2004, 04:47 AM
Run this querie in your mysql:

SELECT COUNT( * ) FROM thread

Tell me what the count say.

And one © by PcFreak on your Statistik Side is not to mutch for this great hack I think.

PcFreak

Sam FT
06-10-2004, 04:53 AM
Run this querie in your mysql:

SELECT COUNT( * ) FROM thread

Tell me what the count say.

And one ? by PcFreak on your Statistik Side is not to mutch for this great hack I think.

PcFreak
Well the thread count I got back was the correct one on the stats page which was 126. Could the forumhome page stats at the bottom maybe not counting private threads and the statistic hack is counting the private threads?

PcFreak
06-10-2004, 05:01 AM
My Stats count every thread.
But is a good idea. I will change this in a future version.

PcFreak

Sam FT
06-10-2004, 05:04 AM
My Stats count every thread.
But is a good idea. I will change this in a future version.

PcFreak
After I asked the question I thought about it a little more. But you maybe want to have the stats only show non private threads, etc.

Sorry about the copyright. I am using the english updated in this thread and I don't like how that user had the copyright next to the title of every box. So what I am doing right now is putting a copyright at the bottom of the page just like what you had in the orginial one.

PcFreak
06-10-2004, 05:27 AM
There is a did not document funktion.

find in the statistik.php
//4 ist das interne Forum
$getbeitraege= $DB_site->query("
SELECT threadid, title, lastpost, postusername,lastposter,dateline
FROM " . TABLE_PREFIX . "thread
WHERE forumid NOT IN ('4')
ORDER BY lastpost
DESC LIMIT $limit
");


The number 4 in this part WHERE forumid NOT IN ('4') is my intern Forum.
Change this Number with the Forum ID?s you don?t want to show
for example WHERE forumid NOT IN ('4', '11', '22')

Sorry, but i have forgot this to explain in my instructions.

PcFreak

Sam FT
06-10-2004, 05:32 AM
There is a did not document funktion.

find in the statistik.php
//4 ist das interne Forum
$getbeitraege= $DB_site->query("
SELECT threadid, title, lastpost, postusername,lastposter,dateline
FROM " . TABLE_PREFIX . "thread
WHERE forumid NOT IN ('4')
ORDER BY lastpost
DESC LIMIT $limit
");


The number 4 in this part WHERE forumid NOT IN ('4') is my intern Forum.
Change this Number with the Forum ID?s you don?t want to show
for example WHERE forumid NOT IN ('4', '11', '22')

Sorry, but i have forgot this to explain in my instructions.

PcFreak Cool I will check it out...and I added a copyright at the bottom of my stats page for you. Because I do what you to get the credit you desire for this awesome hack.

Beermonster
06-10-2004, 05:38 AM
Everything was working perfect until I upgraded, now Top 20 Referers doesn't have anything nither does "book of records" and everyone either comes from Colombia or Ethiopia :rolleyes:

http://www.scale-models.co.uk/statistik.php

Chris-FH
06-10-2004, 06:21 AM
Hi Beermonster...

Are you sure, you have updated the statistik.php file?

All new features are not shown, try to upload the actual statistik.php file...

Just an idea...

C.

Zelda-King
06-10-2004, 06:34 AM
@Zelda-King

use the new statistik.php in the new zip.file. will fix your problem ;)

PcFreakAh, I did think of that. I was sure I'd uploaded it. It appears I hadn't though as that did fix it.

EDIT: See below post for completed English template...

Beermonster
06-10-2004, 07:15 AM
Hi Beermonster...

Are you sure, you have updated the statistik.php file?

All new features are not shown, try to upload the actual statistik.php file...

Just an idea...

C.


Hi Chris,

Yes I did, and I've just deleted it and reuploaded it and it's still the same :(

58sniper
06-10-2004, 01:30 PM
Okay, first, PCFreak - this is a great hack (I know, I've said that before)

I found, while updating to the latest version, that there are a LOT of issues with this code:

1. Some areas are in fieldsets, and others are in nested tables.
2. Some values are single quoted, and some are double quoted (width='100' and width="100").
3. Lots unclosed tags (mostly divs)
4. Lots of font tags that don't need to be there.
5. Some minor German issues that haven't been translated.
6. Some minor tag syntax.
7. Some minor table layout issues.
8. Some minor grammatical issues.

I've resolved all of these in my copy, and have a working version at
http://www.efhs84.com/forum/statistik.php

I'm still cleaning it up a little more (mainly to suit my taste), but if anyone is interested, I can post the cleaned up version here shortly.

Beermonster
06-10-2004, 01:42 PM
I'm still cleaning it up a little more (mainly to suit my taste), but if anyone is interested, I can post the cleaned up version here shortly.

Clean would be good :) do you think it would sort out the problems I seem to be having? (see a couple of posts back)

58sniper
06-10-2004, 01:45 PM
If you upgraded AFTER you installed my original hack (to make the referrers shorter), make sure you replace the statistik_referer template with the one that came with the newer version (I had the same problem).

esnecca
06-10-2004, 01:58 PM
Very interested, 58sniper. :)

trackpads
06-10-2004, 02:23 PM
Okay, first, PCFreak - this is a great hack (I know, I've said that before)

I found, while updating to the latest version, that there are a LOT of issues with this code:

1. Some areas are in fieldsets, and others are in nested tables.
2. Some values are single quoted, and some are double quoted (width='100' and width="100").
3. Lots unclosed tags (mostly divs)
4. Lots of font tags that don't need to be there.
5. Some minor German issues that haven't been translated.
6. Some minor tag syntax.
7. Some minor table layout issues.
8. Some minor grammatical issues.

I've resolved all of these in my copy, and have a working version at
http://www.efhs84.com/forum/statistik.php

I'm still cleaning it up a little more (mainly to suit my taste), but if anyone is interested, I can post the cleaned up version here shortly.
Yup, please post!

Zelda-King
06-10-2004, 02:45 PM
Here is the finished English template. Please use this in any updates (unless someone betters it even more, but this is near perfect... save some syntax I don't understand the usage of regarding 'New Threads').

Live Demo: http://www.gamercrossfire.net/bb/statistik.php

Other than that, the main thing that remains is to change the title of the page 'Statistik' to 'Statistics'.

58sniper
06-10-2004, 03:27 PM
Also, the flag icon for Bhutan (butan.gif) is missing from each of the distributions.

Fixed: Seems the table in the db points to butan.gif when it should point to bhutan.gif

esnecca
06-10-2004, 03:28 PM
Here is the finished English template. Please use this in any updates (unless someone betters it even more, but this is near perfect... save some syntax I don't understand the usage of regarding 'New Threads').

Live Demo: http://www.gamercrossfire.net/bb/statistik.php

Other than that, the main thing that remains is to change the title of the page 'Statistik' to 'Statistics'.

I also noticed down in the top 20 referers field it lists the number of "besucher" which babelfish tells me is guests.

esnecca
06-10-2004, 03:31 PM
Also, the flag icon for Butan (butan.gif) is missing from each of the distributions.

I'm not sure if this will work for you (Bhutan is spelled with an h in English), but it's the one from my smilie flag collection.

Zelda-King
06-10-2004, 03:32 PM
That bit isn't controlled by the template. Even if translated though, there'd be an issue regarding 'plural - singular'.

To be honest, I'd completely overlooked that. It's quite well camoflaged by long URLs.

obsidian
06-10-2004, 05:22 PM
I also noticed down in the top 20 referers field it lists the number of "besucher" which babelfish tells me is guests.

You can fix that one by changing the text in the statistik_referer template. I changed mine to visitor.

Intex
06-10-2004, 05:27 PM
58sniper - I'd be interested, could you post please.

Okay, first, PCFreak - this is a great hack (I know, I've said that before)

I found, while updating to the latest version, that there are a LOT of issues with this code:

1. Some areas are in fieldsets, and others are in nested tables.
2. Some values are single quoted, and some are double quoted (width='100' and width="100").
3. Lots unclosed tags (mostly divs)
4. Lots of font tags that don't need to be there.
5. Some minor German issues that haven't been translated.
6. Some minor tag syntax.
7. Some minor table layout issues.
8. Some minor grammatical issues.

I've resolved all of these in my copy, and have a working version at
http://www.efhs84.com/forum/statistik.php

I'm still cleaning it up a little more (mainly to suit my taste), but if anyone is interested, I can post the cleaned up version here shortly.

Sam FT
06-10-2004, 05:48 PM
There is a did not document funktion.

find in the statistik.php
//4 ist das interne Forum
$getbeitraege= $DB_site->query("
SELECT threadid, title, lastpost, postusername,lastposter,dateline
FROM " . TABLE_PREFIX . "thread
WHERE forumid NOT IN ('4')
ORDER BY lastpost
DESC LIMIT $limit
");


The number 4 in this part WHERE forumid NOT IN ('4') is my intern Forum.
Change this Number with the Forum ID?s you don?t want to show
for example WHERE forumid NOT IN ('4', '11', '22')

Sorry, but i have forgot this to explain in my instructions.

PcFreakWell that only works the "10 Last Topics ", but that has not affect on the Total Threads. It is still counting the private threads. But it isin't that big of a deal, at least I can know how the topics of private threads with this.

Beermonster
06-10-2004, 05:51 PM
I've sorted mine out had to reinstall everything works fine now, apart from I think it's still showing the wrong host countires :(

PcFreak
06-10-2004, 08:33 PM
Thank you for the status reports.
I will fix all errors and uplaod a new zipfile.

PcFreak

58sniper
06-10-2004, 11:02 PM
Okay - attached is my modified template as seen at http://www.efhs84.com/forum/statistik.php

Should you spot any problems or issues, please let me know, and I'll be happy to sort them out.

PcFreak
06-11-2004, 12:21 AM
I like you version, presently all statistics in fieldsets.
I will use this template for future versions.
Thank you very mutch.

Look my statistic page. I have added a lot news ;)

http//at-lantis.de/statistik.php
PcFreak

dethfire
06-11-2004, 05:28 AM
Fatal error: Call to a member function on a non-object in /home/coolteen/public_html/forum/includes/cron/statistikupdate.php on line 21

sanyo
06-11-2004, 06:25 AM
cOOl .. thank VERY MACH

PcFreak
06-11-2004, 06:29 AM
@dethfire
Have you made the _statistik_log Table before you made this crownjob?

PcFreak

JirQUEST
06-11-2004, 06:54 AM
here we go... just installed this today. works perfect :D

http://www.storiesmania.net/community/statistik.php

chet
06-11-2004, 07:01 AM
Looking good, have all the bugs been ironed out yet, if so has the zip file got all ther relevent files in it

Regards

Chet

trackpads
06-11-2004, 08:22 AM
Quick questions about one of the countries, mine says Columbia is my top visitor which cant be right, was there an error and it should be Commercial?

JirQUEST
06-11-2004, 08:22 AM
what's a side call btw? :confused:

Intex
06-11-2004, 08:23 AM
PcFreak - Is it best to completely remove the hack and re-install if I'd installed the original hack?

PcFreak
06-11-2004, 09:12 AM
@trackpads
Well, i check the functions_statistik.php.
We must change the Sequence in the code.

Here is the better version of the funktions_statistik.php

Countries with three or more spells in the countriecodes must stand in the begin of the routine.
I have done this mistake as i convert the countrienames to english.

@Intex
To install the new version completly new is the best way.

I fix the three spell bug in a new zip.file

PcFreak

trackpads
06-11-2004, 12:50 PM
@trackpads
Well, i check the functions_statistik.php.
We must change the Sequence in the code.

Here is the better version of the funktions_statistik.php

Countries with three or more spells in the countriecodes must stand in the begin of the routine.
I have done this mistake as i convert the countrienames to english.

@Intex
To install the new version completly new is the best way.


I fix the three spell bug in a new zip.file


PcFreak
Thanks alot!!!!

dethfire
06-11-2004, 02:34 PM
Fatal error: Call to a member function on a non-object in /home/coolteen/public_html/forum/includes/cron/statistikupdate.php on line 21

yeah I have the log table, the stats page seems to be updating even without running the con, what is the cron for?

skorzguy
06-11-2004, 07:08 PM
I have installed the stats software and it's awesome but I can't get it to function correctly. I followed the directions perfect but it won't show alot of the stats. Here is an example:

http://www.allstarchat.com/forums/statistik.php


The only part of the instructions I was not sure about it what to put here:

search

// Der User hat einen Link auf dem Board angeklickt, dann wird nichts eingetragen.
if (strpos(strtolower($DER_REFERER), 'at-lantis.de') === false)
{

replace 'at-lantis.de' with your own domain for example 'my-domain.net'


** Do I change it to: 'allstarchat.com', 'http://www.allstarchat.com','allstarchat.com/forums/,'


I am not sure, does it need to be set to where at my forum or stats page? I appreciate any help

monstergamer
06-11-2004, 07:18 PM
just got mine to look the way i wanted it :D
thanx http://www.monstergamer.net/vb/statistik.php

PcFreak
06-11-2004, 07:25 PM
Change ist to

if (strpos(strtolower($DER_REFERER), 'allstarchat.com') === false)
{

Thats all

PcFreak

58sniper
06-11-2004, 07:36 PM
just got mine to look the way i wanted it :D
thanx http://www.monstergamer.net/vb/statistik.php

Nice skin!

Intex
06-11-2004, 07:53 PM
OK, will do. Thx.

@trackpads
Well, i check the functions_statistik.php.
We must change the Sequence in the code.

Here is the better version of the funktions_statistik.php

Countries with three or more spells in the countriecodes must stand in the begin of the routine.
I have done this mistake as i convert the countrienames to english.

@Intex
To install the new version completly new is the best way.


I fix the three spell bug in a new zip.file


PcFreak

killervette
06-11-2004, 09:17 PM
My "The last 10 days" does not show anything?? Is there a reason? I know I have had 1 new member since the install.

Intex
06-11-2004, 09:31 PM
PcFreak - I've also got problems with nothing showing for the last 10 days, top 3 posters and other records. Any ideas? Does there have to be activity on the website and these stats only start from the point where the stats hack is installed?

Oldfart
06-11-2004, 09:37 PM
Ok I followed the instructions I believe and even went over them twice and all I get is a blank page: http://gamers-asylum.net/forums/statistik.php Has this happend to anyone else? I am at a loss as to what the problem can be. I wanted to install the SMS hack also but I don't know now.

Ok I found my problem. I omitted the .txt in the template name statistik_tagesstatistik.txt I thought it was a typo that he left it on but I see it was required. Nice hack btw!

"clicks install"

PcFreak
06-11-2004, 10:45 PM
PcFreak - I've also got problems with nothing showing for the last 10 days, top 3 posters and other records. Any ideas? Does there have to be activity on the website and these stats only start from the point where the stats hack is installed?
Have you create the new template "statistik_tagesstatistik"?

PcFreak

killervette
06-11-2004, 10:51 PM
yes, template name is "statistik_tagesstatistik.txt"

Contains

<tr>
<td align="center">$tagesdatum</td>
<td align="center">$neue_user</td>
<td align="center">$neue_themen</td>
<td align="center">$neue_beitraege</td>
<td align="center">$member_online</td>
</tr>

monstergamer
06-12-2004, 01:02 AM
Nice skin!
thanx man

BTW: i notice that USA is not up there for Visitor Countries Host or Visitor Countries Browser Language
i know most of my people come from the USA, but i see UNKNOWEN as the leader :?

PcFreak
06-12-2004, 03:59 AM
yes, template name is "statistik_tagesstatistik.txt"

Contains

<tr>
<td align="center">$tagesdatum</td>
<td align="center">$neue_user</td>
<td align="center">$neue_themen</td>
<td align="center">$neue_beitraege</td>
<td align="center">$member_online</td>
</tr>

Please look
Is this code
$statistik_tagesstatistik
in your statistik_hauptseite template?

I think you dont use the new templates in the zip.file

PcFreak

tteal
06-12-2004, 04:26 AM
This is a GREAT mod thank you for providing!

Here are a few small things that are not working for me and I thought that I'd report them:

- The last 10 days <----- not inserting into database, therefore, not showing anything. I've verified that nothing is being inserted into the database via phpmyadmin

- Browser / OS - Statistics <---- not inserting into database, therefore, not showing anything. I've verified that nothing is being inserted into the database via phpmyadmin

- Visitor Countries <----- Visitor Countries Browser Language (Represented Dynamically) <--- that is all it says and is blank.

- Visitor Countries Host (Represented Dynamically <---- that is all it says and is blank.

- Searchrobots <----- Again, not inserting. Here is what it says: 0 (%) counted spiders since statistics started.

We are sometimes visited by these search machines (NOT INSERTING?)
Googlebot % (0)
MSNbot % (0)
Inktomi % (0)
Lycos % (0)
Yahoo % (0)
Webcrawler % (0)
Infoseek % (0)
W3C Val.Service % (0)
Other % (0)


- Top 20 referers: Not showing anything, zero zilch :(

- Referer Summaryv isitors visited xxxxx directly.
0 visitors were referred here by another site (Referer).
There are about -1 referring sites (Referer) through which visitors found xxxxxx since statistics started. <----- again, not inserting.

Any help that could be provided would be wonderful.

Thank you.

PcFreak
06-12-2004, 06:23 AM
Have you edit the phpinclude_start template and aktivate the counter there?

I think you have forgot make this step.

PcFreak

tteal
06-12-2004, 06:27 AM
Have you edit the phpinclude_start template and aktivate the counter there?

I think you have forgot make this step.

PcFreak

PcFreak,
I had something else in the phpinclude_start template that was preventing it from inserting and now it's working with one exception:

The top 20 referers is not working and not showing anything although I went from one link on another domain/site to mine and it didn't show up.

Here is the summary:

2 visitors visited xxxx directly.
0 visitors were referred here by another site (Referer).
There are about -1 referring sites (Referer) through which visitors found xxxx since statistics started.

Thanks for the help by the way!

monstergamer
06-12-2004, 06:42 AM
i notice that USA is not up there for Visitor Countries Host or Visitor Countries Browser Language
i know most of my people come from the USA, but i see UNKNOWEN as the leader :?any word on this?

PcFreak
06-12-2004, 09:04 AM
@monstergamer
The Browser Language works correct.
Hoster i don?t now.
I have never seen a american user with host "us".
The most american use "net" ore "com" as host.
I have check this with a another tracking soft.

@tteal
Patience ;)



PcFreak

Intex
06-12-2004, 09:07 AM
PcFreak - Yes I have. The page shows the relevant text, there's just no statistics there.



Have you create the new template "statistik_tagesstatistik"?

PcFreak

Intex
06-12-2004, 09:08 AM
Here's a screenshot. As you can see the info is there, but no stats:

PcFreak
06-12-2004, 09:16 AM
Have you replace the old statistik.php, with the newer version (in the zip.file)
This stats only works with the version 1.01.

PcFreak

Intex
06-12-2004, 09:21 AM
Ahhh - you pointed me in the right direction. I actually renamed your original file 'statistik.php' to an English equivalent 'statistics.php' and didn't update my filename :D.

So it's all working perfectly now thanks :).

Intex
06-12-2004, 09:33 AM
PcFreak - I'm just looking at your website and your latest version of the statistics. I prefer the layout of this one, particularly as I have a narrow website. Are you going to be releasing that one shortly (I notice it also has some new stats) ?

PcFreak
06-12-2004, 11:19 AM
The next version of the statistik get an other design. Not all statisics will show on one side.
The statistic get a nav bar and is full W3C HTML validat.

Of course. Take a look (but is not finish) here: http://at-lantis.de/test.php

I will release this version soon.

PcFreak

Intex
06-12-2004, 11:21 AM
Ahh yeah, that's a much better idea. Looking forward to it :). Let me know if you want any testers and English conversion.

tteal
06-12-2004, 11:18 PM
PcFreak,
UPDATE: I'm now getting the referring links and everything is populating fine now (not sure why it took so long but it's working). One more question while I'm thinking of it.

On the "top 20" referring links it is truncating the actual link and not just how it's displayed. Is it possibly to only show "xx" characters of the link but make it so that when it's click that the link is not truncated?

Thanks again for all of your hard work!

Intex
06-13-2004, 08:49 AM
PcFreak - any idea on when you might release the latest version with the new design?


The next version of the statistik get an other design. Not all statisics will show on one side.
The statistic get a nav bar and is full W3C HTML validat.

Of course. Take a look (but is not finish) here: http://at-lantis.de/test.php

I will release this version soon.

PcFreak

PcFreak
06-13-2004, 08:57 AM
@tteal
Will done this in the next version.

@intex
As soon as possible.
But give me few days. ;)

PcFreak

redlabour
06-13-2004, 10:58 AM
Love this Hack - thanx !

Wachtmeister
06-13-2004, 06:11 PM
This does not run for me. The problem is, that the sql queries insert tabels without prefix and later, the counter uses the prefix.

My VB runs with "vb3_" prefix for the tables into the database. Is there something to fix this? Maybe someone had this problem before. I didn't wanted to read all posts here :(

Regards, Wachtmeister

Wachtmeister
06-13-2004, 06:22 PM
I've renamed the tables to fix the table-prefix problem.

Now, when running http://........../statistik.php i get the following:


Database error in vBulletin 3.0.1:

Invalid SQL:
SELECT threadid, title, lastpost, postusername,lastposter,dateline
FROM vb3_thread
WHERE forumid IN(1, 2, 7, 67, 9, 69, 70, 65, 66, 3, 4, 5, 6, 71, 73, 76, 77, 78, 79, 80, 72, 64, 41, 44, 57, 60, 61, 43, 62, 63, 40, 59, 45, 46, 47, 56, 53, 52, 55, 54, 58, 74, 75, 42, 48, 49, 50, 51, 12, 13, 14)
AND thread.open <> 10
AND thread.visible = '1'
ORDER BY lastpost
DESC LIMIT 10

mysql error: Unknown table 'thread' in where clause

mysql error number: 1109

Date: Sunday 13th of June 2004 09:18:01 PM
Script: http://www.webgurus.de/forum/statistik.php
Referer:
Username:
IP Address: 217.231.170.193

Can someone help?

RapCheck
06-13-2004, 06:31 PM
I've been waiting since vb3 came out for this hack, users always ask for the stats back!

But, I wish wish wish it was 100% english. I just dont feel comfortable with this one yet :(

Wachtmeister
06-13-2004, 06:34 PM
I'll do the translation, but i want to get it running first....

Doesn't this hack work with vb's using table prefix?

killervette
06-13-2004, 06:34 PM
The last 10 days is still not showing up for me...anyone else??

Mijae
06-17-2004, 02:15 AM
I'd install this, but I checked and some parts of the template arent working properly :D

Natch
06-17-2004, 02:57 AM
I've renamed the tables to fix the table-prefix problem.

Now, when running http://........../statistik.php i get the following:


Database error in vBulletin 3.0.1:

Invalid SQL:
SELECT threadid, title, lastpost, postusername,lastposter,dateline
FROM vb3_thread
WHERE forumid IN(1, 2, 7, 67, 9, 69, 70, 65, 66, 3, 4, 5, 6, 71, 73, 76, 77, 78, 79, 80, 72, 64, 41, 44, 57, 60, 61, 43, 62, 63, 40, 59, 45, 46, 47, 56, 53, 52, 55, 54, 58, 74, 75, 42, 48, 49, 50, 51, 12, 13, 14)
AND thread.open <> 10
AND thread.visible = '1'
ORDER BY lastpost
DESC LIMIT 10

mysql error: Unknown table 'thread' in where clause

mysql error number: 1109

Date: Sunday 13th of June 2004 09:18:01 PM
Script: http://www.webgurus.de/forum/statistik.php
Referer:
Username:
IP Address: 217.231.170.193

Can someone help?
With your renamed tables, you need to make it FROM vb3_thread as thread - then your script will work as normal ...

PcFreak
06-17-2004, 12:10 PM
@all
I am now finished with the statistics version 1.5
The new version is full XHTML coded

https://vborg.vbsupport.ru/external/2010/10/30.jpg

All other code is optimized and i have fix some bugs.
I have mad an another Statistic Module for the Arcade Hack
Top Level Domains now showing.
The statistic have a navigationbar now.

At moment i don?t release this hack, because the hack is in testing mode.

But feel free to check the new statistic here:

http://at-lantis.de/statistik.php

Improvement suggestions and criticism are welcome

PcFreak

Intex
06-17-2004, 06:06 PM
PCFreak - Looks great. Let me know if you want someone to test it on a separate system.



@all
I am now finished with the statistics version 1.5
The new version is full XHTML coded

https://vborg.vbsupport.ru/external/2010/10/30.jpg

All other code is optimized and i have fix some bugs.
I have mad an another Statistic Module for the Arcade Hack
Top Level Domains now showing.
The statistic have a navigationbar now.

At moment i don?t release this hack, because the hack is in testing mode.

But feel free to check the new statistic here:

http://at-lantis.de/statistik.php

Improvement suggestions and criticism are welcome

PcFreak

SaN-DeeP
06-17-2004, 11:30 PM
weird but i am getting this error:

Database error in vBulletin 3.0.0:
Invalid SQL:
SELECT threadid, title, lastpost, postusername,lastposter,dateline
FROM vb3_thread
WHERE forumid IN(3, 4, 44, 5, 45, 6, 14, 52, 11, 10, 46, 13, 30, 33, 43, 34, 32, 31, 37, 38, 40, 42, 39, 41, 15, 16, 17, 18, 19, 7, 36, 21, 24, 35, 20, 22, 47, 48, 53, 49, 50, 51, 25, 26, 27)
AND thread.open <> 10
AND thread.visible = '1'
ORDER BY lastpost
DESC LIMIT 10

mysql error: Unknown table 'thread' in where clause
mysql error number: 1109



changing few lines make it work:

$getbeitraege= $DB_site->query("
SELECT threadid, title, lastpost, postusername,lastposter,dateline
FROM " . TABLE_PREFIX . "thread
WHERE forumid IN(" . implode(', ', $forumids) . ")
AND vb3_thread.open <> 10
AND vb3_thread.visible = '1'
ORDER BY lastpost
DESC LIMIT $limit
");

esnecca
06-18-2004, 12:26 AM
It looks beautiful, PcFreak. You might consider removing the word statistic/s from every category heading except "General Statistics". You already have two titles without the word statistic/s in them, and I think it might read a little more smoothly. Just an idea...:)

Thank you for such a great hack.

Natch
06-18-2004, 06:02 AM
weird but i am getting this error:

Database error in vBulletin 3.0.0:
Invalid SQL:
SELECT threadid, title, lastpost, postusername,lastposter,dateline
FROM vb3_thread
WHERE forumid IN(3, 4, 44, 5, 45, 6, 14, 52, 11, 10, 46, 13, 30, 33, 43, 34, 32, 31, 37, 38, 40, 42, 39, 41, 15, 16, 17, 18, 19, 7, 36, 21, 24, 35, 20, 22, 47, 48, 53, 49, 50, 51, 25, 26, 27)
AND thread.open <> 10
AND thread.visible = '1'
ORDER BY lastpost
DESC LIMIT 10

mysql error: Unknown table 'thread' in where clause
mysql error number: 1109



changing few lines make it work:

$getbeitraege= $DB_site->query("
SELECT threadid, title, lastpost, postusername,lastposter,dateline
FROM " . TABLE_PREFIX . "thread
WHERE forumid IN(" . implode(', ', $forumids) . ")
AND vb3_thread.open <> 10
AND vb3_thread.visible = '1'
ORDER BY lastpost
DESC LIMIT $limit
");
You would be better off doingFROM " . TABLE_PREFIX . "thread as thread which would make the ... thread.open ... thread.visible ... work regardless of the PREFIX value

Eagle Creek
06-19-2004, 02:50 PM
Supercool!
*hitting download link*

Eagle Creek
06-19-2004, 02:59 PM
HELP!


Systeem Bericht
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: 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 ';


INSERT INTO _statistik_browser_os VALUES ('total','hits

Vivi Ornitier
06-19-2004, 11:32 PM
I installed the hack but it looks nothing like the one you have on your demo. I don't see the sidebar to go to all those side things either. Besides htat it's great but i like the x days part and the other small parts. help!!

http://forums.squareultima.com/statistik.php

Vivi Ornitier
06-19-2004, 11:35 PM
oh wait nm, lol. didn't even read the entire first post, hope you can release all those goodies soon!

Romeos Tune
06-21-2004, 10:26 PM
I seem to be having a problem with all the stats displaying. The countries, browsers, and bots aren't showing up. Have a look at: http://stormchat.com/statistik.php

Anyone know what the reason might be? Thanks! :)

marcel-ea
06-26-2004, 02:17 AM
if have the same problem no links no countries

Intex
06-26-2004, 09:21 AM
PCFreak - any ideas on the 1.5 release?

Romeos Tune
06-26-2004, 02:43 PM
Anyone?

Sam FT
06-28-2004, 05:36 AM
I found a problem with how you count your threads in this hack. The thread counter is counting all the threads included "soft deleted" thread and redirects thread as well. The vBulletin Statisics at the bottom of the forum home page is only counting real threads. So you may want to update your thread count code because your thread counter isn't counting right.

Trigunflame
06-28-2004, 07:30 PM
PcFreak, you could stand to learn the value of 'switch', the amount of if's you use for a single comparison is enormous.

PcFreak
06-28-2004, 09:33 PM
PCFreak - any ideas on the 1.5 release?

I do not a release a 1.5 Version. :ermm:

But... I am now finished with the version 2.0
At the moment i am coding the install script and convert all the templates to english.

The code (all together) is more then 5000- 6000 lines.
There are 35 templates. Many new statistics. Better spider detection (more then 90 different spiders will detect now). The images for the flags now completely (254 different images).
The statistic is completely adjustable over the Admincp and much more is inserted.

I will release soon. Perhaps, in the end of this week.

PcFreak

Sir_Yaro
06-29-2004, 12:26 AM
I seem to be having a problem with all the stats displaying. The countries, browsers, and bots aren't showing up. Have a look at: http://stormchat.com/statistik.php

Anyone know what the reason might be? Thanks! :)

I have the same problem - no Browsers, OS & Countries :disappointed: :disappointed:
http://www.justget.org/statistik.php?

And other thing:

In statisic_system_install.txt :

Step 1
[...]
- statistik_referer
- statistik_tagesstatistik.txt

You mean 'statistik_tagesstatistik' of course?

Natch
06-29-2004, 12:54 AM
I do not a release a 1.5 Version. :ermm:

But... I am now finished with the version 2.0
At the moment i am coding the install script and convert all the templates to english.

The code (all together) is more then 5000- 6000 lines.
There are 35 templates. Many new statistics. Better spider detection (more then 90 different spiders will detect now). The images for the flags now completely (254 different images).
The statistic is completely adjustable over the Admincp and much more is inserted.

I will release soon. Perhaps, in the end of this week.

PcFreak
Can I suggest that you might be able to refer to the Spider list in the vB Options to get your spider user agents and descriptive names ?

Smitty
07-07-2004, 08:53 AM
I am now finished with the version 2.0
At the moment i am coding the install script and convert all the templates to english.

The code (all together) is more then 5000- 6000 lines.
There are 35 templates. Many new statistics. Better spider detection (more then 90 different spiders will detect now). The images for the flags now completely (254 different images).
The statistic is completely adjustable over the Admincp and much more is inserted.

I will release soon. Perhaps, in the end of this week.
I really like this. I would like to install, but will wait for version 2.0. Any idea when you will be releasing version 2.0?

PcFreak
07-07-2004, 02:50 PM
I really like this. I would like to install, but will wait for version 2.0. Any idea when you will be releasing version 2.0?

Version 2.0 is released.

You can find this version here: https://vborg.vbsupport.ru/showthread.php?t=66783

PcFreak

Smitty
07-07-2004, 08:21 PM
Version 2.0 is released.

You can find this version here: https://vborg.vbsupport.ru/showthread.php?t=66783

PcFreak
Excellent! Thank you so much! I really like this. I'll do a test install on my test board and let you kow how it goes.

Again, my thanks!

Smitty
07-07-2004, 08:59 PM
Step 2)
=================================================
Create two new Phrases in the Phrasegroup:
Control center messages (I hope this is the english name for this group)
##########################
I assume what I see as Control Panel (as opposed to Control Center) groups in the phrase groups. They include:
Control Panel Global
Control Panel Home Pages
Control Panel User Management
Control Panel Options
Control Panel User Groups
Control Panel User Ranks
Control Panel Help Text
Control Panel Stop Message

I don't see one with 'Messages in it other than the Control Panel Stop Message phrase group. Could that be the group you're referring to to make the two new phrases in?

S@NL - BlackBik
07-16-2004, 05:27 PM
Thanks! I've installed v2.0 on our board and it works fine :)

Just one thing, maybe for a future release.
We've translated our board completely in Dutch. But the stats remain to be in English. Could you consider to add phrases for the text that is in the templates? That way, translation will be easy for everybody :)

*BTW have hit INSTALL * :D

Smitty
07-16-2004, 05:30 PM
See https://vborg.vbsupport.ru/showthread.php?t=66783

Wachtmeister
07-16-2004, 05:59 PM
This script does not work, if you use table prefixes for your vb3 :(

S@NL - BlackBik
07-16-2004, 09:21 PM
See https://vborg.vbsupport.ru/showthread.php?t=66783
D*mn, posted in the wrong thread :D

I have, however, installed the v2.0. I wil read that thread.
Thanks Smitty :)

Zelda-King
08-20-2004, 03:47 PM
I always wondered why the USA never shows for me in spite of a large percentage of my board comprising of US residents.

http://www.gamercrossfire.net/bb/statistik.php?

(I'm aware this isn't the latest version of the hack.)

Eagle Creek
12-04-2004, 11:12 PM
Also it's a great hack, but you should code according to Web standards - those tempaltes will not validate :(
Going to install!

Eagle Creek
12-04-2004, 11:18 PM
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: 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 ';

INSERT INTO _statistik_browser_os VALUES ('total','hits

======

when trying to execute the first querie..

Sia Bani
02-19-2005, 01:09 AM
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: 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 ';


INSERT INTO _statistik_browser_os VALUES ('total','hits

======

when trying to execute the first querie..

bump, same problem