![]() |
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 |
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; |
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 |
i think i could just have this as a template addon, below copyright info
could i do that ? |
no you can't do this as a template addon, it's a php code, you have to edit index.php
|
All times are GMT. The time now is 07:33 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|