PDA

View Full Version : postbit question


Ba$im
07-25-2007, 02:25 AM
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 it’s not work
I made name of picture sam name of choise in FieldX
but it’s 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

4x4 Mecca
07-25-2007, 03:52 AM
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?

Ba$im
07-25-2007, 01:31 PM
work gr8
thanks for gr8 help

4x4 Mecca
07-26-2007, 01:10 AM
No problem! Just pass it on when you can.