xoops forums

netwize

Just popping in
Posted on: 2002/8/6 20:16
netwize
netwize (Show more)
Just popping in
Posts: 89
Since: 2002/1/20
#11

Re: Account re-activation required on Profile email changes

perhaps a rc3 hack

MaxIT

Just popping in
Posted on: 2002/8/7 11:13
MaxIT
MaxIT (Show more)
Just popping in
Posts: 65
Since: 2002/11/8
#12

Re: Account re-activation required on Profile email changes

Quote:
perhaps a rc3 hack

yes, you're right

I took a look at RC3's edituser.php but it's a lot different from previous version. I still didn't understand the logic. I bet a dev could give a suggest without spending too much time.

onokazu

XOOPS Founder
Posted on: 2002/8/7 14:54
onokazu
onokazu (Show more)
XOOPS Founder
Posts: 617
Since: 2001/12/13
#13

Re: Account re-activation required on Profile email changes

in edituser.php, change the following line

$email_text = new XoopsFormText("", "email", 30, 60, $xoopsUser->getVar("email"));

to

$email_text = new XoopsFormLabel("", $xoopsUser->getVar("email"));

and around line 190, comment out the following line

$edituser->setVar("email", $email);

so it will look like

//$edituser->setVar("email", $email);

sorry, I have not tested this, but hope this works

netwize

Just popping in
Posted on: 2002/8/7 21:10
netwize
netwize (Show more)
Just popping in
Posts: 89
Since: 2002/1/20
#14

Re: Account re-activation required on Profile email changes

i got error:

Invalid email

MaxIT

Just popping in
Posted on: 2002/8/7 23:48
MaxIT
MaxIT (Show more)
Just popping in
Posts: 65
Since: 2002/11/8
#15

Re: Account re-activation required on Profile email changes

Quote:
Invalid email


do this, too:

change around line 163

$email = $myts->oopsStripSlashesGPC(trim($email));

to

$email = $xoopsUser->getVar("email");

and it will works (tested)

netwize

Just popping in
Posted on: 2002/8/8 0:11
netwize
netwize (Show more)
Just popping in
Posts: 89
Since: 2002/1/20
#16

Re: Account re-activation required on Profile email changes

it works

thanks ono and max

MaxIT

Just popping in
Posted on: 2002/8/8 8:00
MaxIT
MaxIT (Show more)
Just popping in
Posts: 65
Since: 2002/11/8
#17

Re: Account re-activation required on Profile email changes

for lazy people: HERE you can download this hack for RC3

maostudio

Just popping in
Posted on: 2002/8/9 18:44
maostudio
maostudio (Show more)
Just popping in
Posts: 1
Since: 2002/7/12
#18

Re: Account re-activation required on Profile email changes

to MaxIT,

thanks for sharing your hack, yet could u write the installation in Eng?

cuz i really don't know any italian!!
:p

MaxIT

Just popping in
Posted on: 2002/8/9 22:01
MaxIT
MaxIT (Show more)
Just popping in
Posts: 65
Since: 2002/11/8
#19

Re: Account re-activation required on Profile email changes

as usual, just copy the content of "html" folder on your root, it will overwrite only 1 file (edituser.php)

tywick

Just popping in
Posted on: 2003/6/27 2:27
tywick
tywick (Show more)
Just popping in
Posts: 12
Since: 2002/9/17
#20

Re: Account re-activation required on Profile email changes

Quote:

tl wrote:
<snip>
For security and spams-preventing reasons, it would be extremely useful of requiring account re-activation if a user had modified his/her email address.


A better idea IMHO is do like PayPal and reserve the current email address and it won't change until the new email address is activated.

This will also be nice for reusing the actkey field.