The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
total thread views
what is the code i would add into my stats panel to have the total thread views info please.
|
#2
|
||||
|
||||
bump
|
#3
|
|||
|
|||
i would like this too! Kinda like what they have here at VB.org
|
#4
|
||||
|
||||
open index.php
find: PHP Code:
PHP Code:
|
#5
|
|||
|
|||
I got errors when I used the code. I fixed it with this...
$countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads, SUM(views) AS views FROM thread'); $totalthreads=number_format($countthreads['threads']); $totalviews=number_format($countthreads['views']); ..."number_format(" doesn't show up under the PHP vB Code statement. |
#6
|
||||
|
||||
Would this add an extra query to forumhome?
|
#7
|
||||
|
||||
Quote:
|
#8
|
|||
|
|||
The "$DB_site->query" was there already... the line wasn't added, only changed.
|
#9
|
||||
|
||||
Quote:
|
#10
|
||||
|
||||
even so it's a slow query, which will slow down loading forumhome a bit.
i'm not a fan of threadviews on forumhome because it isn't really usefull and just slows down the page.... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|