MyBB Community Forums

Full Version: Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So basically, I'm trying to make a IF statement depending on the UID of a user. I'm basically creating a custom page and only want the user with a certain UID to view the page.

Any ideas?

Found what I'm looking for never mind.
Next time please post the solution to your thread too. It could be helpful to other people.
if($mybb->user['uid'])
{
	$username = htmlspecialchars_uni($mybb->user['username']);
	echo "Hello {$username}!";
}