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)

Rhoads 01-20-2005 05:52 PM

Quote:

Originally Posted by PcFreak
I am sure you did not 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>

---------------------------------------------------------------------
6.2) Open Template "phpinclude_start" in your AdminCP
    add the following code at the end of the template in the last line!
---------------------------------------------------------------------

include("./statistic_counter.php");

--------------
Hint:
--------------
For a forum with several Styles you must do the change for each Style
or you have to put it into your Master Style.
(but think about vB Updates which is overwriting the Master Style!)


Yes I do, here my templates,

phpinclude_start :
Code:

/*
// Example of how to include a seperate file:

ob_start();
include('yourheader.html');
$your_code = ob_get_contents();
ob_end_clean();
include("./statistic_counter.php");

// Now place a reference to $your_code where you want the resulting HTML to be displayed.
// This will most likely be the header or footer template.
*/

headinclude :
Code:

<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" />
<meta name="generator" content="vBulletin $versionnumber" />
<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />

<!-- CSS Stylesheet -->
$style[css]
<if condition="is_browser('opera')">
<style type="text/css">
ul, ol { padding-left:20px; }
</style>
</if>
<!-- / CSS Stylesheet -->

<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl_js]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
// -->
</script>

<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>
<script type="text/javascript" src="clientscript/statistic_java.js"></script>


Ian Emu-UK 01-20-2005 06:01 PM

Is there a quick and easy way to add the normal navbar at the top as well as the statistics one?

Spyke 01-20-2005 06:25 PM

Quote:

Originally Posted by Spyke
How do i update to this one if i'm uisng vbstatistics v2 ?

Just wondering.

Marco van Herwaarden 01-20-2005 06:46 PM

Quote:

Originally Posted by drl2005
Yes I do, here my templates,

You didn't do as instructed and put the include statement on the end of the 'phpinclude_start' file. You placed it inside a comment block and thus will not be executed.

Rhoads 01-20-2005 07:40 PM

Quote:

Originally Posted by MarcoH64
You didn't do as instructed and put the include statement on the end of the 'phpinclude_start' file. You placed it inside a comment block and thus will not be executed.

Thnx MarcoH64, this was the problem grrrrrr, I must learn still a hope :confused:

Oke now my last problem :
I have a new database error when I go to the Maintenance for Statistics database : every button that I push there is comming with that error.

Code:

Database error in vBulletin 3.0.5:

Invalid SQL:
DELETE FROM statistic_referer_short
ORDER BY counter ASC
LIMIT 0

mysql error: You have an error in your SQL syntax near 'ORDER BY counter ASC
LIMIT 0
' at line 3

mysql error number: 1064


Marco van Herwaarden 01-20-2005 08:08 PM

Now that looks really weird, it is a combination of a DELETE and a SELECT statement.

I don't have this hack installed, so you better wait for the author to reply on this one.

Sir_Yaro 01-20-2005 09:08 PM

Hello
I found a problem/error and have no idea how to solve it (exept uninstall :) )

here you can find my statistic:
http://justget.org/statistic.php?do=browseros

But they arent correct. I entered on my site using via links, lynx & konkueror couple times; using 4 diferent hosts; 9 diferent system accounts (on this hosts) and 6 vB accounts.
Should be at least 15 apears for each browser (pic1&2) and 3 time more linux.

I've noticed that statistics sometimes count browser after doing couple "system check" refresh.

Aditionally when in my network (one shared public adres) 3 or more persons browse forum, "system check" tab shows total nonsens. (pic3)
Im wondering which data are really read and put to database...

U can test it and see result immediately because i set cron job to one minute...

And last thing.
In 'The 10 most viewed threads':
http://justget.org/statistic.php?do=forum_hits
The same topic appears twice, why?

PcFreak 01-21-2005 02:51 AM

Quote:

Originally Posted by drl2005
Oke now my last problem :
I have a new database error when I go to the Maintenance for Statistics database : every button that I push there is comming with that error.

Code:

Database error in vBulletin 3.0.5:

Invalid SQL:
DELETE FROM statistic_referer_short
ORDER BY counter ASC
LIMIT 0

mysql error: You have an error in your SQL syntax near 'ORDER BY counter ASC
LIMIT 0
' at line 3

mysql error number: 1064


This error mean that you want delete short referer entries.
But there are no short referer in the database.
Perhaps, there is nothing to delete.
Limit 0 or Limit 1000.
A division by 0 is an error.

Quote:

Originally Posted by Sir_Yaro
But they arent correct. I entered on my site using via links, lynx & konkueror couple times; using 4 diferent hosts; 9 diferent system accounts (on this hosts) and 6 vB accounts.

The statistic make a timestamp with your IP adress.
Your just logging (default) every 30 minutes
Quote:

The same topic appears twice, why?
I cannot confirm. Works perfect for me.

PcFreak

Imperial Fritz 01-21-2005 04:00 AM

Thanks for a brilliant addon :)

sv1cec 01-21-2005 04:04 AM

Quote:

Originally Posted by Ian Emu-UK
Is there a quick and easy way to add the normal navbar at the top as well as the statistics one?

In statistic.php, find:

PHP Code:

//Zuerst mal die Einstellungen aus der Daten bank holen 

Right before that, add:

PHP Code:

$navbits = array();
$navbits[''] = 'vB Statistics';
$navbits construct_navbits($navbits);
eval(
'$navbar = "' fetch_template('navbar') . '";'); 

The go to your statistic_header template and find:

HTML Code:

$header
Add below that:

HTML Code:

$navbar


All times are GMT. The time now is 09:45 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.01658 seconds
  • Memory Usage 1,761KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_html_printable
  • (2)bbcode_php_printable
  • (8)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