MikaK
08-12-2006, 07:42 AM
Is there a way to create the OPPOSITE to following
This code filters info for browsing members who ARE in the buddy list of the profile meber they are looking at:
UNDERLYING PHP PAGE (for example member.php)
$mybuddies = explode(' ', trim($userinfo['buddylist']));
TEMPLATE HTML (for example MEMBERINFO)
<if condition="in_array($bbuserinfo['userid'], $mybuddies)">
Displayed if the browsing member IS IN the buddy list
</else>
Displayed if the browsing member IS NOT IN the buddy list
</if>
I would need the opposite filter ie. filtering based on if the browsing member is NOT in the Buddy List of the profile he/she is looking at. So... I guess I'm looking for the opposite of in_array.
Thanks for any ideas!
-Mika
This code filters info for browsing members who ARE in the buddy list of the profile meber they are looking at:
UNDERLYING PHP PAGE (for example member.php)
$mybuddies = explode(' ', trim($userinfo['buddylist']));
TEMPLATE HTML (for example MEMBERINFO)
<if condition="in_array($bbuserinfo['userid'], $mybuddies)">
Displayed if the browsing member IS IN the buddy list
</else>
Displayed if the browsing member IS NOT IN the buddy list
</if>
I would need the opposite filter ie. filtering based on if the browsing member is NOT in the Buddy List of the profile he/she is looking at. So... I guess I'm looking for the opposite of in_array.
Thanks for any ideas!
-Mika