Profile fields & Input Mask clarification

Started by meemzo, July 26, 2014, 01:30:02 AM

Previous topic - Next topic

meemzo

So I'm trying to accomplish this goal with the profile fields. I want to create a profile field that when a user selects a name it is associated with an image. That image shows up in their post profile.  Is this possible, and is it achieved through the input mask?

Kindred

no....   it would be accomplished through the "eclsoing code" section.

the input mask is used to validate that the input is "clean" (free from malicious code). It has no effect on the display.

http://wiki.simplemachines.org/smf/SMF2.0:Features_and_Options#Custom_Profile_Fields

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

meemzo

Can I please get more details on how to have images as choice in the profile field?

Kindred

did you read the link?

You can not have images IN the choices...
but you can do something like

radio buttons:
- choice1
- choice2
- choice3

Show Enclosed Within Text (Optional)
<img src="{DEFAULT_IMAGES_URL}/{INPUT}.png" alt="{INPUT}" />

and then, in Themes/default/images you put choice1.png, choice2.png, choice3.png
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

meemzo

Yes, I read the link, but didn't understand it until your post, which just made more sense to me.  Thank you for the clarification!

Advertisement: