vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Boardstatistic Version 2 (https://vborg.vbsupport.ru/showthread.php?t=66783)

Zelda-King 08-23-2004 01:00 PM

I'm on it. In the meantime here's a new English STATISTIC template for you based on the english2.zip file (last update before this post).

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+',scr  ollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,re  sizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<tr>
    <td class="tcat" colspan="2"><div align="center"><strong>Statistic Overview</strong></div></td>
</tr>

<tr>
        <td class="panelsurround">
        <div class="panel">
        <fieldset class="fieldset">
        <legend><strong>Topics/Threads/Users/Hits</strong></legend>
        <table width="95%" border="0" align="center" cellpadding="0" cellspacing="$stylevar[formspacer]">

<tr>
    <td colspan="2">&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>Website Hits:</td>
    <td>$Seitenaufrufe*</td>
</tr>
<tr>
    <td class="tcat" colspan="2"><div align="center">* - Since Statistics
                started on $statistikaktiv</div></td>
</tr>

<tr>
  <td colspan="2">&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) have posted*</td>
  <td class="alt2" width="70%"> <img src="images/statistik/bar5.gif" alt="Users which have posted on this board" width="$aktive_user_bar" height="10" border="0" /></td>
</tr>

<tr>
    <td>Inactive Users: </td>
    <td>$unaktive_user_prozent % ($alle_unaktiven_user) have never posted*</td>
    <td> <img src="images/statistik/bar10.gif" alt="Users which never posted on this board" width="$unaktive_user_bar" height="10" border="0" /></td>
</tr>

<tr>
    <td>&nbsp;</td>
    <td colspan="2" class="tcat"><div align="center">*Since $vboptions[bbtitle] came 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="Visits from registered Members in the last 30 days" width="$bar_aktiv_user1" height="10" border="0" />
    $aktiven_user1_prozent % ($aktiven_user1)</td>
</tr>

<tr>
  <td>The last 14 days:</td>
  <td colspan="2"> <img src="images/statistik/bar2.gif" alt="Visits from registered Members in the last 14 days" width="$bar_aktiv_user2" height="10" border="0" />
    $aktiven_user2_prozent %($aktiven_user2)</td>
</tr>

<tr>
  <td class="alt2">The last 7 days:</td>
  <td class="alt2"colspan="2">
  <img src="images/statistik/bar3.gif" alt="Visits from registered Members in the last 7 days" width="$bar_aktiv_user3" height="10" border="0" />
    $aktiven_user3_prozent %($aktiven_user3)</td>
</tr>

<tr>
    <td>No visit in the last 30 days:</td>
    <td colspan="2">
    <img src="images/statistik/bar4.gif" alt="Members which has not visited $vboptions[bbtitle] for more than 30 days!" width="$bar_aktiv_user4" height="10" border="0" />
    $aktiven_user4_prozent % ($aktiven_user4) </td>
</tr>

<tr>
    <td colspan="3">&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">Total PMs written:</td>
    <td class="alt2">$PMS</td>
</tr>

<tr>
    <td>Total PMs stored in database:</td>
    <td>$alle_pm ($pm_ungelesen unread)</td>
</tr>

<tr>
  <td class="alt2">Memory used by PMs:</td>
  <td class="alt2">$pm_speicher_in_kb kb ($pm_speicher_in_mb mb)</td>
</tr>

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

        </table>
        </fieldset>
        </div>

        <div class="panel">
        <fieldset class="fieldset">
    <legend><strong>Database and Server</strong></legend>
    <table width="95%" border="0" align="center">

<tr>
    <td colspan="3">&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 kb ($datenbank_in_mb mb)</td>
</tr>

<tr>
    <td><img src="images/statistik/misc/serverinfo.gif" alt="Server Info" width="14" height="14" border="0" /></td>
    <td>Server Information:</td>
    <td>$serverinfo</td>
</tr>

<tr>
  <td class="alt2"><img src="images/statistik/misc/mysqlinfo.gif" alt="MYSQL Version" width="14" height="14" border="0" /></td>
  <td class="alt2">MySQL Version:</td>
  <td class="alt2">$mysqlversion</td>
</tr>

<tr>
    <td><img src="images/statistik/misc/smilie.gif" alt="Smilies" width="14" height="14" border="0" /></td>
    <td>Usable Smilies:</td>
    <td>$alle_smilies total</td>
</tr>

<tr>
  <td class="alt2"><img src="images/statistik/misc/anhaenge.gif" alt="Stored Attachments" width="14" height="14" border="0" /></td>
  <td class="alt2">Stored Attachments:</td>
  <td class="alt2">$alle_anhaenge</td>
</tr>

<tr>
    <td><img src="images/statistik/misc/anhaenge1.gif" alt="Space Used by Attachments" width="14" height="14" border="0" /></td>
    <td>Memory used by Attachments:</td>
    <td>$anhaenge_speicher_in_kb kb ($anhaenge_speicher_in_mb mb)</td>
</tr>

<tr>
    <td class="alt2"><img src="images/statistik/misc/auge.gif" alt="Attachments viewed or downloaded" width="14" height="14" border="0" /></td>
    <td class="alt2">Attachments Hits:</td>
    <td class="alt2">$alle_downloads times</td>
</tr>

<tr>
    <td colspan="3">&nbsp;</td>
</tr>

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

        <td valign="top" class="panelsurround">
        <div class="panel">
        <fieldset class="fieldset">
        <legend><strong>The Top 5 Posters</strong></legend>
        <table width="95%" border="0" align="center" cellpadding="0" cellspacing="$stylevar[formspacer]">

<tr>
    <td colspan="3">&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="Bronze Medal Winner" width="14" height="14" border="0" /></td>
    <td class="alt2"><a title="Show $postername3's profile" href="member.php?u=$posterid3">
    $postername3</a></td>
    <td class="alt2"><img src="images/statistik/bar3.gif" alt="Bronze Medal Winner" width="$maxposter3_bar" height="10" border="0" />
        with $poster_beitragszahl3 posts ($maxposter3_prozent %)</td>
</tr>

<tr>
    <td><img src="images/statistik/misc/ananas.gif" alt="Golden pineapple" width="14" height="14" border="0" /></td>
    <td> <a title="Show $postername4's profile" href="member.php?u=$posterid4">
    $postername4</a></td>
    <td><img src="images/statistik/bar4.gif" alt="Golden pineapple" width="$maxposter4_bar" height="10" border="0" />
    with $poster_beitragszahl4 posts ($maxposter4_prozent %)</td>
</tr>

<tr>
    <td class="alt2"><img src="images/statistik/misc/lollipop.gif" alt="Just a Lollipop" width="14" height="14" border="0" /></td>
    <td class="alt2"><a title="Show $postername5's profile" href="member.php?u=$posterid5">
    $postername5</a></td>
    <td class="alt2"><img src="images/statistik/bar5.gif" alt="Lollipop" width="$maxposter5_bar" height="10" border="0" />
        with $poster_beitragszahl5 posts ($maxposter5_prozent %)</td>
</tr>

<tr>
  <td colspan="3"><br />These members have a combined total of $maxposter_summe posts!!<br />
        <a onclick="NewWindow(this.href,'statistik','640','480','yes','center');return false" onfocus="this.blur()" title="Show the $topposter_limit Top Posters in a PopUp Window" href="statistik.php?do=topposter_popup">
        Show Top $topposter_limit Posters (PopUp Window)</a>
        </td>
</tr>

<tr>
    <td colspan="3">&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 (PopUp Window)</a></td>
</tr>

<tr>
    <td class="alt2"><img src="images/statistik/misc/poular_forum.gif" alt="Most Popular Forum" width="14" height="14" border="0" /></td>
    <td class="alt2">Most Popular Forum:</td>
    <td class="alt2"><a title="$popularforum_titel" href="forumdisplay.php?forumid=$popularforum_id">$popularforum_titel</a> <br />
    with <strong>$popularforum_antworten</strong> posts<br/>
    <a onclick="NewWindow(this.href,'statistik','640','480','yes','center');return false" onfocus="this.blur()" title="Show the $popularforum_limit Most Popular Forums in a PopUp Window" href="statistik.php?do=popularforum_popup">
        Show the $popularforum_limit Most Popular Forums (PopUp Window)</a></td>
</tr>

<tr>
    <td colspan="3">&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>, on <strong>$recorddate</strong> at <strong>$recordtime </strong></td>
</tr>

<tr>
    <td><img src="images/statistik/misc/newusers.gif" alt="Most new registrations" width="14" height="14" border="0" /></td>
    <td colspan="2">Most new registrations was on  <strong>$getmostregister_tag</strong>
        with <strong>$getmostregister_user New Members</strong> <br />
        <a onclick="NewWindow(this.href,'statistik','440','480','yes','center');return false" title="Show the $popularforum_limit days with the Most new registrations in a PopUp Window" href="statistik.php?do=mostregister_popup">
        Show $mostregister_limit days (PopUp Window)</a>
    </td>
</tr>

<tr>
  <td class="alt2"><img src="images/statistik/misc/onlines.gif" alt="Most registered members visited" width="14" height="14" border="0" /></td>
  <td class="alt2" colspan="2">Most visits by registered members was on  <strong>$getmost_member_tag</strong>
        with <strong>$getmost_member_user</strong> Members<br />
        <a onclick="NewWindow(this.href,'statistik','540','480','yes','center');return false" title="Show the $visit_limit days when the most registered members visited in a PopUp Window" href="statistik.php?do=visit_popup">
        Show $visit_limit days (PopUp Window)</a>
  </td>
</tr>

<tr>
    <td><img src="images/statistik/misc/threads.gif" alt="written the most new threads" width="14" height="14" border="0" /></td>
    <td colspan="2">Most new threads posted was on  <strong>$getmost_threads_tag</strong>
        with <strong>$getmost_threads_sum</strong> New Threads <br />
    <a onclick="NewWindow(this.href,'statistik','540','480','yes','center');return false" onfocus="this.blur()" title="Show the $mostthread_limit days with the most new threads posted in a PopUp Window" href="statistik.php?do=mostthread_popup">
        Show $mostthread_limit days (PopUp Window)</a>
    </td>
</tr>

<tr>
    <td class="alt2"><img src="images/statistik/misc/posts.gif" alt="Written the most new posts" width="14" height="14" border="0" /></td>
    <td class="alt2"colspan="2">Most new posts written was on  <strong>$getmost_posts_tag</strong>
        with <strong>$getmost_posts_sum</strong> New Posts<br />
    <a onclick="NewWindow(this.href,'statistik','540','480','yes','center');return false" onfocus="this.blur()" title="Show the $mostpost_limit days with the most new posts in a PopUp Window" href="statistik.php?do=mostpost_popup">
        Show $mostpost_limit days (PopUp Window)</a>

    </td>
</tr>

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


Zelda-King 08-23-2004 01:04 PM

Quote:

Can you please check what is the output of this script on your browser...
Code:

IP Adress: xxx.xx.xx.xx
full hostname: hostxxx-xx-xx-xx.rangexxx-xx.btcentralplus.com
only TLD of hostname: *.rangexxx-xx.btcentralplus.com
country of hoster(provider): .com
your language: en-us,en;q=0.5

(That's with and without my ZoneAlarm Security Suite switched on.)

Onkel_Tom 08-23-2004 01:13 PM

what happens if your are changing the following line in file functions_statistik.php

search for:
Code:

elseif(ereg("us", $sprache))$browser_sprache="UnitedStates";
and replace by:
Code:

elseif(ereg("en-us", $sprache))$browser_sprache="UnitedStates";

Zelda-King 08-23-2004 01:17 PM

It still isn't showing America. I'll leave the file like that until directed otherwise and give you the link: http://www.gamercrossfire.net/bb/sta...p?do=countries
(Note: STATISTIC template updated in above post.)

Just a couple of things in some other templates I ironed out;

statistic_polls:

Code:

$statistic_header
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
  <tr>
    <td class="tcat" colspan="2"><div align="center"><strong>Polls / Stickys /
        Searchwords</strong></div></td>
  </tr>
  <tr>
    <td colspan="2"> <div class="panel">
        <fieldset class="fieldset">
        <legend><strong>The last $poll_limit Polls</strong></legend>
        <div align="center">
          <table width="95%" border="0">
            <tr>
              <td class="thead"><div align="center"><strong>Title</strong></div></td>
              <td class="thead"><div align="center"><strong>Starter</strong></div></td>
              <td class="thead"><div align="center"><strong>Poll</strong></div></td>
              <td class="thead"><div align="center"><strong>Date</strong></div></td>
              <td class="thead"><div align="center"><strong>Answer possibilities</strong></div></td>
              <td class="thead"><div align="center"><strong>Voted</strong></div></td>
              <td class="thead"><div align="center"><strong>Opened</strong></div></td>
              <td class="thead"><div align="center"><strong>Ends</strong></div></td>
              <td class="thead"><div align="center"><strong>Multiple choice</strong></div></td>
              <td class="thead"><div align="center"><strong>Public</strong></div></td>
              <td class="thead"><div align="center"><strong>Views</strong></div></td>
            </tr>
            $statistic_polls_bit
          </table>
          <table width="95%" border="0">
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td class="thead"><div align="right"><img src="images/statistik/misc/daumenhoch.gif" alt="activ" width="15" height="15" />
                  active <img src="images/statistik/misc/daumenrunter.gif" alt="inactive" width="15" height="15" />
                                inactive</div></td>
            </tr>
          </table>
        </div>
        </fieldset>
      </div></td>
  </tr>
  <tr>
    <td valign="top"> <div class="panel">
        <fieldset class="fieldset">
        <legend><strong>The last $sticky_limit sticky threads</strong></legend>
        <table width="95%" border="0" align="center">
          <tr>
            <td colspan="4">&nbsp;</td>
          </tr>
          <tr>
            <td class="thead"><div align="center"><strong>Title</strong></div></td>
            <td class="thead"><div align="center"><strong>Author</strong></div></td>
            <td class="thead"><div align="center"><strong>Date</strong></div></td>
            <td class="thead"><div align="center"><strong>views</strong></div></td>
          </tr>
          $statistic_sticky_bit
        </table>
        </fieldset>
      </div>
      </td>
    <td valign="top"> <div class="panel">
        <fieldset class="fieldset">
        <legend><strong>The latest&nbsp; $search_limit Searchwords (Big Brother is watching you)</strong></legend>
        <table width="95%" border="0" align="center">
          <tr>
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr>
            <td class="thead"><div align="center"><strong>Search word</strong></div></td>
            <td class="thead"><div align="center"><strong>searched on</strong></div></td>
            <td class="thead"><div align="center"><strong>needed time to find</strong></div></td>
          </tr>
          $statistic_search_bit
        </table>
      <table width="95%" border="0" align="center">
        <tr>
          <td><div align="right"><img src="images/statistik/misc/bag.gif" alt="This was a search for latest threads (Not a real search query)" width="20" height="21" border="0" />
              Search for latest threads (Not a real search query)</div></td>
        </tr>
      </table>
        </fieldset>
      </div>
</td>
  </tr>
  <tr>
    <td class="tcat" colspan="2">&nbsp;</td>
  </tr>
</table>

$statistic_footer

statistic_last_x_days
Code:

$statistic_header

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
  <tr>
    <td class="tcat" colspan="2"><div align="center"><strong>Statistics for the
                last $xtage_limit days and the last $xthemen_limit threads</strong></div></td>
  </tr>
  <tr>
<td valign="top" class="panelsurround">
    <div class="panel">
        <fieldset class="fieldset">
        <legend><strong>The last $xtage_limit days</strong></legend>

        <table width="95%" border="0" cellpadding="0" cellspacing="$stylevar[formspacer]">
          <tr>
            <td class="thead"><div align="center"><strong>Date</strong></div></td>
            <td class="thead"><div align="center"><strong>New Registrations</strong></div></td>
            <td class="thead"><div align="center"><strong>New Threads</strong></div></td>
            <td class="thead"><div align="center"><strong>New Posts</strong></div></td>
            <td class="thead"><div align="center"><strong>Registered Members Visits</strong></div></td>
          </tr>
          $statistic_last_x_result_bit
        </table>
                </fieldset>
                </div>
</td>

<td valign="top" class="panelsurround">
    <div class="panel">
        <fieldset class="fieldset">
    <legend><strong>The last $xthemen_limit threads</strong></legend>
    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="$stylevar[formspacer]">
    <tr>
            <td class="thead"><div align="center"><strong>Date</strong></div></td>
    </tr>
          $statistic_last_x_threads_bit
        </table>
      </fieldset>
        </div>
</td>
  </tr>
  <tr>
    <td class="tcat" colspan="2">&nbsp;</td>
  </tr>
</table>

$statistic_footer

I think that's most grammatical discrepancies dealt with now.

Onkel_Tom 08-23-2004 01:53 PM

Okay, I think I found the problem !
The countrynames in table "statistik_laender" are not identical with the Names given in file "functions_statistik.php"
So the query
Code:

$DB_site->query("
                UPDATE " . TABLE_PREFIX . "statistik_laender
                SET Zaehler_Browsersprache  = Zaehler_Browsersprache  +1
                WHERE (Name_Land  = '$browser_sprache')
                ");

can't work while trying to compare "Name_Land" with "$browser_sprache"....

Zelda-King, if you can do me favour, please replace the following line in file functions_statistik.php:
Code:

elseif(ereg("us", $sprache))$browser_sprache="UnitedStates";
with:
Code:

elseif(ereg("us", $sprache))$browser_sprache="United States";
and try if it works. The problem only occur on countries with 2 separated words like United States, United Kingdom etc.
Countries like Germany, Venezuela etc. are working

So I have to fix the complete 2 listings in functions_statistik.php for Browser language and countries by host :tired:

Wential 08-23-2004 02:05 PM

United States listings are working now. Thanks!

Zelda-King 08-23-2004 02:08 PM

I don't quite follow... well I understand the problem but there is no 'file' called statistik_laender so do you mean I should change the database table statistik_laender or alter the functions_statistik.php? I've changed the reference to the United States in functions_statistik.php. No show of America yet... I suppose I have to wait until some more Americans show up again.

Wential 08-23-2004 02:41 PM

I just changed the line to this elseif(ereg("us", $sprache))$browser_sprache="United States"; and it started working.

Zelda-King 08-23-2004 02:59 PM

The browser thing is working for me now. I applied the same change to the visitor countries section but I'm having no joy yet.

Onkel_Tom 08-23-2004 03:08 PM

Quote:

Originally Posted by Zelda-King
I don't quite follow... well I understand the problem but there is no 'file' called statistik_laender...

Sorry, only 3 hours sleep this night, it's the file "functions_statistik.php" not statistik_laender


All times are GMT. The time now is 09:35 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01533 seconds
  • Memory Usage 1,892KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete