2020-10-29, 11:46 PM
Hi everyone,
I've been slowly cleaning up my usercp profile-edit area (usercp.php?action=profile) by removing and adding different options.
For instance, I've added forms for changing usernames and profile pics. The point of me doing this is so that there is no longer a need for the default pages dedicated to these functions.
The problem is, if I were to type my password wrong when trying to change my username, I would be redirected to the default username change page with the error. Or, if I were to change it successfully, the full-screen success/redirect message would show, but I would again be redirected to the default username change page afterwards.
What I would like to accomplish is:
Edit:
Here's a diagram of what I'm talking about, because I feel as though it's hard to explain.
What myBB does
on "edit profile" page > user inputs wrong credential > dedicated setting page with small error box
on "edit profile" page > user inputs right credentials > full-screen success page > dedicated setting page
What I want
on "edit profile" page > user inputs wrong credential > full-screen error page > "edit profile" page
on "edit profile" page > user inputs right credential > full-screen success page > "edit profile" page
I've been slowly cleaning up my usercp profile-edit area (usercp.php?action=profile) by removing and adding different options.
For instance, I've added forms for changing usernames and profile pics. The point of me doing this is so that there is no longer a need for the default pages dedicated to these functions.
The problem is, if I were to type my password wrong when trying to change my username, I would be redirected to the default username change page with the error. Or, if I were to change it successfully, the full-screen success/redirect message would show, but I would again be redirected to the default username change page afterwards.
What I would like to accomplish is:
- Mimic the success screen, but for errors. If a change failed, show this full-screen message instead of redirecting to the default dedicated page of the option.
- Change all redirects to point back to the usercp profile-edit page (usercp.php?action=profile) instead of redirecting to the default dedicated page of the option.
Edit:
Here's a diagram of what I'm talking about, because I feel as though it's hard to explain.
What myBB does
on "edit profile" page > user inputs wrong credential > dedicated setting page with small error box
on "edit profile" page > user inputs right credentials > full-screen success page > dedicated setting page
What I want
on "edit profile" page > user inputs wrong credential > full-screen error page > "edit profile" page
on "edit profile" page > user inputs right credential > full-screen success page > "edit profile" page