PDA

View Full Version : certain usergroups can only see certain threads


titter
06-18-2006, 08:55 PM
I want to make it so only certain usergroups view only 1 or 2 threads in a section. I have them set to view the forum in forum permissions, and the content and others threads are set to No. I bypassed the content with a plugin, but now I need to make that thread viewable when they goto the forum section.

Here is the code for the content bypass which is hooked into showthread_getinfo:

if (
$vbulletin->userinfo['usergroupid'] == 1
AND
in_array($threadid, array(669))
)
{
$vbulletin->bf_ugp_forumpermissions['canviewthreads'] = 1;
}