PDA

View Full Version : Displaying custom fields on postbit.


GameMagpie
11-20-2007, 01:39 PM
Hello,
I'm attempting to shows which consoles my users have. I've created a multiple-selection custom profile field, and I've tried to display that in my postbit using
<if condition="$post['field5']"><div>Platforms: $post[field5]</div></if>

However, it didn't work as I'd hoped it might and rather than listing the selected consoles it's listing a number which I assume is how vBulletin stores the data for those fields.
How can I get vBulletin to convert those to the named options?

GameMagpie
11-21-2007, 04:28 PM
Anyone able to help me out?

snakes1100
11-21-2007, 04:32 PM
Unfortanately that option "multiple-selection" does not parse the data from the DB correctly, there is a work around for that at vbulletin.com, dont recall the link, but its there someplace.

GameMagpie
11-21-2007, 04:44 PM
Thanks a lot. I've found the thread and question, which for anyone else that may be interested in doing the same is here (http://www.vbulletin.com/forum/showpost.php?p=819071&postcount=3).

snakes1100
11-21-2007, 04:57 PM
Yea, i used it once myself for a site, sorry i didnt bookmark it, but i knew it was there someplace, hope it works for ya.