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

XF 1.4 Custom Field

I'm trying to reference a custom field in the nav bar

Basically - a quick launch button for our clients to be able to launch their application (When the field is populated)


<!-- eSP Launcher -->
                        <xen:if is="{$user.customFields.esellerproclient}">
                            <a href="{$user.customFields.esellerproclient}" target="_blank" class="navLink"><img src="http://domain.com/styles/drift/images/esp2.png"></img></a>
So I'm trying to reference an image - if the field is populated...

However, I've populated the field - yet it fails to populate.





Basically - I DO NOT want this field displayed in the user info (Banner) or visible on the user's profile.

It's a private URL, so needs to remain that way - But we want clients to be able to launch the application by clicking the image in the nav bar.

Any ideas?



Chris D

XenForo developer
Staff member
Instead of $user, try $visitor

$visitor is always the currently logged on user.

I have to be honest I only glanced over what you put so far but certainly that would need correcting first.