• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Replace Sidebar Visitor Panel Image?

DRE

Well-known member
#4
When I was messing around with it I tried using this code

Code:
<a href="{xen:link account/personal-details}"><img src="{$user.customFields.customsidebarimage}" height="190" width="190" /></a>
something like that but it kept coming up with a broken image.
 

Jake Bunce

XenForo moderator
Staff member
#7
I assume "customsidebarimage" is a field_id of a custom user field? And I assume your user has something entered into that field in his profile?

Try debugging the output of {$visitor.customFields.customsidebarimage} by adding that variable to the top of the template. That should allow you to see the output directly on the page.
 

DRE

Well-known member
#9
Wait how do you debug whatever you just said? I did remove the custom userfield though and just used the direct link of the picture instead.
 

Jake Bunce

XenForo moderator
Staff member
#10
Look at the source code of the page. Find the img tag where you used that custom field. Confirm that the value is showing correctly in the source.