Log in

View Full Version : Profile Field Question


hobbybox
06-08-2008, 01:03 PM
Id like to display the info from a Profile field in the Post Bit - however this is a problem im having....

Id like to use a drop down list for the slection however when the post is shown instead of displaying the content of the selection, it displays the number of the selection...

<if condition="$post['field5']"><div><b>---------:</b><br>$post[field5]</div></if>

Say the list to choose from is apples, oranges, grapes

The postbit will print --------: 1 (or 2 or 3 depending on the selection number)

Instead of the 1 I would want it to show what 1 represents which is Apples...

Can anyone help out with this or is this something I will just need to work around?

peterska2
06-08-2008, 01:08 PM
you need to work with additional conditions to work with the bitfield numbers for your choices. You might also be able to do this with a plugin. Multiple selection profile fields store the information as a bitfield so this needs to be translated back to readable form in the postbit.

Opserty
06-08-2008, 02:18 PM
See if the 2nd post of this thread helps: How To Add A Profile Field To The Postbit - vBulletin Community Forum (http://www.vbulletin.com/forum/showthread.php?t=168741)

hobbybox
06-09-2008, 12:50 AM
Thank you very much - this sounded complicated but with that post I can easily do it..thank you.