MyBB Central

Full Version: Page avalable only for users !?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi .
I added some costum pages . (I have used the tutorial of MattR)
I want to make It avalable to users .
How can I make It if I can ?
Thanks
ByteHunter
To deny guest access:

PHP Code:
if ($mybb->user['uid'] == 0)
{
error_no_permission();


or

PHP Code:
if ($mybb->user['usergroup'] == 1)
{
error_no_permission();


I guess that has to go in the file for the page near the top.
Thanks MattR
+ Reputation Smile
ANother question :
I want my guests to see the page for 3 seconds Smile
How can I make that code to redirect if is possible Smile ?
Thanks
ByteHunter