Member only view list of thread but can't view thread
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #4
RE: Member only view list of thread but can't view thread
Ad this:

PHP Code:
if($mybb->user['gid'] == 'A' && $thread['fid'] == 'X')
{
error_no_permission();
}


And after (showthread.php):

PHP Code:
$plugins->run_hooks("showthread_start");


And after (archive/index.php):

PHP Code:
$plugins->run_hooks("archive_thread_start");


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 06-05-2012 06:21 PM by Sama34.)
06-05-2012 06:21 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Member only view list of thread but can't view thread - Sama34 - 06-05-2012 06:21 PM

 Standard Tools
Forum Jump: