MyBB Community Forums

Full Version: How do i make guests register on a certain page?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello, how do i make guests not see a page on my website?
Hi,

Can you please be more specific? What page would you not like them to see?
well i have a games section, but i only want members on the page, and if there a guest they have to register
You would need to edit the php file to do so. For example, to block the index.php page from being see by guest, you would need to add this right after the global.php has been included.
$mybb->user['uid'] or error_no_permission();

It will look like this:
require_once "./global.php";
$mybb->user['uid'] or error_no_permission();
(2012-08-28, 10:55 PM)Omar G. Wrote: [ -> ]You would need to edit the php file to do so. For example, to block the index.php page from being see by guest, you would need to add this right after the global.php has been included.
$mybb->user['uid'] or error_no_permission();

It will look like this:
require_once "./global.php";
$mybb->user['uid'] or error_no_permission();

thank you very much Big Grin, if i had alot of rep i would give it all Big Grin