Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: I cannot change the Admin User Email Address: V 1.4.10  (Read 6976 times)

0 Members and 1 Guest are viewing this topic.

davidagreen

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
I cannot change the Admin User Email Address: V 1.4.10
« 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 >:(
Logged

su_ict

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: I cannot change the Admin User Email Address: V 1.4.10
« Reply #1 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 !!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: I cannot change the Admin User Email Address: V 1.4.10
« Reply #2 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: I cannot change the Admin User Email Address: V 1.4.10
« Reply #3 on: July 26, 2007, 02:38:32 pm »

This has been easy. Edit profile.php, find
Code: [Select]
if ($CONFIG['allow_email_change'] == 1) {
  $edit_profile_form_param[3][0]='input';
}
and change to
Code: [Select]
if ($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.
Logged

su_ict

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: I cannot change the Admin User Email Address: V 1.4.10
« Reply #4 on: July 27, 2007, 09:33:06 am »

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
Logged

su_ict

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: I cannot change the Admin User Email Address: V 1.4.10
« Reply #5 on: July 27, 2007, 09:37:28 am »

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  :'()
Logged
Pages: [1]   Go Up
 

Page created in 0.032 seconds with 19 queries.