Show name of the logged in user

Questions related to using nuBuilder Forte.

Show name of the logged in user

Postby Martin » Sat May 23, 2020 2:35 am

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...)
Martin
 
Posts: 30
Joined: Sat Nov 10, 2018 2:12 am

Re: Show name of the logged in user

Postby kev1n » Sun May 24, 2020 10:35 am

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'});

}
kev1n
 
Posts: 784
Joined: Mon Oct 15, 2018 2:13 am


Return to General