inherit
219308
0
Feb 26, 2023 13:40:42 GMT -8
{ breezes }
12
March 2015
snowykcnomre
|
Post by { breezes } on Jan 25, 2019 21:34:11 GMT -8
an inquiry: can custom fields be placed in the forum wrapper? specifically, i'm trying to make a custom field image show up in the banner area. interestingly, it shows up when i click on the profile tab, but anywhere else, it's a blank. i'm assuming this is because the custom field command variable only works for the profile layouts, but is there any way to work around this? alternatively, if there's a way to call for the current member's avatar url that would work as well. i haven't found one, so using a custom field was kind of the alternative. edit: when you've been working on this damn code for so long that you forget pb posts use bbcode not html adfghjkl
|
|
#e61919
Support Staff
224482
0
1
Apr 25, 2024 17:50:06 GMT -8
Scott
23,287
August 2015
socalso
|
Post by Scott on Jan 26, 2019 11:24:12 GMT -8
alternatively, if there's a way to call for the current member's avatar url that would work as well. i haven't found one, so using a custom field was kind of the alternative.
You can use this variable in the forum wrapper layout template: $[current_user.avatar]
|
|
inherit
219308
0
Feb 26, 2023 13:40:42 GMT -8
{ breezes }
12
March 2015
snowykcnomre
|
Post by { breezes } on Jan 29, 2019 4:29:32 GMT -8
You can use this variable in the forum wrapper layout template: $[current_user.avatar] This wouldn't work since I specifically need the avatar URL. $[current_user.avatar] calls on the avatar-wrapper etc. etc. etc. piece of code. I need it without that.
|
|
#eb7100
33409
0
1
Apr 14, 2024 15:59:10 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Feb 14, 2019 16:51:44 GMT -8
There's unfortunately no variable for just the avatar URL, but it shouldn't be too hard to restyle the avatar wrapper using CSS so that it behaves like it's just the image by itself.
If you need the URL so that you can use the image in CSS or somewhere else where only the URL is applicable the only way around that is to include $[current_user.avatar] on the page and obtain the URL from the element using Javascript after the page loads.
|
|
inherit
219308
0
Feb 26, 2023 13:40:42 GMT -8
{ breezes }
12
March 2015
snowykcnomre
|
Post by { breezes } on Feb 15, 2019 17:09:12 GMT -8
alright, thanks for the help.
|
|