Stop Posts and Threads Counting Towards FORUMHOME Totals
This thread is in the Modification Graveyard.
This small mod was brought to you by CodersHangout.co.uk the http://www.codershangout.co.uk/. I use this small mod on my website, I did a quick search on here to see if it had already been posted but it hadn't, so I thought I would share it with you all.
If you want to stop posts and threads counting towards the totals on FORUMHOME, then this is how to do it. You will need to modify the index.php file for this: Find: Code:
foreach ($vbulletin->forumcache AS $forum) { $totalthreads += $forum['threadcount']; $totalposts += $forum['replycount']; } Replace with: Code:
foreach ($vbulletin->forumcache AS $id => $forum) { if ($id != XX) { $totalthreads += $forum['threadcount']; $totalposts += $forum['replycount']; } } Replace the 'XX' with the ID of the forum that you want excluded from the FORUMHOME totals. If you want to use this code for multiple forums, then use this: Code:
if (($id != XX) && ($id != XX) && ($id != XX)) Please don't forget to click on the install button, and have a nice day Download No files for download. |