As I was saying in another topic I need to limit the access to a couple of albums only to some users.
I'm using the register_user plugin so everyone can choose is own username and password.
My problem is, what happens if someone forgets is username/password?
I think some sort of e-mail notification system would be handy, so if someone needs his data they will be e-mailed to him.
Or a password reset like zp does at the moment for the admin would be a start.
Comments
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.
`
' type='text/css' />
}
else {
}
?>
`
`
<?php
if zp_loggedin() {
?>
' type='text/css' /><?php
}
else {
?>
<?php
}
?>
`
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() {
Ehm, sorry to bother again, is there a way to set it this for every user except me? ;p So that the admin can access the control panel with the default css and the registered users are presented with the custom version (the only right they have is view all).
There is a global array `$_zp_current_admin` which contains all the credentials of the logged on admin. You could checj `$_zp_current_admin['name']` or `$_zp_current_admin['user']`. The first is the display name the second the user id.
Ok I'm not sure if I get it but right now is set like this
`
<?php
if (zp_loggedin(USER)) {?>
custom.css' type='text/css' />
<?php } else { ?>
admin.css' type='text/css' />
<?php } ?>
`
Only one last thing, when I'm logged in as admin my stylesheet is custom.css whereas when I'm logged in as user my stylesheet is admin.css. Shouldn't it be the opposite?
Not a problem, I could always switch the code but I'm trying to understand.
Thanks for the explanation, as for the rest I'm officially lost, what do I have to put in the code then?
if (zp_loggedin()) {?>
<link rel='stylesheet' href='<?php echo $path; ?>admin.css' type='text/css' />
<?php } else { ?>
<link rel='stylesheet' href='<?php echo $path; ?>custom.css' type='text/css' />
<?php } ?>
Maybe it is time for you to do some study on PHP programming and on the Zenphoto functions guilde.