Page 1 of 1

Show name of the logged in user

PostPosted: Sat May 23, 2020 2:35 am
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...)

Re: Show name of the logged in user

PostPosted: Sun May 24, 2020 10:35 am
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'});

}