Log in

View Full Version : Top X Stats - Permissions for Latest Post


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!

kall
09-09-2004, 01:54 AM
Is that saying that Unregistered / Not Logged In is a "privaledged" (the correct spelling is 'privileged') group?

That's usergroup 1...

gfxhavenowner
09-09-2004, 02:01 AM
1 was just used as an example. For me, the usegroup is 6. Change the 1 to whatever usergroup you want to be privlaged.

PheReFuLL
11-12-2004, 08:07 PM
How come it doesn't allow multiple usergroups to be added to the privelaged list? oO

MacGyveR
03-22-2007, 11:30 AM
- Unripe.... :(