Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB3 Boardstatistic Version 2 Details »»
vB3 Boardstatistic Version 2
Version: 1.00, by PcFreak PcFreak is offline
Developer Last Online: Mar 2015 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 07-01-2004 Last Update: 08-28-2004 Installs: 184
DB Changes
 
No support by the author.

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....47&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 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.

  • 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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #202  
Old 08-23-2004, 01:26 AM
Onkel_Tom's Avatar
Onkel_Tom Onkel_Tom is offline
 
Join Date: Mar 2002
Location: Stuttgart- Germany
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
<?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 \>"

?>
Reply With Quote
  #203  
Old 08-23-2004, 01:37 AM
Onkel_Tom's Avatar
Onkel_Tom Onkel_Tom is offline
 
Join Date: Mar 2002
Location: Stuttgart- Germany
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'];
Reply With Quote
  #204  
Old 08-23-2004, 02:01 AM
Wential Wential is offline
 
Join Date: Aug 2004
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Onkel_Tom
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'];
Got it, thanks again!
Reply With Quote
  #205  
Old 08-23-2004, 09:07 AM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
<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.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.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='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=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">&nbsp;</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">&nbsp;</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">&nbsp;</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>&nbsp;</td>
    <td colspan="2" class="tcat"><div align="center">*Since $vboptions[bbtitle] is online</div></td>
</tr>

<tr>
    <td colspan="3">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</td>
</tr>

<tr>
    <td class="tcat" colspan="3"><div align="center">Absolute records</div></td>
</tr>

<tr>
	<td colspan="3">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</td>
</tr>

	</table>
	</fieldset>
	</div>
	</td>
	</tr>

<tr>
    <td class="tcat" colspan="2">&nbsp;</td>
</tr>

	</table>

$statistic_footer
Reply With Quote
  #206  
Old 08-23-2004, 10:20 AM
Onkel_Tom's Avatar
Onkel_Tom Onkel_Tom is offline
 
Join Date: Mar 2002
Location: Stuttgart- Germany
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zelda-King
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
Code:
$ip = $_SERVER['REMOTE_ADDR'];
   $fullhost = gethostbyaddr($ip);
and the Browserlanguage in the same file by:
Code:
$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

For the notation I will update missing ":" in the next update.
Reply With Quote
  #207  
Old 08-23-2004, 10:44 AM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #208  
Old 08-23-2004, 10:48 AM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #209  
Old 08-23-2004, 11:02 AM
Wential Wential is offline
 
Join Date: Aug 2004
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah after 10+ hours of stats collecting, I don't have any USA listings either. The UK one seems to be working though.
Reply With Quote
  #210  
Old 08-23-2004, 11:09 AM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now I have England showing under browser language, but not visitor host. My host is English.
Reply With Quote
  #211  
Old 08-23-2004, 12:16 PM
Onkel_Tom's Avatar
Onkel_Tom Onkel_Tom is offline
 
Join Date: Mar 2002
Location: Stuttgart- Germany
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you please check what is the output of this script on your browser wenn you upload a file with this content:

PHP Code:
<?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:
Code:
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09271 seconds
  • Memory Usage 2,377KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete