MyBB Community Forums

Full Version: Must Be Logged In
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

Can anyone tell me if there is a way to make a new page only visible to people that are logged into the forum?

Thank you!

Steven
if(!$mybb->user['uid'])
{
	error_no_permission();
}

Depending how your custom page is setup you can probably just throw that at the top of the code.
YOU my friend are from heaven - THANK YOU!

Steven

Little struggle here - all the templates are in HTML of course, edited those 100 times, but adding PHP makes it nanners - does this code go in the PHP file for the page then?

Steven

I got it Smile Thanks!

http://www.thebionicwoman.com/entry.php
How do I make it so if they are logged-in, it continues loading the rest of the PHP page?