inherit
205688
0
Dec 7, 2016 23:11:16 GMT -8
Washuse
6
February 2014
amizomi
|
if code
Dec 15, 2014 2:46:37 GMT -8
Post by Washuse on Dec 15, 2014 2:46:37 GMT -8
Hello! I was wondering; is there a way to insert pictures or text depending on what the users have chosen in their custom profile fields?For example: I have the custom profile field "belongings". If the user choose "sword" there would be an image of a sword shown, and if the user choose "axe" there would be an image of an axe. I thought of having it in the mini-profile and profiles. Hope you can help!BR Amizomi
|
|
#eb7100
33409
0
1
May 9, 2024 18:53:40 GMT -8
Brian
48,129
November 2004
smashmaster3
|
if code
Dec 16, 2014 12:40:00 GMT -8
Post by Brian on Dec 16, 2014 12:40:00 GMT -8
Hi, Washuse. As long as the options are text it should be easy to accomplish. Here's a quick example using if statements inside the mini-profile custom field loop. The blue text would be replaced with your custom field's name. The green sections would be replaced with the selectable values of that custom field. The red would be replaced with the respective image URLs for each of those custom field values, or you can replace their entire lines with the appropriate text. The orange lines are only necessary if you want to include the regular custom fields around the image. Otherwise, you can remove it and the code will work standalone for just that custom field.
|
|
inherit
205688
0
Dec 7, 2016 23:11:16 GMT -8
Washuse
6
February 2014
amizomi
|
Post by Washuse on Dec 17, 2014 3:51:17 GMT -8
Oh I've been looking everywhere for exactly this code. Thousands of thank yous! ^^
|
|