![]() |
|
extension register_user: add fields, set uploaded images not publish - 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: extension register_user: add fields, set uploaded images not publish (/thread-9373.html) |
extension register_user: add fields, set uploaded images not publish - ayad - 2011-12-12 Hello, I use the extension register_user v1.4.1 with the theme zpfocus 1. I set the address field as required in register form. I would like to edit them and add further required field. I found the call of printRegistrationForm() but not function itself! Please where are the fields to edit? 2. I set the right to user direct after the registration to upload his images. How can I prevent these Images from being published, till they have been approved? I read similar question, maybe there is something new? Thank you for any help! extension register_user: add fields, set uploaded images not publish - sbillard - 2011-12-12 1. So you found the function? Did you read it? That is where the form is loaded, obviously. The standard form itself is in the register_user folder. But of course, you cannot modify that one as it is part of the Zenphoto core. Instead create a "register_user" folder in the "plugins" folder and place your form there. (You could alternatively put in your theme's folder, but that could get overridden by an update from the theme's autor. I do not know the zpFocus theme so I do not know if it contains a custom version of the form.) 2. Uncheck the `Publish images by default` box on the gallery options tab. Do not give your user `edit` rights on the album (or he can publish the images himself.) |