Back to Modification Graveyard

Stop Posts and Threads Counting Towards FORUMHOME Totals
Mod Version: 1.00, by Stormraven

This thread is in the Modification Graveyard.
vB Version: 3.8.2 Rating: (0 vote - 0 average) Installs: 6
Released: 09 May 2009 Last Update: Never Downloads: 1
Not Supported Template Edits Code Changes  

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.


vblts.ru supports vBulletin®, 2022-2024