1
beanstalk
extended prefs not allowing users to change email, only webmasters
  • 2005/11/30 17:04

  • beanstalk

  • Just popping in

  • Posts: 13

  • Since: 2005/11/8


i want to allowed my registered users to change their email address. seems straightforward. just answer 'yes' to that option in the extended prefs general settings. doesn't work though. anyone else see this or am i doing something stoopid? thanks.

2
beanstalk
Re: extended prefs not allowing users to change email, only webmasters
  • 2005/11/30 21:52

  • beanstalk

  • Just popping in

  • Posts: 13

  • Since: 2005/11/8


seems to work properly after the following changes. haven't noticed any adverse effects, maybe the experts can comment.

in file profile/edituser.php change (uncomment):
Quote:

//if ($xoopsModuleConfig['allow_chgmail'] == 1){
// $edituser->setVar('email', $email);
// }
to:
Quote:

if ($xoopsModuleConfig['allow_chgmail'] == 1) {
$edituser->setVar('email', $email);
}


then in file profile/include/forms.php change:
Quote:

if ($user->isNew() || $xoopsUser->isAdmin()) {
to:
Quote:

if ($user->isNew() || $xoopsUser->isAdmin() || $xoopsModuleConfig['allow_chgmail'] == 1) {


sorry about the wrapping. the files may look a little different.

3
Dave_L
Re: extended prefs not allowing users to change email, only webmasters
  • 2005/11/30 22:28

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7



4
beanstalk
Re: extended prefs not allowing users to change email, only webmasters
  • 2005/12/1 5:15

  • beanstalk

  • Just popping in

  • Posts: 13

  • Since: 2005/11/8


don't think so. i could change my email address as an admin no matter what the prefs were. but i wanted to let my registered users change their own email. there's a preference for that, but it didn't work. my changes make it work for me now.

i did just verify the problem that you are speaking of. i'll have to make that change as well.

5
nikki
Re: extended prefs not allowing users to change email, only webmasters
  • 2006/2/8 12:48

  • nikki

  • Not too shy to talk

  • Posts: 123

  • Since: 2005/10/31


Hi all,

I tried the above and changing form.php totally messed up my Extended Users > Users admin page.

I'm using v2.2.3

Can anyone help? I posted elsewhereand no one has been able to help.

6
nikki
Re: extended prefs not allowing users to change email, only webmasters
  • 2006/2/11 19:58

  • nikki

  • Not too shy to talk

  • Posts: 123

  • Since: 2005/10/31


Anyone? :(

7
m0nty
Re: extended prefs not allowing users to change email, only webmasters
  • 2006/2/11 20:05

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


yeah, try upgrading to 2.2.4 thats 1 bug that was fixed..

8
andersa
Re: extended prefs not allowing users to change email, only webmasters
  • 2006/2/12 16:45

  • andersa

  • Just popping in

  • Posts: 45

  • Since: 2004/5/27


I can't change users email address as admin.

I tried looking at that patch, but it seems my version already has that patch installed, and it still doesn't work.

I get a message that the updates were succesful, but when I call up the user profile again, the address hasn't changed.
...

9
winshell
Can't change user email address as admin
  • 2006/2/12 21:56

  • winshell

  • Just popping in

  • Posts: 15

  • Since: 2005/6/14


Hi,

I want to confirm andersa on this bug. I am using 2.2.4, too and I have exactly the same problem.
I looked up all the suggestions but it seems they are already in the code. But the problem is still there and its a bit annoying.

greets
Ingo

10
allnewtome
Re: Can't change user email address as admin
  • 2006/2/14 22:43

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


I promise that this problem was fixed somewhere on the forums in the past (I know because that's how I got it to work!)

If you just change edituser.php, you bypass the system whereby the email address is only changed to a verified address. There's a file changemail.php which needs 2 or 3 alterations.

I'll look for it in the next few days (sorry, don't have time now).

Login

Who's Online

227 user(s) are online (172 user(s) are browsing Support Forums)


Members: 0


Guests: 227


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits