cancel button doesn't work on FrontEndUsers "change_settings" form

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

cancel button doesn't work on FrontEndUsers "change_settings" form

Post by jmcgin51 »

Clicking the button loads a new form immediately beneath the original, along with the error message "email address already used".  User is just trying to change his password.  Email is not being edited.  Subsequent clicks reload the page, showing both forms and the error message.

CMSMS 1.0.2 Maui
FEU 1.1.1
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: cancel button doesn't work on FrontEndUsers "change_settings" form

Post by jmcgin51 »

bump
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: cancel button doesn't work on FrontEndUsers "change_settings" form

Post by jmcgin51 »

Where is the "Cancel" button function in the code, and how do I need to change it so that it simply redirects to the homepage, previous page, etc?  I would presume that's what it's supposed to do anyway?
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: cancel button doesn't work on FrontEndUsers "change_settings" form

Post by jmcgin51 »

Calguy? anyone?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: cancel button doesn't work on FrontEndUsers "change_settings" form

Post by calguy1000 »

Although I tried repeatedly and could not reproduce the problem, I did notice that the cancel button was not being explicitly handled in the code.  so I handled it.  It didn't cause any errors, and hopefully it'll fix your problem.

It's checked into svn.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: cancel button doesn't work on FrontEndUsers "change_settings" form

Post by jmcgin51 »

thanks a lot, I'll give the SVN code a try...
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: cancel button doesn't work on FrontEndUsers "change_settings" form

Post by jmcgin51 »

Well, I downloaded the latest FrontEndUsers.module.php and FrontEndUsers.api.php files from SVN.  Now the Cancel button just reloads the "change_settings" page (without any errors), which is a minor improvement, but I'm not sure if this is the expected behavior.  I would expect the Cancel button to redirect to the referring page or to the homepage.  What is the Cancel button SUPPOSED to do in a perfect world?

BUT, the bigger issue is that user expiration is now broken again...  My expired users can log in again.  In the FEU Admin, they do show up as expired, and the dates/times are correct, but it doesn't stop the user from logging in.

EDIT: I went back and replaced the latest SVN FEU API file with the one posted by dittmann a couple of days ago.  This fixed the expiry issue again.  So I'm now running with the latest FrontEndUsers.Module.php and the next-to-latest FrontEndUsers.api.php.  Not sure why the latest api won't work correctly.

Still looking for a better action on Cancel...  thanks
Last edited by jmcgin51 on Wed Dec 13, 2006 2:56 pm, edited 1 time in total.
Post Reply

Return to “CMSMS Core”