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 Statistic Version 1.01 (https://vborg.vbsupport.ru/showthread.php?t=65924)

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
Code:

$referer_summe        = $top_referer['Zaehler'];
and paste this underneath:
Code:

$referer_short = substr($referer_adresse,0,50);
and then, in the statistik_referer template, replace the entire thing with
Code:

<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

Code:

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

Code:

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

see my example (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
PHP Code:

        default:
            if (
$permissions['wolpermissions'] & CANWHOSONLINEBAD)
            { 

above add
PHP Code:

// ##### 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
PHP Code:

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

    return 
$userinfo

above add
PHP Code:

// ##### 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
Code:

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

Code:

<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
PHP Code:

// 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

Quote:

Originally Posted by Mijae
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

Quote:

Originally Posted by PcFreak
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


All times are GMT. The time now is 06:01 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.08614 seconds
  • Memory Usage 1,758KB
  • 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
  • (7)bbcode_code_printable
  • (5)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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