![]() |
User chosen Icons in postbit.
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. Code:
<if condition="$post[field23] != ''"> |
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 Code:
<if condition="$post[fieldx]">LABEL <img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if> 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 Code:
$stylevar[imgdir_misc]/LABEL/$post[fieldx].gif |
thanks that worked a treat...;)
|
All times are GMT. The time now is 08:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|