This hack was done by Kier, just wanted to post it in its own thread
What It Does
Counts all the views for each thread and adds them together. Basically a sum of the pageviews for all of your threads.
How To Implement This
Copy and paste this code into index.php in the regular forum directory.
Then just print $totalviews anywhere you want.
Example: http://www.systemlogic.net/boards on the top left next to the number of posts/threads stats.
What It Does
Counts all the views for each thread and adds them together. Basically a sum of the pageviews for all of your threads.
How To Implement This
Copy and paste this code into index.php in the regular forum directory.
PHP Code:
// Total Thread Views
$boardviews = $DB_site->query_first("
SELECT SUM(views) AS threadviews FROM thread");
$totalviews = number_format($boardviews[threadviews]);
Example: http://www.systemlogic.net/boards on the top left next to the number of posts/threads stats.
Comment