inherit
114253
0
Apr 1, 2024 6:38:35 GMT -8
Teg
Can't Wait for V6
3,138
November 2007
teg
|
Post by Teg on Jan 8, 2018 13:07:52 GMT -8
Forum URL: (private)
Alright, I'm posting this here because I want the URL to be private as this is still a work in progress. The URL provided is to the site where this code isn't working properly. However, on a different forum (that I started playing with the theme) the content is working properly.
In the header of the user profile, there are some buttons. The "Character Sheet, Vault, and Dorm Buttons" are not displaying despite the custom fields having a value (this works on the other URL not listed). This information is exactly the same on both sites, but the site above will not display the buttons. It also will not display the content in the Middle section of the profile. I simply added "Coming Soon" so it wouldn't be blank and that text isn't showing either.
Any "Red" help available? Would greatly appreciate it.
Regards, Teg
|
|
#eb7100
33409
0
1
May 2, 2024 9:55:23 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Jan 8, 2018 13:12:31 GMT -8
Hi, Teg. The $[user.mini_custom_field] variables are responsible for this issue. When you want to render custom fields on a profile page you should use $[user.custom_field] while mini-profiles should use $[user.mini_custom_field]. The two variables are not interchangeable. When you specify either profiles or mini-profiles in the Location dropdown in Members > Custom Profile Fields it determines which of those two variables custom fields output to. Since you've specified they should only render in profiles $[user.mini_custom_field] doesn't output anything for those fields.
|
|
inherit
114253
0
Apr 1, 2024 6:38:35 GMT -8
Teg
Can't Wait for V6
3,138
November 2007
teg
|
Post by Teg on Jan 8, 2018 13:16:13 GMT -8
OMG, I'm such a dummy! Haha, yeah - that makes sense. I don't know why I didn't see that. Such a simple fix. Thanks, Brian, you're awesome. I apologize for my "dummy" moment. Haha.
|
|