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)
-   -   vB Statistic version 3.0.0 (directors Cut *g*) (https://vborg.vbsupport.ru/showthread.php?t=74603)

kall 01-19-2005 09:25 AM

And you can enter any other domains in as well in counter.php AFAIK, preventing them from being logged, along with your own redirections.

sv1cec 01-19-2005 09:33 AM

Quote:

Originally Posted by kall
And you can enter any other domains in as well in counter.php AFAIK, preventing them from being logged, along with your own redirections.

A couple of small issue, it does not identify the number of users with an avatar. It shows 0.

Also, in the Search engines window, when I put the mouse cursor over the sign that shows that the search string was shortened, it does not show the whole string, it shows "shorten Search string".

Finally, in the Browser Plugins and Monitor Resolution page, the only thing that contains some information, is the line which shows Users who block Javascript on their system. All others are zeros. Same thing with my systems information. Not all installed components are identified. I do not particularly care about this, I know what I have, I just let you know, in case you are not aware of it.

One question also: If I set the show statistics page option to 1 (admins and mods) , does that includes super moderators as well?


Rgds

PcFreak 01-19-2005 10:01 AM

@sv1cec
Did you make Step 6?
HTML Code:

==============================
== step 6                                                              ==
==============================

Now let's activate the statistics and count of visitors
---------------------------------------------------------------------
6.1) Open Template "headinclude" in your AdminCP
    add the following code at the end of the template in the last line!
---------------------------------------------------------------------

<script type="text/javascript" src="clientscript/statistic_java.js"></script>

This step is important for the Browser Plugins and Monitor Resolution page (Systemcheck page).
Quote:

Also, in the Search engines window, when I put the mouse cursor over the sign that shows that the search string was shortened, it does not show the whole string, it shows "shorten Search string".
This is the alternate text of the image. ;) The whole string you can see in the alt text of the link.
Quote:

couple of small issue, it does not identify the number of users with an avatar. It shows 0.
I cannot confirm. Works perfect.

PcFreak

PcFreak 01-19-2005 10:06 AM

Quote:

One question also: If I set the show statistics page option to 1 (admins and mods) , does that includes super moderators as well?
I dont know the permissions of you super moderators but normally yes.

PcFreak

sv1cec 01-19-2005 10:14 AM

Quote:

Originally Posted by PcFreak
@sv1cec
Did you make Step 6?
HTML Code:

==============================
== step 6                                                              ==
==============================

Now let's activate the statistics and count of visitors
---------------------------------------------------------------------
6.1) Open Template "headinclude" in your AdminCP
    add the following code at the end of the template in the last line!
---------------------------------------------------------------------

<script type="text/javascript" src="clientscript/statistic_java.js"></script>

This step is important for the Browser Plugins and Monitor Resolution page (Systemcheck page).

This is the alternate text of the image. ;) The whole string you can see in the alt text of the link.

I cannot confirm. Works perfect.

PcFreak

Yes, I did, here is how the end of that template looks in my system:

HTML Code:

<script type="text/javascript" src="clientscript/vbulletin_global.js"></script>
<if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js"></script></if>
<!-- Edited to show the favicon -->
<link rel="shortcut icon" href="favicon.ico">
<script type="text/javascript" src="clientscript/statistic_java.js"></script>

Re. alt text, that's what I mean, I hover my cursor about that image and expected to see the whole string. Instead, I see "shorten Search string" in the small yellow alt text window.

https://vborg.vbsupport.ru/external/2005/01/1.jpg

As for the users with avatar issue, here is the image from the stats page. And I know for sure that there are a lot of my users with an avatar, me included.

Rgds

Torqued 01-19-2005 11:02 AM

Quote:

Originally Posted by kall
Well...for one, you have the wrong path somewhere there.

statistic_java_counter.php should be in /public_html/forums , the same place as global.php and statistic.php

That's the problem. I have statistic_java_counter.php in /public_html/forums but when the script runs, I get the error message for the other path. :ermm:

sv1cec 01-19-2005 11:17 AM

Cancel all my other problems, they are all solved, I had missed one file when I uploaded to the live server. My only issue is still the avatars count, which denies to move from zero.

OK, I figured that out, you are counting only users who have a custom avatar. Not the ones which are using one of the site's provided ones. I modified your code as below.

Edit file /statistic/sides/forum.php and find:

PHP Code:

//User und Profilbilder
//Avatars
    
$avatars $DB_site->query_first("
            SELECT COUNT(*) as avatar, SUM(filesize) AS size 
            FROM " 
TABLE_PREFIX "customavatar 
            "
);
            
$all_avatars vb_number_format($avatars['avatar']); 

Replace that with:

PHP Code:

//User und Profilbilder
//Avatars
    
$avatars1 $DB_site->query_first("
            SELECT COUNT(*) as avatar, SUM(filesize) AS size 
            FROM " 
TABLE_PREFIX "customavatar 
            "
);
            
$all_avatars1 vb_number_format($avatars1['avatar']);                                
            
    
$avatars2 $DB_site->query_first("
            SELECT COUNT(*) as avatar  
            FROM " 
TABLE_PREFIX "user where avatarid!='0' 
            "
);        
            
$all_avatars2 vb_number_format($avatars2['avatar']);                                
            
            
$all_avatars $all_avatars1 $all_avatars2

That solved the issue.

Rgds

Beermonster 01-19-2005 11:46 AM

A request for 3.0.1 :) could you add the option to exclude certain IP(s) from the stats? or even better a certain user, I would like to exclude myself from the stats.

btw great hack blows v2 out of the water, got to be a contender for HOTM :)

PcFreak 01-19-2005 11:59 AM

Quote:

A request for 3.0.1 could you add the option to exclude certain IP(s) from the stats? or even better a certain user
Hmm... :disappointed:
But why not. Not so difficult :)

@sv1cec
I add the link to your avatar solution in the first post.
Is it ok?

PcFreak

Nordinho 01-19-2005 12:15 PM

Excellent work!! installed flawless...


All times are GMT. The time now is 06:12 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.01646 seconds
  • Memory Usage 1,765KB
  • 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
  • (3)bbcode_html_printable
  • (2)bbcode_php_printable
  • (7)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