The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Here is what I have but I don't think it's right, maybe someone can point me in the right direction as far as where I am pulling it from, it's hard to tell if dateline is correct.
Code:
// ### Total Daily Hits ##
$todays_views = $DB_site->query_first('
SELECT COUNT(*) AS count
FROM ' . TABLE_PREFIX . 'attachment
WHERE dateline >= "' . strtotime("-1day") . '"
');
$newhits = number_format($todays_views ['count']);
// ### Total Daily Hits ##
|
|
#2
|
||||
|
||||
|
On second thought, this may be right. Could it be that this info is cached? I do get a reading of what appears to be correct but I have nothing really to compare it to.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|