![]() |
Here is how I have mind setup in the forumhome template.
Registered Members: <b>$numbermembers</b><br> Total Threads: <b>$totalthreads</b> | Total Posts: <b>$totalposts</b> | Total Views: <b>$totalviews</b><br> |
This is what my index.php looks like.
$totalthreads=$countthreads['threads']; if ($totalthreads=='') { $totalthreads=0; } // Total Thread Views $boardviews = $DB_site->query_first(" SELECT SUM(views) AS threadviews FROM thread"); $totalviews = number_format($boardviews[threadviews]); |
Webhost
I thought u were just suppose to add // Total Thread Views $boardviews = $DB_site->query_first(" SELECT SUM(views) AS threadviews FROM thread"); $totalviews = number_format($boardviews[threadviews]); How come you got some extra code above this? btw - pardon my lack on php knowledge - but are there permissions set for php files? |
yes code above above ties in with something else.
Email me your index.php and forumhome template for me to look at to joeymoses1@home.com |
Here you go Webhost or anyone else who is willing 2 help me out :) - I copied and pasted the forum home template source in a txt file
Thanks :) This is how i edited the index.php file - I went to my ftp proggy (Cute FTP) first I made a backup of the index file by downloading it on my harddisk - then I right clicked and edited the index file from my uploaded version - it opened into notepad - then added the code - and uploaded the amended version.. I take it php files do not have chmod permissions, do they? |
Try inserting the bold item below
// Total Thread Views $boardviews = $DB_site->query_first(" SELECT SUM(views) AS threadviews FROM thread"); $totalviews = number_format($boardviews[threadviews]); }<--- I think you need that // get newest member $getnewestusers=$DB_site->query_first("SELECT userid,username FROM user WHERE userid=$numbersmembers[max]"); $newusername=$getnewestusers['username']; $newuserid=$getnewestusers['userid']; |
Love this simple hack. Got it installed on my boards. Good job!
|
webhost mate - tried that = still no joy :(
I guess this hack doesnt wanna work on my board! ( sob sob) Anybody got any other ideas? |
try uploading this index.php file, first backup your file on your hardrive then delete the index.php file on your server and upload this one.
[Zip Removed -- don't post full source code!] |
lukman give a url to your board
|
All times are GMT. The time now is 08: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:
|