Try to paste in bb_plugins.php the code like that:
if($action=='vthread' and $topic==TOPIC_ID and !in_array($user_id, array(USER_ID_1, USER_ID_2, USER_ID_3) ) ){
$title.=$l_accessDenied; $errorMSG='Sorry! You are not allowed to visit this particular topic, because you are not in allowed users list.'; $correctErr=''; echo load_header(); echo ParseTpl(makeUp('main_warning')); $endtime=get_microtime(); $totaltime=sprintf ("%01.3f", ($endtime-$starttime)); if(isset($includeFooter)) include($includeFooter); else echo ParseTpl(makeUp('main_footer')); exit;
}
Substitute TOPIC_ID by your topic ID and specify array of allowed user IDs instead of USER_ID_1, USER_ID_2, USER_ID_3... etc. |