Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, 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: 4562
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 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