The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Restrict Page by $usergroup or $userid
Hey there
i wanna make a secret page, that only a certain usergroup or userid can view. If not that usergroup, just redirects to a different page. I want to know what to use, as i have very little PHP experience, apart from following instructions on hack installs, and "editing" as i see fit can anyone help me ? Thanks Hamish |
#2
|
||||
|
||||
is this page build in in your forum or a complete stand alone script?
if it requires global.php in some of the first lines you can just make such an if clause: if($bbuserinfo[usergroupid]!=x and $bbuserinfo[userid]!=y) exit; |
#3
|
|||
|
|||
yes, the link to this will be on the main index.php of the forum. So i will just ned that ode u gave me (i think).
Thanks a lot |
#4
|
|||
|
|||
i think i could just have this as a template addon, below copyright info
could i do that ? |
#5
|
||||
|
||||
no you can't do this as a template addon, it's a php code, you have to edit index.php
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|