PDA

View Full Version : user owner vs user viewing variables


turbosatan
05-29-2010, 04:43 PM
Hi
My question is which variables to use when allowing or disallowing user access to an area not just for the viewing member but for the owner of the profile area.

say for example user bob is viewing user janes profile.

I want to only show bob field 7 on janes profile if jane is a member of a certain usergroup.

basically what i am asking is if i use <if condition="$bbuserinfo['field1']=='yes'>Output something</if> this applies to the user who is viewing it only.

How do i specify that the profile owner should have a certain value in field 1 before displaying the ouput

ahmed-samara
06-01-2010, 04:58 AM
This templates

<if condition = "($bbuserinfo['field1'] == 'male' ")
code
<else />
code
</if>


Or you could put this in phpinclude:

if ($bbuserinfo['field1'] == 'male')
{
echo "code";
}
else
{
echo "code";
}