The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Display 'No Permission' in custom template
I am creating a template, and I have the if statement to show what I want to certain groups, however I am having difficulty showing the "You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:" message with the login box using the vb:else. Any insight would be appreciated. thanks
|
#2
|
||||
|
||||
What code are you using for the else statement and what is actually showing up? Usually that is all handled in the php code, not just template code and that could be why you aren't getting the results you want.
|
#3
|
|||
|
|||
When I put text in the else section I can see that, but I want to get the whole permission denied message with login prompt. This is what im using.
PHP Code:
|
#4
|
||||
|
||||
As I said previously, it is usually called via php and it calls a function that spits out the who page/form. You would need to use php to do what you want instead of template conditions.
|
#5
|
|||
|
|||
Ok cool, do you know what the function I need to call is off hand? If not I can look it up, atleast I have a lead.
Thanks |
#6
|
|||
|
|||
I think you're looking for the "print_no_permission();" function call
|
#7
|
|||
|
|||
ok, let me try that, is there a certain way to call that function? do i just insert it in the vb:else ? thanks
|
#8
|
|||
|
|||
Here's an example of the function being called in PHP
if (!$vbulletin->userinfo['userid']) { print_no_permission(); } I'm not sure where you're trying to call this from but it's usually called from a PHP file as Lynne has stated. Check forum.php, blog.php , etc in your forum root directory to see how it is used. |
#9
|
|||
|
|||
ok thanks ill take a look, but i have been trying to do this in a template i created
|
#10
|
|||
|
|||
Check in your templates for STANDARD_ERROR_LOGIN . This may be what you're looking for
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|