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
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.
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.
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?
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.
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!
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.