Not Solved How to restrict portal access to guests
#1
Not Solved Pencil 
Search a little, but doesnt find anything.

I need plugin or code mod to restrict portal access to guests.

It would be nice to get message when guests goes to portal, saying that they are not registered.
Reply
#2
Not Solved
(2009-12-13, 02:08 PM)apo Wrote: Search a little, but doesnt find anything.

I need plugin or code mod to restrict portal access to guests.

It would be nice to get message when guests goes to portal, saying that they are not registered.

Well, if you go the guests group and untick can view board option it will restrict access to the portal as well.

If you want to restrict access to portal only but want your guests to view the forum normally do the following:

Open the portal.php file and find the following:

$plugins->run_hooks("portal_start");

And right below it add:

if ($mybb->user['usergroup'] == "1")
{
error_no_permission();
}

This ought to do it. But if you don''t want to edit the files, I will release a plugin for this.
Plugin released here:

http://community.mybboard.net/thread-61300.html
[Image: sig.gif]

Contact me in private only if you need paid help with mybb-related issues. Otherwise, please don''t, unless I invite you to. Thanks Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)