I'm doing some custom stuff for a client where logged in users are able to select certain things then submit. Their selection then goes to the DB and an email is sent to client.
I've got everything except I can't figure out how to grab their username. Right now I'm hard coding it for testing - Doesn't even have to be username - ID or email address would work too.
Please help,
Thanks,
Mike
Comments
http://www.zenphoto.org/documentation/classes/_lib-auth.php.html
To get a specific user use `$userobj = Zenphoto_Authority::newAdministrator("', 1);`
`
<?php
if ( zp_loggedin() ) {
$username = $_zp_current_admin_obj->getUser();
}
?>
`
This gets the User name of the current logged-in user.
On the other hand IE works perfectly as-is...but if I manually remove the WWW it shows as if I'm logged out...but again really logged in...No issues there because it works fine as-is. But for some reason Safari is being weird...Mozilla works fine either way
Is this a DNS, WWW vs no WWW issue?
Any ideas are welcome...Everything else is perfect except this little issue. As it turns out both partners use MAC's so I kind of have to get this straightened out! lol
Thanks,
Mike
Thanks again