inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on May 27, 2014 8:59:05 GMT -8
and show respectively. This is a miniprofile modification I'm working on for here - alotbsols3.boards.net/thread/6/key-buildings-location?page=1&scrollTo=6And this is the code so far: {foreach $[user.mini_custom_field]} {if $[user.mini_custom_field.name] == Activity} {if $[user.mini_custom_field.value] == "Green"} <img src="http://storage.proboards.com/5621422/i/g0_T5mxI1Kd3BVjwy0Rt.png" alt="Active" title="Active"> {elseif $[user.mini_custom_field.value] == "Red"><img src="http://storage.proboards.com/5621422/i/KaViVjUrKQSeYpYm7cFe.png" alt="Inactive" title="Inactive"> {elseif $[user.mini_custom_field.value] == "Orange"} <img src="http://storage.proboards.com/5621422/i/xQVT_6Wn_WcEFG_rZK2J.png" alt="Needs Attention" title="Needs Attention"> {elseif $[user.mini_custom_field.value] == "Deceased"} <img src="http://storage.proboards.com/5621422/i/qA5DaUIDDlvaJkPZmuxj.png" title="Deceased" alt="Deceased">{/if} {/if} {/foreach} I'm sure there's something ridiculous I'm missing but. Brian or David Clark maybe? ((Hope you don't mind me tagging you just I'm hoping you could possibly give some insight)
|
|
#eb7100
33409
0
1
May 9, 2024 18:53:40 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on May 27, 2014 9:50:15 GMT -8
You're missing quotation marks around the word "Activity", which is causing it to break the if statement since a string requires quotation marks.
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on May 27, 2014 9:52:49 GMT -8
I've just updated it to include the quotation works still no working
{foreach $[user.mini_custom_field]} {if $[user.mini_custom_field.name] == "Activity"} {if $[user.mini_custom_field.value] == "Green"} <img src="http://storage.proboards.com/5621422/i/g0_T5mxI1Kd3BVjwy0Rt.png" alt="Active" title="Active"> {elseif $[user.mini_custom_field.value] == "Red"><img src="http://storage.proboards.com/5621422/i/KaViVjUrKQSeYpYm7cFe.png" alt="Inactive" title="Inactive"> {elseif $[user.mini_custom_field.value] == "Orange"} <img src="http://storage.proboards.com/5621422/i/xQVT_6Wn_WcEFG_rZK2J.png" alt="Needs Attention" title="Needs Attention"> {elseif $[user.mini_custom_field.value] == "Deceased"} <img src="http://storage.proboards.com/5621422/i/qA5DaUIDDlvaJkPZmuxj.png" title="Deceased" alt="Deceased">{/if} {/if} {/foreach}
|
|
#eb7100
33409
0
1
May 9, 2024 18:53:40 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on May 27, 2014 13:06:30 GMT -8
Found the problem. You have a > symbol after "Red" instead of closing braces.
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on May 27, 2014 13:11:57 GMT -8
I said it'd be something ridiculously stupid didn't I XD
|
|