MyBB Community Forums

Full Version: How to hide things for only registered members
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

I installed mybb 1.6.6 - It's good! I used to use SMF, I think I have been converted

I want to be able to make a members only php form where they can send me the form ect but they have to actually be registered to access it...

I know how to do the form... but how do I make this a members only area using the forums registration features?

Can you help me?

Thanks
Do you want to create a new page for your form or is it going to be included somewhere in the templates?
A new page so it is on its own Smile
You should use the Page Manager plugin then. At the top of your page's code you should put this:

<?php

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

?>
I could possibly be being stupid... but I installed the page manager...

where do you add the pages exactly?
Admin CP -> Configuration -> Page Manager -> Add New Page.