-
A couple of questions. THe plugin is amazing and I am close to launching. I have a few questions and help is appreciated.
1. Is it possible, through Userpro dashboard, to hide the Login and Register (/profile/login and /profile/register/) pages from users who are already registered members? For example a user can now sign into their account and then type or paste the URL example.com/profile/login or example.com/profile/register and they can see this page. Can this be hidden via Userpro or should I look for another plugin to hide these pages from registered users?
2. When a user registers and clicks on the Verification link from their email the link takes you to the /profile/?accountconfirmed=true page. I was wondering if I could make the verification email direct the user to the Login or Register page instead of the profile page…a verification link like: /register/?accountconfirmed=true page? Can this be changed in the code perhaps?
Thanks for the help!
Just pinging this to get more attention. I have the same #1 question as @alexwadja had. I added the login, register and my profile links to my header but I would like to only show them when appropriate. i.e. Hide the login/register if a user is logged in and only show my profile if a user is already logged in.
Im not sure about the url bit, but if you want your header menu to have a login/register link when user is logged out and a log out link when user is logged in then I would recommend this free plugin:
I use it for my site and it works perfectly.
Two other plugins I have found to be extremely useful for limiting pages and role creating are: user role editor and WordPress Access control. Both free and work fine with my site.
Hope this helps a bit
You need to use conditional menu plugin as peem suggested. There’s no automatic way to show login if he is guest, or logout if he is logged in. There are plugins that do this, and will work with userpro.
Thanks. I like keeping my plugin usage to the minimum. Turns out I wasn’t thinking correctly as the solution is pretty simple. Here it is for future inquirers:
PHP1234567891011<?phpif ( is_user_logged_in() ) { ?><?php wp_get_current_user();echo 'Hi ' . $current_user->user_firstname . '!';?><?php } else { ?><ul><li><a href="#" class="popup-login">Login</a></li><li><a href="#" class="popup-register">Register</a></li></ul><?php }?>That worked Socks, thanks!
<?php if ( is_user_logged_in() ) { wp_get_current_user(); echo 'Hi ' . $current_user->user_firstname . '!'; } else { ?><a href="#" class="popup-login">Login</a> | <a href="#" class="popup-register">Register</a><?php } ?>
You must be logged in to reply to this topic.