PDA

View Full Version : Restrictions On Custom Pages


JordanBuss13
09-07-2013, 11:19 AM
Hey There

I've got a Custom page I added for my forum however how do i make it so Guests can't view it? It's on my navigation but I'd like it so Resisted Members can only view it? Is there a code or?

ozzy47
09-07-2013, 11:59 AM
How was thew page added?

JordanBuss13
09-07-2013, 12:08 PM
How was thew page added?

Added Lynn Tutorial

Basically added a new PHP File in my forum folder then added a new template to my theme

ozzy47
09-07-2013, 12:12 PM
Link to the article please, so I can see how she adds it.

JordanBuss13
09-07-2013, 12:15 PM
Link to the article please, so I can see how she adds it.

https://vborg.vbsupport.ru/showthread.php?t=228112

ozzy47
09-07-2013, 12:19 PM
Ok just to be clear, you want the guests to not see the navigation tab, or the article?

JordanBuss13
09-07-2013, 12:23 PM
Ok just to be clear, you want the guests to not see the navigation tab, or the article?

Not to see the Navigation Tab

ozzy47
09-07-2013, 12:26 PM
OK, IIRC in the Navigation Manager, for the field Show Permission Name add member there, then it should only be visible by members.

cellarius
09-10-2013, 12:12 PM
Not to see the Navigation Tab
You realize that users can visit that page anyway once they know the link? Security by obscurity does not work.

Better add this to your PHP file, too:

// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################

if (!$vbulletin->userinfo['userid'])
{
print_no_permission();
exit();
}