Log in

View Full Version : Hide php code?


kid_man_2005
08-25-2007, 12:00 PM
hello to the forum

i have a cbox chat and i want to hide the chat until you log in the forum

what code i need to hide


this is the chat

http://cbox.ws/

cheat-master30
08-25-2007, 01:06 PM
You would surround the Cbox embed code with an if conditional. Like this:

<if condition="is_member_of($bbuserinfo)">
[cbox code goes here]
<else />
Other code
</if>Or similar.

kid_man_2005
08-25-2007, 03:01 PM
You would surround the Cbox embed code with an if conditional. Like this:

<if condition="is_member_of($bbuserinfo)">
[cbox code goes here]
<else />
Other code
</if>Or similar.
thanks let try to see what happen

thanks let try to see what happen
The following error occurred when attempting to evaluate this template:

Warning: Missing argument 2 for is_member_of() in /includes/functions.php on line 374

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


this mess happen when try to wrap the cbox code

Kirk Y
08-25-2007, 04:06 PM
is_member_of($bbuserinfo) should be is_member_of($bbuserinfo, X,Y)

Where X and Y are the Usergroup(s) you'd like to the data displayed to.

kid_man_2005
08-25-2007, 05:36 PM
is_member_of($bbuserinfo) should be is_member_of($bbuserinfo, X,Y)

Where X and Y are the Usergroup(s) you'd like to the data displayed to.
ok thanks let tray to see what happen now