AFemaleProdigy
11-27-2011, 07:02 PM
I want my member.php (profile pages) to use an if condition that says if the profile being viewed is a member of xyz usergroupid, then display xyz content. I am adding the condition to the memberinfo_block_aboutme template.
So if the profile is of a Venue, it should show venue related content. If the profile is of a Employee, then it shows employee related content. Etc.
My problem is the condition I wrote is basically saying if the USER VIEWING the profile is a member of xyz usergroupid, then show xyz content. I don't want that. I want the condition applied to if the PROFILE BEING VIEWED by ANYONE is a member of xyz usergroup. Hope that makes sense.
Thanks!!! :)
--------------- Added 27 Nov 2011 at 15:43 ---------------
Nevermind... I figured it out. Here is the solution if anyone needs it...
<vb:if condition="is_member_of($userinfo,10)">
So if the profile is of a Venue, it should show venue related content. If the profile is of a Employee, then it shows employee related content. Etc.
My problem is the condition I wrote is basically saying if the USER VIEWING the profile is a member of xyz usergroupid, then show xyz content. I don't want that. I want the condition applied to if the PROFILE BEING VIEWED by ANYONE is a member of xyz usergroup. Hope that makes sense.
Thanks!!! :)
--------------- Added 27 Nov 2011 at 15:43 ---------------
Nevermind... I figured it out. Here is the solution if anyone needs it...
<vb:if condition="is_member_of($userinfo,10)">