![]() |
easy dude
Just insert $totalviews since 1-5-01 into where you want it on your forum home template :) |
Well, it's very simple. Where ever you stick the $totalviews, just put the text by that. For example, if you put it in your forumhome template, so it's below your total threads and total posts, as I did, like this:
Code:
<b>$totalviews</b> total thread views Code:
<b>$totalviews</b> total thread views since May 7, 2001 |
Where do you paste the code at, in the index.php? Anywhere special.
Can someone give an example of placement. Thanks Dan |
in the forum home template
Put it under launch buddy list or wherever |
Quote:
|
Thanks very much,
What about the index.php file I need to edit. Where should I put the code it's says in the above post. It say cut and paste this code into the index.php file. |
just find a place... like under total posts in index.php
|
I can't find total posts in the index.php file. Can someone cut out a small part of this file were they have this code placed in the index.php file?
// Total Thread Views $boardviews = $DB_site->query_first(" SELECT SUM(views) AS threadviews FROM thread"); $totalviews = number_format($boardviews[threadviews]); |
In index.php, look for this:
Code:
// get newest member This is how mine looks: PHP Code:
|
Worked like a charm. I was getting messed up because I didn't realize at first there are two index files.
|
All times are GMT. The time now is 01:42 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|