![]() |
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 |
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? |
work gr8
thanks for gr8 help |
No problem! Just pass it on when you can.
|
All times are GMT. The time now is 05:01 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|