![]() |
|
register_user lost password/forget username - 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: register_user lost password/forget username (/thread-6288.html) |
register_user lost password/forget username - Barbara - 2009-12-15 As I was saying in another topic I need to limit the access to a couple of albums only to some users. My problem is, what happens if someone forgets is username/password? Or a password reset like zp does at the moment for the admin would be a start. register_user lost password/forget username - sbillard - 2009-12-16 If they log into the admin page (/admin if you have mod_rewrite active) then they will have a login screen with the option to enter a cpatcha and have a password reset sent. We do NOT email passwords as this is a gross breach of basic security. register_user lost password/forget username - Barbara - 2009-12-16 Glad I asked. Didn't know about this functionality, I'll just put a link to 'admin' under the form. Btw, is there a way to select a different admin theme for the logged-in users? It's not a big deal but if there's a way to customize it I think I'll take advantage of the functionality. register_user lost password/forget username - sbillard - 2009-12-16 No direct way, but you could place tests for register_user lost password/forget username - Barbara - 2009-12-16 Perfect, I just need to specify a different stylesheet. I don't think this is the correct syntax, isnt it? Also where do I have to put it? I looked into admin.php and other files but I can't find which one is calling admin.css ` ` register_user lost password/forget username - sbillard - 2009-12-16 Just about. ` ` register_user lost password/forget username - Barbara - 2009-12-16 Thanks but when I log out it tells me Parse error: syntax error, unexpected T_STRING, expecting '(' in /home/xxx/public_html/127/zp-core/admin-functions.php on line 92 line 92 is if zp_loggedin() { register_user lost password/forget username - sbillard - 2009-12-16 Sorry, missed that register_user lost password/forget username - Barbara - 2009-12-16 Thank you for the quick replies! register_user lost password/forget username - sbillard - 2009-12-16 No problem. Pretty soon we will have you capable of modifying the core . There is a global array register_user lost password/forget username - Barbara - 2009-12-16 Lol, yeah... Ok I'm not sure if I get it but right now is set like this ` register_user lost password/forget username - sbillard - 2009-12-16 The way IF statements work is that if the thing in parens is true it executes the first statement if it is false it executes the second statement. Also, the "USER" parameter is not correct. If you wish to pass parameters, what you pass is a RIGHTS mask. Then the function will return true if someone is logged in with those rights otherwise it returns false. register_user lost password/forget username - acrylian - 2009-12-16 Just to ask, why do you actually need a different admin theme? register_user lost password/forget username - Barbara - 2009-12-16 No particular reason, I want it to look like the rest of the site. register_user lost password/forget username - sbillard - 2009-12-16 ` Maybe it is time for you to do some study on PHP programming and on the Zenphoto functions guilde. |