Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Show name of the logged in user

Questions related to using nuBuilder Forte.
Post Reply
Martin
Posts: 30
Joined: Fri Nov 09, 2018 5:42 pm

Show name of the logged in user

Unread post by Martin »

How can I display the name of the logged in user rather than the nubuilder.com URL?
(The URL is probably not really interesting for the end user...)
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Show name of the logged in user

Unread post by kev1n »

Add this JS in the (Setup ->) Header:

Code: Select all

function nuOnLoad() {
   $('.nuBuilderLink').html(window.global_access ? nuCurrentProperties().user_id : nuCurrentProperties().username).attr('href', '').css({'cursor': 'pointer', 'pointer-events' : 'none'});

}
Post Reply