PDA

View Full Version : Custom page template not for guests accessable


Cubematisiert
02-23-2015, 10:37 PM
Hi,

i have a custom page/template added to my forum. But i want to show the page only to register users. How can i add the standard vbulletin message: "You are not logged in or you do not have permission to access this page. This could be due to one of several reasons: ... " to the template?

I hope someone can help me ;)

nerbert
02-23-2015, 11:43 PM
It would have to be in the php file that calls the template. I think this would do it

if(!$show['member']
{
print_no_permission();
}


This should go right after require_once('./global.php');

See the upper part of online.php for an example

Cubematisiert
02-24-2015, 02:09 AM
Nice thank you!

It worked ;)

if(!($show['member']))
{
print_no_permission();
}