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)

gmarik 07-02-2004 09:22 PM

Great, really cool.
Is therea any stats for vistitors by
- hours
- days of week too?

Sam FT 07-02-2004 11:30 PM

Ok I had the old Stats 1.0 hack. Removed it completly. Install the new Stats 2.0 hack as writing. So when I go to the statistik.php file, I get this database error

Code:

 
  Invalid SQL:
              SHOW TABLE STATUS
              FROM full-throttle_us_-_vb
              LIKE 'pm'
             
  mysql error: You have an error in your SQL syntax near '-throttle_us_-_vb
              LIKE 'pm'
              ' at line 3
 
  mysql error number: 1064


Battle_Ring 07-03-2004 04:01 AM

i installed this and when i go to statistik.php i got this

Database error in vBulletin 3.0.2:

Invalid SQL: SELECT dateline, nuser FROM stats ORDER BY nuser DESC LIMIT 1
mysql error: Table 'chrisr_HipHopStreetz.stats' doesn't exist

mysql error number: 1146

Date: Saturday 03rd of July 2004 12:54:31 AM
Script: http://www.hip-hop-streetz.com/forums/statistik.php
Referer:
Username: Chris
IP Address: 12.27.184.129

Maddrax 07-03-2004 06:13 AM

Maddrax click install ;)

PcFreak 07-03-2004 06:17 AM

@Battle_Ring

Sorry, but I can?t give help for your problem.
Because the table "stats" is a orginal table.

I have check the querie in the statistik.php. Cant found an error there.
I think there is a Problem with the TABLE_PREFIX

Found in the statistik.php

PHP Code:

//Tag mit den meisten Neu Registrierungen
    
$getmostregister$DB_site->query_first("SELECT dateline, nuser FROM " TABLE_PREFIX "stats ORDER BY nuser DESC  LIMIT 1");
    
$getmostregister_tag vbdate($vboptions['dateformat'], $getmostregister['dateline']);
    
$getmostregister_user $getmostregister['nuser']; 

and replace tihs code with this
PHP Code:

//Tag mit den meisten Neu Registrierungen
     //$getmostregister= $DB_site->query_first("SELECT dateline, nuser FROM " . TABLE_PREFIX . "stats ORDER BY nuser DESC  LIMIT 1");
    //$getmostregister_tag = vbdate($vboptions['dateformat'], $getmostregister['dateline']);
    //$getmostregister_user = $getmostregister['nuser']; 

Open the statistic side from your forum.
Tell me what is happen.

@Sam FT
hmm.

This is a normal query.
At the moment, i dont know why do you get a mysql error.
This is the orginal query

PHP Code:

SHOW TABLE STATUS
        FROM $dbname
        LIKE 
'pm' 



PcFreak

Scrub 07-03-2004 07:10 AM

Nevermind. The table is a defualt. :D. Stupid me. :(

Guess I am off to get into his cpanel and figure out if it is missing or if it is the table prefix. ;)

Edit: Weird. He does not have the table by defualt. :eek:

PcFreak 07-03-2004 07:21 AM

I need the drop tables, because i have relaese this hack in two different languages. Some of the tables have different inserts e.g the statistik_laender table.

There are two different installation routines (and i must check both)
Thats the reason for the "drops".

PcFreak

Scrub 07-03-2004 07:23 AM

Updated. :p. Well, it was because of that. He did not have the stats table. O_o. But anyway, this is pretty neat hack! Wish I had a public forum to add this to. :D. Keep up the good work! :D

orca 07-03-2004 10:10 AM

Well, I don't know wether anyone of you uses table_prefixes. But on my board I use them and because of that, the installation script was giving errors. After fixing I had the problem ith all other scripts.

Sam FT 07-03-2004 02:14 PM

Quote:

Originally Posted by PcFreak
@Sam FT
hmm.

This is a normal query.
At the moment, i dont know why do you get a mysql error.
This is the orginal query

PHP Code:

SHOW TABLE STATUS
         FROM $dbname
         LIKE 
'pm' 



PcFreak

Well I am and when I run that query in mysql I still get the same error. So it is something in the query because I check all the pm tables to make sure there wasn't any bad with them.


All times are GMT. The time now is 02:33 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.01380 seconds
  • Memory Usage 1,750KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)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