MyBB Community Forums

Full Version: Make a page or link go to a login page?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2013-01-31, 06:37 AM)Seabody Wrote: [ -> ]How can it be both? Page Manager makes pages like this: www.example.com/misc.php?page=foobar, custom pages are like www.example.com/foobar.php.

Regardless, the PHP would be:

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

Pagemanager you can use rewrite rule a to make it example.com/foobar.php
I also have custom pages that I want blocked out the members only.

Btw, where would I put the code?
Still doesn't mean you created it yourself, you just applied a rewrite.

At the top of the page, making sure that the PHP option in Page Manager is enabled. (Not sure what it's called, haven't used Page Manager in a while)
Pages: 1 2