The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]() Quote:
Ta |
#12
|
|||
|
|||
![]() Quote:
--------------- Added [DATE]1259359196[/DATE] at [TIME]1259359196[/TIME] --------------- Quote:
Next to "Hook Location", find "error_nopermission" For "Title" enter something so you'll know what it is later, like "Guest No Permission Redirect" or whatever you want. Paste the code in the big text box. Select "Yes" next to "Plugin Active" Save If you want to disable it later, you can just go to "Plugin Manager" and uncheck the "Active" checkbox and save. (Or delete it completely if you want). You really should read that part of the manual if you get a chance, it's not really very long. |
#13
|
|||
|
|||
![]()
Hello,
It doesn't redirect to the custom page I put in the code, instead it shows a error. Parse error: syntax error, unexpected $end in /home/xxxx/public_html/includes/functions.php(2458) : eval()'d code on line 5 |
#14
|
|||
|
|||
![]()
When you pasted the code did you get the '}' character on the last line? When you quoted it a few posts ago it's missing the last line.
|
#15
|
||||
|
||||
![]()
Please post *exactly* what you put in your plugin.
|
#16
|
|||
|
|||
![]()
if (!$vbulletin->userinfo['1'])
{ $vbulletin->url = 'http://google.com'; eval(print_standard_redirect('no permission')); } Using google as a test. |
#17
|
|||
|
|||
![]()
That code works for me. Did you change it to userinfo['1'] for testing? That was the part that did it only for guests.
It's getting confusing and I don't know what to tell you, so I'll leave it to Lynne... |
#18
|
|||
|
|||
![]()
Hey,
No, I want guests to be redirected to the custom page. Thanks |
#19
|
|||
|
|||
![]()
Well - probably Lynne had the same thought.
So - sorry, I didn't really understand your last post - is it working now? |
#20
|
||||
|
||||
![]()
Try this:
PHP Code:
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|