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

WET 4 - Missing support for session login/logout (sign in/sign out) #181

Open
michael-milette opened this issue Dec 11, 2015 · 3 comments
Open

Comments

@michael-milette
Copy link
Contributor

Support for this feature was added back into WET 4.0 this past summer but the feature doesn't appear to have been integrated into wet-boew-php.

Implementation requirements include:

Theme support

This feature should be available for all themes, not just the wet-boew theme.

User name

It should be expected that the username be provided by the application however a default placeholder should be implemented instead of getting a PHP error for an undefined variable.

Support for Sign in

  • Should be optional. Not all sites require this feature.
  • The "Register" button should be optional so that it does not need to appear in the case of a closed sites.
  • Link should be configurable.

Support for Sign out

  • Should be optional. Not all sites require this feature.
  • The "Account settings" button should be optional as this is not required for all sites.
  • Link should be configurable

Additional reference information:

image

image

Let me know if you have any questions.

Best regards,

Michael

@michael-milette michael-milette changed the title WET 4 - Missing support for session login/logout (sign on/sign out) WET 4 - Missing support for session login/logout (sign in/sign out) Dec 11, 2015
@michael-milette
Copy link
Contributor Author

Any news on this issue @upsonp ?

@upsonp
Copy link
Member

upsonp commented Dec 17, 2015

Sorry @michael-milette,

I didn't mean to ignore you, just really busy with other projects. I would like to have this feature in the pho-variant, but I don't have time right now to include it. It should definitely be a future update.

@michael-milette
Copy link
Contributor Author

Hi @upsonp ,

No problem. However I will need the functionality sooner. If it is ok with you, I will work on it and send you the changes as soon as they are ready.

Here are the developer docs so far:

SIGN IN (Login) / SIGN OUT (logoff) BUTTONS

To make the following buttons appear on the page, you must define their URLs (will not appear if blank):

- Sign in (login): $_SITE['wb_signin_file_'.$_LANG_]
- Sign out (logoff): $_SITE['wb_signout_file_'.$_LANG_]
- Register: $_SITE['wb_register_file_'.$_LANG_]
- Account Settings: $_SITE['wb_sio_file_'.$_LANG_]

If you use any of these, the following string must be set to the user's firstname, username or full name when logged in:

 $_SITE['wb_signedinas_name']

Best regards,

Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants