The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello,
I'd like to remove the no permission page for guests with a custom page. Can someone please assist me on how to do it? Many thanks. |
#2
|
|||
|
|||
![]()
Anyone, please?
|
#3
|
||||
|
||||
![]()
You have a custom page and it is giving guests a no permission message? You must have the code in the page then. Look for something like this and remove it (I don't know what your's looks like since you haven't printed out your code):
PHP Code:
|
#4
|
|||
|
|||
![]()
Hey Lynne,
You misunderstood me, I meant that I want a custom page shown to guests instead of using a no permission page. Thanks |
#5
|
|||
|
|||
![]()
Maybe you could try this mod: https://vborg.vbsupport.ru/showthread.php?t=172989
or you could try this plugin code: Code:
if (!$vbulletin->userinfo['userid']) { $vbulletin->url = 'custom page url'; eval(print_standard_redirect('no permission')); } using the error_nopermission hook (replacing 'custom page url' with your page url of course). I did a brief test, but you'd want to test it more if you try using this. |
#6
|
|||
|
|||
![]()
Hello,
Where do I find the error_nopermission hook :$ ? |
#7
|
||||
|
||||
![]()
Do a search in your files for "error_nopermission" and you'll find it in functions.php
|
#8
|
|||
|
|||
![]()
Hello Lynne,
I don't exactly know where kh99 is asking me to put the following code: Quote:
Quote:
Thanks, I appreciate your help. |
#9
|
||||
|
||||
![]()
He's talking about creating a plugin using the error_nopermission hook location. Take a look at this in the manual - Plugin System
|
#10
|
|||
|
|||
![]()
You could edit the STANDARD_ERROR templates and replace it with your custom code.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|