i want to prevent unregistered users to see my forum, how many people are online and number of registered users. How can i do it?
AdminCP> Users and Groups> Manage Groups>
Under "Unregistered" Choose "Edit Usergroup"> Go> Set the following settings as "No":
-Can View Board
-Can View Who's Online
Click "Update Usergroup"
kodaks Wrote:AdminCP> Users and Groups> Manage Groups>
Under "Unregistered" Choose "Edit Usergroup"> Go> Set the following settings as "No":
-Can View Board
-Can View Who's Online
Click "Update Usergroup"
thank you very much for your help
Your welcome!
I searched to find this topic, and it seems to answer my question. Well part of it. How can you get it so that unregistered or not logged in visitors get a message box (example "Welcome. You are not registered or not logged in. You should register on our site, because etc.)? How can I do that?
in global.php before ?> you can add in:
$guestmessage = "";
if($mybb->user['uid'] == 0)
{
$guestmessage = "text here...";
}
and then use $guestmessage in your templates where ever you want it to show up
Ok, I just want to make sure, but I leave $guestmessage = ""; empty like it is, and I add text to $guestmessage = "text here..."; right?