I have a custom page on my forum which is viewable to everyone currently, how do I make it member and staff viewable only, so basically only registered people can access it.
http://horseworld.dreamhosters.com/
I am making a plugin which is a custom page manager but it's not finished but an alpha was out but very bugged. So I should get a beta out soon.
You could add this code in your file.
if($mybb->user['uid'] == 0)
{
error_no_permission();
}
I tried adding this code to the template - no good, and I also tried adding it to the custom PHP page, no good.
Where does it go and what is the exact syntax?
Thank you!
S
^ the code segment can be added in your custom php page, just after including global.php file