MyBB Community Forums

Full Version: Make Costum pages with access for only members.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I know how to make a costum page.
I use the method from this thread: http://community.mybb.com/thread-6615.html

But how can I make a costum page were only members can get access to.

Thanks in advance I really need this! Big Grin
Install the PHP in Templates plugin, then write something like this in your custom page:

<if $GLOBALS['mybb']->user['usergroup'] == 2 then>
	//content for registered users
	<p>Have some candy!</p>
<else>
	//content for unregistered users
	<p>No candy for you.</p>
</if>