ZenphotoCMS Forum
Print logged-in user name - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Print logged-in user name (/thread-9059.html)



Print logged-in user name - hugogus - 2011-09-11

Hello,

First, thank you for this great gallery management.
I'm in the process of creating mine using zenphoto and want to display the name of the user who is currently logged in.

I'm sure it's pretty easy, but I can't find in the documentation the method to call or the global variable to display.

Thank you for your support.

Hugo.




Print logged-in user name - sbillard - 2011-09-11

The variable (an object) is $_zp_current_admin_obj It has a method for getting the user id, etc. Note of coures that if no one is logged in this variable may not be valid.




Print logged-in user name - hugogus - 2011-09-14

Hello,

Thanks for your reply.
However, I think I would need a bit more details
Where can I find the list of methods that can be called on this object?

Thank you for your support.




Print logged-in user name - acrylian - 2011-09-14

On the functions documentation.