The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom page template not for guests accessable
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 |
#2
|
|||
|
|||
It would have to be in the php file that calls the template. I think this would do it
Code:
if(!$show['member'] { print_no_permission(); } See the upper part of online.php for an example |
#3
|
|||
|
|||
Nice thank you!
It worked Code:
if(!($show['member'])) { print_no_permission(); } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|