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)

Ian Emu-UK 08-22-2004 08:00 PM

Quote:

Originally Posted by Onkel_Tom
Sorry, it's not the PHP version !
We need the MySQL Version ;)

I've never tried to name a database with "-", mine are always with "_" in the name and it works.

Do you use also table prefixes for your tables ?
You can try this:

find in statistik.php:
Code:

LIKE 'pm'
and replace it with:
Code:

LIKE " . TABLE_PREFIX . "'pm'

MySQL on my test home server is the latest, and on my site server it's 4.0.16.

It still said the same after I altered the part you said to, but I removed the "FROM $dbname" bit from the query and now it works and gives the size for the PM table.

Is that part un-needed or will I run into problems having removed it at some point?

Thanks for your help Onkel_Tom :)

Onkel_Tom 08-22-2004 08:21 PM

Quote:

Originally Posted by Ian Emu-UK
... I removed the "FROM $dbname" bit from the query and now it works and gives the size for the PM table.

Is that part un-needed or will I run into problems having removed it at some point?

This is not a problem because we are still in this database. The MySQL syntax mentioned to give the database with this command but if we are not outside this db it's not a problem ;)
I will fixed this also in the next release !

Thanks for your help to get this hack working :)

Hope more people will install this hack and give a click in the "hack of the month August " section for this very nice work from PcFreak.

iceman-x 08-22-2004 09:40 PM

Code:

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT Summe as Datum
FROM statistik_zaehler
WHERE Zaehler_fuer = 'Statistik_Aktiv'
       
mysql error: Table 'elitesat_elite.statistik_zaehler' doesn't exist

mysql error number: 1146

Date: Sunday 22nd of August 2004 03:33:14 PM

The table fix workt perfekt.;) but now i goth a new problem. it keep looking for the old tabel. I tryed to deleted alle the tabel. and reinstalled. but dident work.

It look like the statistik work. the error apers when i am trying to enter the admin opitons. "statistikadmin.php?do=statistik_general"

iceman-x 08-22-2004 10:18 PM

Found the ansvare to the problem. In the "statistikadmin.php"

i canged this..

Find this
Code:

        $statistikaktiv = $DB_site->query("
                SELECT Summe as Datum
                FROM statistik_zaehler
                WHERE Zaehler_fuer = 'Statistik_Aktiv'
        ");

and replaced whit this.
Code:

        $statistikaktiv = $DB_site->query("
                SELECT Summe as Datum
                FROM " . TABLE_PREFIX . "statistik_zaehler
                WHERE Zaehler_fuer = 'Statistik_Aktiv'
        ");

and then it works fine. :)

thanks for all the help.

Wential 08-22-2004 10:32 PM

I took a few hours and worked through all the MySQL errors and it seems to work except for Browser & Operating System Stats. See my attachment. I know not EVERYONE is using "Other" for a browser. Did I miss something on the install?

Onkel_Tom 08-22-2004 11:23 PM

@ Iceman-X
https://vborg.vbsupport.ru/external/2004/08/1.gif
thanks for the hint of another missing table_prefix

@ Wential
Browsers and OS are identified from the file /includes/functions_statistik.php so please check if this file is in that directory.
In that file the the Browsers are identified by getenv("HTTP_USER_AGENT") and a listing with the Browsernames.

Is only Browsertyp and OS version not identified by the statistics ?

Wential 08-23-2004 12:08 AM

Ah, I missed replacing the " . TABLE_PREFIX . " with vb3_ in that file. Hopefully it will start showing up now. And yes, that was the only part that wasn't filling in with data. You're assistance is much appreciated.

Onkel_Tom 08-23-2004 12:30 AM

Your welcome ;)

If the script still not identify the browsers and OS try this.

open file functions_statistik.php from Directory /includes and find:
Code:

$agent = getenv("HTTP_USER_AGENT");
replace it with this syntax:
Code:

$agent = $_SERVER['HTTP_USER_AGENT'];
for the $_SERVER Syntax you must have at least php 4.1.0 installed on your server

Wential 08-23-2004 01:18 AM

The first solution didn't work after waiting an hour. I'm trying your second $_SERVER fix now. I'm running MYSQL 4.0.18 and PHP 4.3.6 so hopefully it will work. I hope it's not a problem that I run my own local Windows 2003 servers on a dedicated T-3 line. You wouldn't believe how many things (VB related) are designed around Apache. Yuck!

Wential 08-23-2004 01:19 AM

Darn that was fast. It works perfectly now! Onkel Tom, you're a genius!


All times are GMT. The time now is 02:52 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.03302 seconds
  • Memory Usage 1,745KB
  • 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
  • (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