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)
-   -   Show all hits on Forumhome (https://vborg.vbsupport.ru/showthread.php?t=65139)

Kalipo 06-14-2004 10:33 PM

Thanks Boofo :) and addon makerer thingy guy (Y)

Installed :)

xscape2me 07-22-2004 03:56 PM

I'm getting an sql error.

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT COUNT(*) ,
SUM(views) AS hits
FROM 600rr_ thread
mysql error: Table database.600rr_' doesn't exist

mysql error number: 1146

Date: Thursday 22nd of July 2004 12:52:54 PM
Script: http://www.miami600rr.com/forums/?

royals 07-24-2004 06:12 AM

Quote:

Originally Posted by Boofo
I've been all wrong on this guys. Dohh!!! Here is the code you need for the commas. ;)

PHP Code:

$totalhits vb_number_format($totalhits); 



I get this on my page:

Total Hits: 250726 = vb_number_format(250726);



Otherwise this works like a charm - thanks!

royals 07-24-2004 06:16 AM

Nevermind!! I was adding in the template, not my index.php

Thanks Boofo - works!

royals 07-24-2004 06:24 AM

Qusetion - is this hits or visits? Daily? I have that many hits a day so I'm curious.

Thanks! (jeez I'm about to flood this thread)

Hotte@gun 08-10-2004 07:07 PM

Quote:

Originally Posted by xscape2me
I'm getting an sql error.

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT COUNT(*) ,
SUM(views) AS hits
FROM 600rr_ thread
mysql error: Table database.600rr_' doesn't exist

mysql error number: 1146

Date: Thursday 22nd of July 2004 12:52:54 PM
Script: http://www.miami600rr.com/forums/?

There is an whitespace which schouldnt be there use the following code
Code:

// ### Anzeige aller Hits START ###
$totalhits = $DB_site->query_first("
                SELECT COUNT(*) ,
                SUM(views) AS hits
                FROM " . TABLE_PREFIX . "thread
                        ");

        $totalhits = vb_number_format($totalhits['hits']);
// ### Anzeige aller Hits ENDE ###

This includes Numberformating an the wrong set space after FROM " . TABLE_PREFIX . "

italks 09-10-2004 11:48 AM

how the phrase is added.

_______________
Add a new phrase
_______________

totalhits = Totalhits

italks 09-10-2004 11:50 AM

lolz i got it done....i almost forgotten it before.thanks for the hack its great.

fiber1 09-11-2004 10:45 AM

Anyone know how to fix this to work in 3.0.3?

Hotte@gun 09-11-2004 01:49 PM

Quote:

Originally Posted by fiber1
Anyone know how to fix this to work in 3.0.3?

ehm... fix what ?


All times are GMT. The time now is 12:50 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.00984 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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