Limey-YMR
10-13-2004, 07:57 PM
Hi,
This might be a really simple question, but I have tried RTFM and reverse engineering installed hacks and not figured this out.
How do I parse out the results of a custom profile field multiple choice item.
I have "Shows attended" and have populated about 12 different choices, here is the code I have in the postbit to try to display the results:
<if condition="$post[field67]>0">
<div><span class="smallfont"><strong>Shows Attended:</strong> $post[field67]</span></div>
</if>
I'm getting just a two digit representation from the database instead of the correlating text of which shows the number i.e. "15" equates to.
User Profile handles this by simply dumping $customprofile but I only want to dump the one custom field, (field67) into my postbit and nothing if it's not populated, hence the if condition.
Is it some kind of phrase addition to add the field as a variable for parsing?
cheers.
Mark
This might be a really simple question, but I have tried RTFM and reverse engineering installed hacks and not figured this out.
How do I parse out the results of a custom profile field multiple choice item.
I have "Shows attended" and have populated about 12 different choices, here is the code I have in the postbit to try to display the results:
<if condition="$post[field67]>0">
<div><span class="smallfont"><strong>Shows Attended:</strong> $post[field67]</span></div>
</if>
I'm getting just a two digit representation from the database instead of the correlating text of which shows the number i.e. "15" equates to.
User Profile handles this by simply dumping $customprofile but I only want to dump the one custom field, (field67) into my postbit and nothing if it's not populated, hence the if condition.
Is it some kind of phrase addition to add the field as a variable for parsing?
cheers.
Mark