• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How can I add images in message user info with custom profile fields

A

account8226

Guest
#1
Hey, I would like to add an image to my message_user_info, that depend from the custom profile field that a member choosed.

Thanks for the help :)
 
R

ragtek

Guest
#2
You can use the html output
Value Display HTML:

If not empty, this allows you to format the value of this field using HTML, allowing you to do things like link or mark up the output. You may use these placeholders: {$value} - the field's display value; {$valueUrl} - the field's display value for use in a URL, {$choice} - the underlying value of the chosen option, and {$fieldId} - the ID of this field (beziehungsstatus).
 
A

account8226

Guest
#3
You can use the html output
And how can I do in order that the value entered by the user in his profile field can put X or Y image. For example the user have to choose btw 1 or 2, if he choose 1 it will show the image of a 1 and if he choose two it will put a image of the number 2.
 
R

ragtek

Guest
#4
name the image for 1 1.png and for 2 2.png:p
then set the url to the image => <img src="........{$value}.png" />
 
A

account8226

Guest
#5
Thanks, btw it's not working for me, there is a broken image whom the link is site.com/images/.png I added the img src code into message user info.
 

borbole

Well-known member
#7
Thanks, btw it's not working for me, there is a broken image whom the link is site.com/images/.png I added the img src code into message user info.
What is the exact code that you used?

Can you post a link to your forum btw? So we can see it first hand.
 

borbole

Well-known member
#13
Which CSS lol ?
In order to help you properly we will need to see the full code that you are using. Otherwise it will be a guess game which is a waste of time for everyone included, for you and everyone that will try to help you out.