Posts: 411
	Threads: 103
	Joined: Oct 2016
	
Reputation: 
9
	 
	
	
		Hi
Can I show name of the actually logged on user in my visu?
Do you have javascript/css etc which does this function?
Thank you
	
	
	
LM5Lp, firmware: 2018.08.22 and  2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
	
		
	
 
 
	
	
	
		
	Posts: 411
	Threads: 103
	Joined: Oct 2016
	
Reputation: 
9
	 
	
	
		Thank you.
LM is a great device but sometimes some simply looking requests have solutions like if you're scratching left ear by right hand behind your head.
	
	
	
LM5Lp, firmware: 2018.08.22 and  2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
	
		
	
 
 
	
	
	
		
	Posts: 411
	Threads: 103
	Joined: Oct 2016
	
Reputation: 
9
	 
	
	
		1. The file has to be stored under /www/user/
2. NEVER create any object with just space instead of a text. I spent last 30 minutes by trying to hit this object by mouse with no success. The workaround is to find this object through object inspector and change the missing text.Then you can select the object.
	
	
	
LM5Lp, firmware: 2018.08.22 and  2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
	
		
	
 
 
	
	
	
		
	Posts: 24
	Threads: 10
	Joined: Aug 2017
	
Reputation: 
0
	 
	
	
		Hi, 
I can't get this working.. I saved the user.lp file in /user/user.lp with ftp-user "apps".  Is this correct?
How can I 'Enable password for user folder' ? 
The text object in visualization gets blank when logging in now.
I have saved the custom javascript and css.
Thanks in advance,
John
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 8410
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481
	 
	
	
		"Enable password for user folder" is set in User access settings (User access tab).
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 24
	Threads: 10
	Joined: Aug 2017
	
Reputation: 
0
	 
	
	
		Thanks, I uploaded the user.lp file to / with ftp as user and then change the premissions to this file to 777.
With my browser pointed to this location it shows error:
Error in /www/user/user.lp at line 2: attempt to call global '    require' (a nil value)
user.lp file content:
<?
    require('apps')
    clientuser = request.username or 'anonymous'
    print(clientuser)
?>
-John
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 8410
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481
	 
	
	
		Remove all spaces before require and all other lines in user.lp