Hi Ulises.
To manage login and logout page redirects you need a plugin like Peter’s Login Redirect which will let you control the login and logout redirect actions by user role:
http://ww.wp.xz.cn/plugins/peters-login-redirect/
Have added an option to add a welcome message. The welcome message does not include the user’s profile name but you can display the welcome message next to the user’s avatar image.
Thanks leehodson,
It’s works, but I still have some problems.
With the Peter’s Login Redirect I can’t (or I don’t know) display the welcome message, I don’t find the optión, and otherwise, I don’t know which is the link to logout, because this:
wp-login.php?action=logout
don’t work the redirection and ever send mi to the wordpress login page…
Thanks a lot
YES…. The new version have a Welcome message… perfect!!!!
But I don’t know how to personalize it with the username 🙁
Have you seen the plugin “Theme My Login” ?
That plugin can be used to prevent users seeing the WordPress login screen.
Peter’s Login Redirects is used to change the page a visitor sees after login and the page a visitor sees after logout.
The BuddyMenu widget will not currently display the user name in the welcome message.
To display a welcome message that includes the logged in user’s name
Install the Ultimate TinyMCE plugin and enable the Ultimate TinyMCE PHP widget. You will then be able to use PHP in a PHP widget to display a custom welcome message. Add this PHP code to your Ultimate TinyMCE widget:
<?php
if ( is_user_logged_in() ) {
$before = 'Text before username';
$after = 'Text after username';
global $current_user;
$username = '<a href="'.bp_loggedin_user_domain( '/' ).'" alt="">'.$current_user->user_login.'</a>';
echo $before.' '.$username.' '.$after;
}
?>
Place the widget above the BuddyMenu widget. Edit the text for $before and $after. Be careful not to remove the single quote marks.
The welcome message will display to logged in users only.
I will add this feature to the widget later but it won’t be today.
Thank you…. a perfect explanation
But… I still be in trouble 🙁
I see Theme my login but I think I don’t need it, for me is enought with buddy menu, but the only problem now is the logout button, when I used, wordpress give me a message saying: Are you sure want to logaout?, and I prefeer to logout directly….
Maybe it’s possible with a custom url, but all I try have the same problem 🙁