The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Need hand with conditional statement pls
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: Code:
<if condition="$post['field7'] == 'Man'"> <--code here for male members--> </if> <if condition="$post['field7'] == 'Woman'"> <--code here for female 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. In addition, I will be adding a condition based on the forumID. So for example, a man viewing a thread under the 'fathers forum' (say, ID=10) will see ads for (e.g.) "dads rights, thinning hair help, muscle building" while a woman would see ads similar, but based more towards their sex (e.g.) "safe sex, moms clubs, etc." - however, if a man viewed a different forum, e.g. 'health' , he'd see items relating to mens health - while women viewing the health forum would see ads directed towards women's health... long winded, but you get the idea I hope. |
#2
|
||||
|
||||
I posted on the thread you made at vb.com. You need to specify which template you are trying to use this in.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|