Hello folks,
Just need a quick hand with a condition statement...
I'm trying to use two different ad codes depending on if the member is male or female.
I created a profile field for Man / Woman.
I currently have:
I know the problem is with the condition code, and I also know I can't use (or at least, I don't know how to if I can?) is_member_of as that is for member groups, not profile fields.
Any help, muchly appreciated.
ETA: I mean, I know the above code works on the postbit and checks whether the member who posted is male or female... what I need it to do though, is check the reader's membership to field7 - whether they are male or female, and display ads according to the sex of the view - not the poster.
Just need a quick hand with a condition statement...
I'm trying to use two different ad codes depending on if the member is male or female.
I created a profile field for Man / Woman.
I currently have:
Code:
<if condition="$post['field7'] == 'Man'"> <--code here for [I]male[/I] members--> </if> <if condition="$post['field7'] == 'Woman'"> <--code here for [I]female [/I]members--> </if>
Any help, muchly appreciated.
ETA: I mean, I know the above code works on the postbit and checks whether the member who posted is male or female... what I need it to do though, is check the reader's membership to field7 - whether they are male or female, and display ads according to the sex of the view - not the poster.
Comment