• Resolved jacquesg3

    (@jacquesg3)


    Hey Guys.

    I love this plugin, but I need two features for it to fit perfectly with my site:

    1. Ability to redirect user to last page viewed before log in/out
    2. Add option for “Log In” feature to also display “Log In / Register”

    If this is too much work for your current roadmap I’m willing to pay for a customized version of your plugin.

    Great work!

    http://wordpress.org/extend/plugins/baw-login-logout-menu/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Julio Potier

    (@juliobox)

    Hello Jacques,

    With the actual version you can set the localization you want, and use the %actualpage% param to redirect users on the last visited page.

    Are you using the shortcode or menu or both ?

    Menu : add “Login” link from the plugin and just rename the title on “Log in / Register”

    Shortcode : [login]Log in / Register[/login]

    See you soon

    Plugin Author Julio Potier

    (@juliobox)

    What about this jacques ? Please give me feedback

    This plugin would be ideal if it allowed for all these three to be defined at the same time: “Log in|Register|Log out”. The first two would be shown to non-logged-in users and would redirect to different pages, wp-login.php and wp-login.php?action=register, respectively, and the last would only be displayed for logged-in users.

    Plugin Author Julio Potier

    (@juliobox)

    Hello

    How can i redirect on 2 pages for non logged users ?

    The Meta widget creates two menu entries for non-logged in users. That works very well. It’d be great if you can implement the same option.

    Plugin Author Julio Potier

    (@juliobox)

    Ok i just added a new menu entry and its shortcode.
    [register] !
    If you are logged, this menu entry or the shortcode won’t be displayed.

    😉 check the 1.3 🙂

    Tested, works excellently. Great work. Thanks, Julio!

    Now if only there would be a checkbox on each menu item to set [ ] Only show for users who are logged in I would have a perfect “My Menu” with links to user-dependent pages like profile etc. that wouldn’t be displayed for non-logged in users.

    Do you think that is possible to do?

    Plugin Author Julio Potier

    (@juliobox)

    You can hack your style.css and add this :

    .logged-in .hide-if-logged-in {
        display: none;
    }

    Then in the menu creation add the class “hide-if-logged-in” on each menu item you want to hide if user is logged in.

    See you

    Thanks Julio! I believe the same will work if I change “logged-in” to “logged-out” and use it the other way around instead. If, this should do for now to get the site launched. Later we’ll look for a solution that will not output the links in HTML at all.

    Plugin Author Julio Potier

    (@juliobox)

    Great 🙂 Do my plugin deserves a donation ? 😉

    It’s an excellent plugin and we’ll keep it on mind when the site starts earning something to donate 🙂 Thanks for the good work!

    Plugin Author Julio Potier

    (@juliobox)

    resolved …

    Unfortunately it’s not yet working. I added the class “hide-if-logged-out” to the appropriate menus (required adjusting the screen settings on sliding panel at the top of wp-admin/nav-menus.php) and added this to my CSS:

    .logged-out .hide-if-logged-out {
        display:		none;
    	visibility:		hidden;
    }

    HTML of the page shows that the class “logged-out” is not displayed anywhere on the page. On pages where the user is logged in, the <body> element is given the class “logged-in”. I tried changing the above code to

    body:not(.logged-in) .hide-if-logged-out {
        display:		none;
    	visibility:		hidden;
    }

    but ran into the fact that this CSS3 feature is not supported by IE8 and earlier. Is there another way to have this CSS be activated on pages that aren’t served for logged-in users?

    Of course a PHP solution would be to best, to not output any HTML and CSS at all. I propose the following addition to BAW Login/Logout Menu:

    Add this dropdown list next to all menu links on wp-admin/nav-menus.php: Display to: [All users]

    where the other options are Logged-in users, Non-logged-in users, and then each user role (to allow links that are only for Administrators). This would be very useful. I’ve already thought of more advanced solutions to allow for comma-separated lists of roles (eg. Administrators,Editors) that can have the roles displayed below as a help-text and/or use the same autofill as the tag selection on Edit Post page. That might take a bit longer to implement, though, and right now I’d love the first solution, to just be able to show any links only for either Logged-in users or Non-logged-in users.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Plugin: BAW Login/Logout menu] 2 Feature Requests’ is closed to new replies.