PDA

View Full Version : question => variables


HooGLaNDeR
05-23-2003, 11:26 AM
hello ppl, im new to this. so please bare with me.
i am looking for the variables. The VB variables.
i wanna know what variables i can use.

and whats important for me , variable can i find for the admins.
So i can make certain parts of my page only visible to admins.

tnx a lot in advance.

//HooGLaNDeR

Velocd
05-23-2003, 11:57 AM
If you wanna make things only visible to the admin:


if($bbuserinfo[userid] == 1){

// place code here

}


$bbuserinfo[userid] is your userid, so if your userid is not 1, just change that value. If you want to add more admins, that is if you have more, then just add more conditions:


if($bbuserinfo[userid] == (1 || 2 || 3)){

// place code here

}

HooGLaNDeR
05-23-2003, 12:08 PM
thnx a million
:)