The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to ban an external page?
I do not have much knowledge of php please help
my code: Code:
<body bgcolor="#ffffff"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <center> <?php define("IN_vbulletin", 1); require_once "../global.php"; if(!in_array($vbulletin->userinfo['usergroupid'], array(1,4,8))){ $a = "Welcome"; echo $a; } else{ if(!$vbulletin->userinfo['usergroupid']) error_no_permission(); $b = "No Permission!"; echo $b; die(); } //my php code ?> </center> </body> |
#2
|
|||
|
|||
Please describe in more details what your goal is.
|
#3
|
|||
|
|||
extra php page to hide the guest
|
#4
|
||||
|
||||
Try this:
PHP Code:
|
#5
|
|||
|
|||
@ozzy47 unfortunately does not hide an extra page
|
#6
|
||||
|
||||
Are you sure you are trying to view the page as a member of either usergroup, 1,4,8 ?
Also add this above the line define("IN_vbulletin", 1); PHP Code:
|
#7
|
|||
|
|||
yes, I'm sure, but it did not work
|
#8
|
|||
|
|||
Try:
Code:
chdir('..'); require_once "global.php"; |
#9
|
|||
|
|||
It was now, thanks
--------------- Added [DATE]1407628085[/DATE] at [TIME]1407628085[/TIME] --------------- How do I get the user name that appears ? Code:
Welcome $bbuserinfo[username] |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|