Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request]: add constant e_FPW similar way how e_SIGNUP and e_LOGIN work #5158

Open
Jimmi08 opened this issue Dec 19, 2023 · 1 comment
Labels
topic: documentation type: enhancement An improvement or new feature request

Comments

@Jimmi08
Copy link
Contributor

Jimmi08 commented Dec 19, 2023

Motivation

To have the same logic / rules for 3 pages related to user registration

  1. avoid the need to use SITEURL.fpw.php to get full URL
  2. possibility to use customfpw.php similar way as e_LOGIN and e_SIGNUP do

Proposed Solution

replace in the redirection class and other places (shortcodes).
$this->self_exceptions = array(e_SIGNUP, SITEURL.'fpw.php', e_LOGIN, SITEURL.'membersonly.php');

set it similar way

		// login/signup
		define('e_SIGNUP', SITEURL.(file_exists(e_BASE.'customsignup.php') ? 'customsignup.php' : 'signup.php'));

		if(!defined('e_LOGIN'))
		{
			define('e_LOGIN', SITEURL.(file_exists(e_BASE.'customlogin.php') ? 'customlogin.php' : 'login.php'));
		}

Alternatives

Maybe redirection in e_module in some plugin. Not sure.

Additional Context

No response

@Jimmi08 Jimmi08 added the type: enhancement An improvement or new feature request label Dec 19, 2023
@Jimmi08
Copy link
Contributor Author

Jimmi08 commented Feb 4, 2024

Not needed, solved by custom plugin. Invalid issue.

@Jimmi08 Jimmi08 closed this as completed Feb 4, 2024
@Moc Moc reopened this Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: documentation type: enhancement An improvement or new feature request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants