inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Feb 14, 2017 11:13:20 GMT -8
My code is identical on these. It works for the first one, then doesn't for the next two. and by not working I mean it outputs by showing the html link instead of what it's supposed to show as the value. code: {foreach $[user.custom_field]}{if $[user.custom_field.name] == "Application"}<a href="$[user.custom_field.value]" class="bflink" style="margin-top:-10px;">APPLICATION</a><hr>{/if}{/foreach}
{foreach $[user.custom_field]}{if $[user.custom_field.name] == "Pictures"}<a href="$[user.custom_field.value]" class="bflink">PICTURES</a><hr>{/if}{/foreach}
{foreach $[user.custom_field]}{if $[user.custom_field.name] == "Journal"}<a href="$[user.custom_field.value]" class="bflink">JOURNAL</a><hr>{/if}{/foreach}
The application link shows up fine..but the one after that shows up like this: wtf??? I have no idea why it's doing that. Does anyone know why it might do this?
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Feb 14, 2017 11:15:34 GMT -8
Hi, Tiffy-Bean. In the options for that particular custom field in Members > Custom Profile Fields do you have it set as URL (linked)? If so that causes its value to be rendered as an HTML link. You'll want to use the URL (plain text) option if that's the case.
|
|
inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Feb 14, 2017 11:17:11 GMT -8
Yuup that fixed it. Brian you're my lifesaver today. I was literally banging my head on the desk.
|
|
inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Feb 14, 2017 11:19:22 GMT -8
This is what I get for overhauling my layout.
|
|