View Full Version: Allow guests to see forums, but not enter

Big Boards > IF Administration & Moderation > Allow guests to see forums, but not enter



Title: Allow guests to see forums, but not enter
Description: includes code to show topic TITLES only


HelenaZF - September 6, 2006 05:59 PM (GMT)
You can set this up in your Admin Control Panel

First, make sure you are not forcing guests to log in:

ACP > System Settings > Security & Privacy > Security (Troublesome Users >

"Force guests to log in?" NO

ACP > Forum Control > Permission Masks > Guest Mask
Make sure boxes are ticked so guests can READ all the forums you want them to see on the index.

ACP > Users & Groups > Manage User Groups > Edit Guest group >

"Can view board?" YES

"Can view other members topics?" NO


Guests will see all your forums on the index but will get an error message if they try to enter them.


Another way would be to enable the first two parts, and then add this code to your Javascript section:

Code that lets guests read TOPIC TITLES but not the content of the topics. When they try to click in, they get redirected to the login page:

ACP > Skinning & Styles > Board Wrappers > Javascript
CODE
<script type="text/javascript">
<!--

if(document.cookie.match(/member_id=0/i) || !document.cookie.match(/member_id=/i)){
if(location.href.match(/showtopic=\d+/i)){
location.href = "index.php?act=Login";
}
}

//-->
</script>




Hosted for free by InvisionFree