The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User Re-Direct to NO PERMISSIONS
Have the following code to specify which users can use a custom page of mine:
Code:
// Permissions Redirect if ($usergroupid==8) { header("Location: $url_/payments.php"); } else if ( ($usergroupid != 5) && ($usergroupid != 6) && ($usergroupid != 7) && ($usergroupid != 9) && ($usergroupid != 10) && ($usergroupid != 11) ) { header("Location: $url_/payments.php"); } Thanks!! |
#2
|
|||
|
|||
You can call the function print_no_permission(), no parameters, like:
Code:
print_no_permission(); |
#3
|
|||
|
|||
Okay so, code it like:
Code:
// Permissions Redirect if ($usergroupid==8) { header("print_no_permission"); } else if ( ($usergroupid != 5) && ($usergroupid != 6) ) { header("print_no_permission()"); } Thank you again for your help. |
#4
|
|||
|
|||
Well, more like this:
Code:
// Permissions Redirect if ($usergroupid==8) { print_no_permission(); } else if ( ($usergroupid != 5) && ($usergroupid != 6) ) { print_no_permission(); } PHP Code:
PHP Code:
|
#5
|
|||
|
|||
Awesome, that did the trick, thank you
--------------- Added [DATE]1428695984[/DATE] at [TIME]1428695984[/TIME] --------------- Much appreciated!! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|