The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
How to show total page views on forumhome? And if possible, without adding an extra query so it would work just like a total thread views
Code:
$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']);
|
|
#2
|
||||
|
||||
|
just threadviews are saved in the DB, not the pageviews (hits)
so it's not possible without a hack which stores every hit in the db, too (i think vBstats does that) but you can't get the past pageviews through that. |
|
#3
|
||||
|
||||
|
I have the vbstats installed, but its a very long code to copy and paste into index.php, several queries :P
|
|
#4
|
||||
|
||||
|
you just have to copy the part with pageviews, not the whole code
|
|
#5
|
||||
|
||||
|
Thats what I mean, the code part of the pageviews is rather long...
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|