swissbob
02-15-2007, 03:38 PM
I am trying to modify the Memberinfo template to include some custom checkbox user fields. However, I am struggling a little.
At the moment I have something like this for each option (copied from the Myspace mod memberinfo template):
<if condition="$post['field38']&4">
$comma Networking
<if condition="$comma =','"></if>
</if>
How can I instead do this:
<if condition="$post['field38']&4">
$comma $post['field38']&4
<if condition="$comma =','"></if>
</if>
without getting an error? I can't use $post['field38']&4 as a straight variable. If there an easier loop system I could use?
I could of course just type them all in, but surely there is a more elegant way of doing it?
Thanks for any help on this - I am not yet used to the vBulletin system :)
At the moment I have something like this for each option (copied from the Myspace mod memberinfo template):
<if condition="$post['field38']&4">
$comma Networking
<if condition="$comma =','"></if>
</if>
How can I instead do this:
<if condition="$post['field38']&4">
$comma $post['field38']&4
<if condition="$comma =','"></if>
</if>
without getting an error? I can't use $post['field38']&4 as a straight variable. If there an easier loop system I could use?
I could of course just type them all in, but surely there is a more elegant way of doing it?
Thanks for any help on this - I am not yet used to the vBulletin system :)