The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
postbit question
hello
this what I do Admin CP -> User Profile Fields -> Add New User Profile Field->menu with signal choice I write question about what is your gender? male female then I upload folder named it gender in vb/images this folder have to image male.gif female.gif then I go to Admin CP -> Styles & Templates -> Style Manager -> � � -> Postbit Templates -> postbit and add this code Code: <!-- gender --> <if condition="$post[fieldx]"><img src="/images/gender/$post[fieldx].gif" border="0" alt="gender" /><br /></if> <!-- gender --> will this work gr8 with english language but what about arabic language its not work I made name of picture sam name of choise in FieldX but its not work then now is there any way can I use codde for e.g in fieldX if choice "X" put this code else put this code thanks in advance |
#2
|
|||
|
|||
Like this
<if condition="$post[fieldx] == male"><img src="/images/gender/male_image.gif" border="0" alt="gender" /><br /></if> <if condition="$post[fieldx] == female"><img src="/images/gender/female_image.gif" border="0" alt="gender" /><br /></if> Shouldn't that work? |
#3
|
|||
|
|||
work gr8
thanks for gr8 help |
#4
|
|||
|
|||
No problem! Just pass it on when you can.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|