Member
Member
Oldemar   12-01-2015, 20:23
#1

Is there a function to put in the template to show the username of who uploaded the current image?

Administrator
Administrator
acrylian   12-01-2015, 20:30
#2

Not directly a template function but you can get it via the object model methods:
echo $_zp_current_image->getOwner().

Works of course this way only in context, e.g. on image.php or within the next_image() loop (album.php/search.php).

Member
Member
Oldemar   12-01-2015, 21:03
#3

Thanks, but is there a way to make it not show the user's email? I tried to uncheck Email ID, but that didnt help.

Administrator
Administrator
acrylian   12-01-2015, 22:19
#4

The method getOwner() gets the user id name as it is set on the item, image in this case. If that is the mail address for some reason that is displayed.

If you want to display something else from the user account like the real name you will have to do some coding via the object model using the adminstrator class: http://www.zenphoto.org/documentation/classes/Zenphoto_Administrator.html

Member
Member
Oldemar   12-01-2015, 23:25
#5

Thank you. It works fine for new users after I changed my settings.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.