PDA

View Full Version : User chosen Icons in postbit.


theodonnells
04-11-2006, 01:42 PM
Hi i would like to allow my members to choose from 42 small icons.And display 6 of them in a row in the postbit.
These icons show which level they have in an online game..
I need 7 categories each with 6 pics in each, and users can pick one pic from each category.
All i need to know is what is the easiest way to do this with profile fields...
I am using this code to insert it in postbit.
<if condition="$post[field23] != ''">
Gags: <img src="http://www.myforum.pic.gif"align="center">
</if>
I know i need a different field for each pic but how do i set it up as drop down menu's in profile manager?

peterska2
04-11-2006, 09:57 PM
Ok, set up a new profile field for each one choosing single selection drop down menu as the type each time.

Then use this code to insert each one into the postbit template

<if condition="$post[fieldx]">LABEL <img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if>

Replace LABEL with the text that you wish to display in the postbit.

Replace the x with the profile field number generated by vB and upload the images with the names of each selection to the /images/misc directory.

If the titles are the same or there are some repeats, then you may wish to use $stylevar[imgdir_misc]/LABEL/$post[fieldx].gifinstead, giving each profile field it's own subdirectory using the label for the image group as the directory name.

theodonnells
04-12-2006, 07:27 AM
thanks that worked a treat...;)