miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

how to create a "secret room" in particular topic

Author senzacionale
Registered
#1 | Posted: 16 Aug 2006 18:04 | Edited by: senzacionale 
I would like to know if in minibb is it possible to have secret room, that only some users can access to it and other users can't see and visit it.

My english isn't perfect but i hope you understand me.

Author Paul
Lead Developer
#2 | Posted: 16 Aug 2006 18:07 
You can protect whole forums by one password, and spread this password within your users. Look up for $protectWholeForum, $protectWholeForumPwd options in setup_options.php also as in manual.

Author senzacionale
Registered
#3 | Posted: 16 Aug 2006 21:33 
what about just one topic not whole forum, just one topic?

Is this also possible becouse nothing is said about this in manual.

thx

Author Paul
Lead Developer
#4 | Posted: 17 Aug 2006 07:47 | Edited by: Paul 
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.

Author senzacionale
Registered
#5 | Posted: 17 Aug 2006 09:50 
thx Paul, this rocks

thx again!

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / how to create a "secret room" in particular topic Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB