gfxhavenowner
09-08-2004, 10:00 PM
This is my very first hack. It allows you to set usergroups that will bypass the $excludedforums variable and show all the latest posts, regardless of the forum. This is very useful if you want staff to see new threads in the staff forum on the Top X, but not regular members.
You must have the Top X Stats hack installed first!
Open index.php
Find:
$excludedforums = "13"; // forums to be excluded from latest threads. Format "0,5,7"
Above, add:
$privlagedgroups = "1"; //which groups should see everything?
if ($privlagedgroups == $bbuserinfo['usergroupid'])
{
$excludedforums ="0";
}
else
{
Find:
$excludedforums = "13"; // forums to be excluded from latest threads. Format "0,5,7"
Below, add:
}
Closed and upload index.php
Enjoy!
You must have the Top X Stats hack installed first!
Open index.php
Find:
$excludedforums = "13"; // forums to be excluded from latest threads. Format "0,5,7"
Above, add:
$privlagedgroups = "1"; //which groups should see everything?
if ($privlagedgroups == $bbuserinfo['usergroupid'])
{
$excludedforums ="0";
}
else
{
Find:
$excludedforums = "13"; // forums to be excluded from latest threads. Format "0,5,7"
Below, add:
}
Closed and upload index.php
Enjoy!