vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Total Threads Hits At Forum Home (https://vborg.vbsupport.ru/showthread.php?t=100829)

Snake 11-24-2005 05:42 PM

Also I get this error after the installation.

Quote:

Database error in vBulletin 3.5.1:

Invalid SQL:

SELECT COUNT(*) ,
SUM(views) AS hits
FROM forum_ thread;

MySQL Error : Table 'amath_forum.forum_' doesn't exist
Error Number : 1146
Date : Thursday, November 24th 2005 @ 07:41:07 PM
Script : http://www.metalgearforum.net/index.php
Referrer : http://www.metalgearforum.net/index.php
IP Address : 193.188.105.22
Username : Aftermath
Classname : vb_database

Omranic 11-25-2005 06:16 PM

rb290 ===> its depend on your vbulletin settings not on my hack

Aftermath ===> this error isn't related to my hack
it related to the existing of thread table or not ( if it exist no error occurs if not error appears) it doesn't need any data base modifications, it only make a very simple mathematical calculation

MioTraGusa 11-26-2005 06:15 AM

Quote:

Originally Posted by SolidSnake@GTI
Aftermath ===> this error isn't related to my hack
it related to the existing of thread table or not ( if it exist no error occurs if not error appears) it doesn't need any data base modifications, it only make a very simple mathematical calculation

Sorry but in the pluggin Thread's Total Hits at Forum Home :

PHP Code:

// ### SolidSnake@GTI Total Hits Start ###
$totalhits $vbulletin->db->query_first("
        SELECT COUNT(*) ,
        SUM(views) AS hits
        FROM " 
TABLE_PREFIX " thread");

$totalhits intval($totalhits['hits']);
// ### SolidSnake@GTI Total Hits End ### 

bad construct with one space extra .. change for:

PHP Code:

// ### SolidSnake@GTI Total Hits Start ###
$totalhits $vbulletin->db->query_first("
        SELECT COUNT(*) ,
        SUM(views) AS hits
        FROM " 
TABLE_PREFIX "thread");

$totalhits intval($totalhits['hits']);
// ### SolidSnake@GTI Total Hits End ### 

work fine this :up:

***Installed

Sorry for my english

Omranic 11-26-2005 08:22 AM

Quote:

Originally Posted by MioTraGusa
bad construct with one space extra .. change for:

Sorry,
I can't notice that extra space you talk about
can you point it plz

MioTraGusa 11-26-2005 10:58 AM

yes ..

Snake 11-26-2005 12:04 PM

Oh he's right. Thanks for the fix.

Omranic 11-26-2005 01:02 PM

Sorry,
you are right
Fixed ...........

but I say that this error doesn't appear @ all forums coz I installed this on many forums & no errors appeared inspite of presence of this extra space

any way now it is fixed

Snake 11-26-2005 01:41 PM

Yeah thanks for that.

Solid Snake, ever thought of making a hack for Total Hits & Total Unique Hits? That would be cool, y'know.

funinthesun 11-26-2005 02:55 PM

*Installed* Thanks :)

Omranic 11-27-2005 10:01 AM

Quote:

Originally Posted by Aftermath
Yeah thanks for that.

Solid Snake, ever thought of making a hack for Total Hits & Total Unique Hits? That would be cool, y'know.

can you explain ...


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