djsydeburnz
01-14-2006, 09:16 PM
I have a small bit of code someone helped me out with do display multiple choices in a profile field on my site. The only problems is that we cannot figure out how to remove the spaces in between the words. For example, it will be dipslay like this:
Straight , Attatched , Looking
insead of:
Straight, Attatched, Looking
Any help is appreciated!!!
<if condition="$post['field13'] & 1">
$comma Gay
<if condition="$comma = ','"></if>
</if>
<if condition="$post['field13'] & 2">
$comma Straight
<if condition="$comma=','"></if>
</if>
<if condition="$post['field13'] & 4">
$comma Bi
<if condition="$comma = ','"></if>
</if>
<if condition="$post['field13'] & 8">
$comma Single
<if condition="$comma = ','"></if>
</if>
<if condition="$post['field13'] & 16">
$comma Attached
<if condition="$comma = ','"></if>
</if>
<if condition="$post['field13'] & 32">
$comma Looking
<if condition="$comma = ','"></if>
</if>
<if condition="$post['field13'] & 64">
$comma Not Looking
<if condition="$comma = ','"></if>
</if>
Straight , Attatched , Looking
insead of:
Straight, Attatched, Looking
Any help is appreciated!!!
<if condition="$post['field13'] & 1">
$comma Gay
<if condition="$comma = ','"></if>
</if>
<if condition="$post['field13'] & 2">
$comma Straight
<if condition="$comma=','"></if>
</if>
<if condition="$post['field13'] & 4">
$comma Bi
<if condition="$comma = ','"></if>
</if>
<if condition="$post['field13'] & 8">
$comma Single
<if condition="$comma = ','"></if>
</if>
<if condition="$post['field13'] & 16">
$comma Attached
<if condition="$comma = ','"></if>
</if>
<if condition="$post['field13'] & 32">
$comma Looking
<if condition="$comma = ','"></if>
</if>
<if condition="$post['field13'] & 64">
$comma Not Looking
<if condition="$comma = ','"></if>
</if>