coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 ecards & email => Topic started by: davidagreen on July 18, 2007, 10:59:00 AM

Title: I cannot change the Admin User Email Address: V 1.4.10
Post by: davidagreen on July 18, 2007, 10:59:00 AM
When I go to the My Profile secion of the Admin User's Email it is set to you@you.com which means the notifications are bounced back. How can I change this - it is not a field that is alterable in that version.

Thanks >:(
Title: Re: I cannot change the Admin User Email Address: V 1.4.10
Post by: su_ict on July 26, 2007, 01:19:39 PM
Happened to me 2 - follow this :

1. go to settings while logged in as Admin
2. set 'Allow users to change their email address in profile' to YES
3. goto profile
4. change the email-adres
5. set 'Allow users to change their email address in profile' back to NO if that is what you want

Ps. i think profile.php?op=edit_profile should check if the user logged in is Admin - if so - it should be able to change a users email address - only if you are an Admin !!
Title: Re: I cannot change the Admin User Email Address: V 1.4.10
Post by: Joachim Müller on July 26, 2007, 02:22:57 PM
Another option would be to create another user, make him admin, log out, log in as new admin user, change the profile of the original admin, log out, log back in as original admin, delete the second admin account again.

@su_ict: I agree that the admin should be allowed to change his email address no matter what. I'll look into this for the next version.

@davidagreen: when you install coppermine, you are prompted for the admin email address. If it is set to something silly like you@you.com, then you probably have used an auto-installer like Fantastico, which is not recommended nor supported at all.

@davidagreen: according to the subject line of your thread, you appear to be running cpg1.4.10, which is outdated and has known security issues. It is mandatory to upgrade to the most recent stable release (currently cpg1.4.12) asap. Not related to the issue discussed in this thread though.
Title: Re: I cannot change the Admin User Email Address: V 1.4.10
Post by: Joachim Müller on July 26, 2007, 02:38:32 PM
This has been easy. Edit profile.php, findif ($CONFIG['allow_email_change'] == 1) {
  $edit_profile_form_param[3][0]='input';
}
and change toif ($CONFIG['allow_email_change'] == 1 || GALLERY_ADMIN_MODE) {
  $edit_profile_form_param[3][0]='input';
}
, save your changes & upload the changed file. This should allow admin users to change their email address no matter what the setting for "Allow users to change their email address in profile" in coppermine's config is. I committed this minor little change to the SVN for cpg1.5.x.
Title: Re: I cannot change the Admin User Email Address: V 1.4.10
Post by: su_ict on July 27, 2007, 09:33:06 AM
Quote from: GauGau on July 26, 2007, 02:38:32 PM
This has been easy.
For you it is  8)
Quote from: GauGau
I committed this minor little change to the SVN for cpg1.5.x.
Glad to help the community - allbeit a minor change  :D
Title: Re: I cannot change the Admin User Email Address: V 1.4.10
Post by: su_ict on July 27, 2007, 09:37:28 AM
Quote from: GauGau on July 26, 2007, 02:38:32 PM
Save your changes & upload the changed file. This should allow admin users to change their email address no matter what the setting for "Allow users to change their email address in profile" in coppermine's config is.
Done this - works ok ! (sorry for the xtra reply - could not edited previous one  :'()