• Zmokin

    (@zmokin)


    Been using this plugin for several years and it still works really well if you want to have a menu item that displays ‘Login’ or ‘Logout’ depending on whether you are in/out.

    Problem is that the documentation is so vague that even though I got it to work, I wasn’t quite sure how – until now.

    Once you have it installed, add the login/logout version to your menu. These should be your settings:

    For the URL setting:
    #bawloginout#/page-to-load-after-login/|/page-to-load-after-logout/

    Explanation:
    #bawloginout#
    1. This is the code that the plugin needs to switch between ‘Login’ or ‘logout’ depending on the status.

    /page-to-load-after-login/
    2. Replace this with the page that you want the user to go to after they log in. If all you want to do is redirect the user when they log in and you are okay with them just going to the log in page after they log out, then this is all you need.

    |
    3. If you want to also control what page the user is redirected to after they log out, add the pipe (|).

    /page-to-load-after-logout/
    4. Replace this with the page that you want the user to go to after they log out.

    For the Navigation Label:
    Log In|Log Out

    This is a little easier, just replace ‘Log In’ with whatever text you want to display in the menu for the user to click on to log in and replace ‘Log Out’ with whatever text you want to display in the menu (when the user is logged in) for them to click on to log out. Keep the pipe (|) between the two menu titles.

    Hope this helps someone, I definitely could have used this info at the beginning.

    • This topic was modified 8 years ago by Zmokin.
    • This topic was modified 8 years ago by Zmokin.
Viewing 1 replies (of 1 total)
  • So, what if, upon clicking the log in link, you want users to be taken to a certain login page you have created & not the system login page?

Viewing 1 replies (of 1 total)
  • The topic ‘How to set it up’ is closed to new replies.