DR
Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.
Hi,
Was giving this a go and I noticed two things. Don’t know if I’ve just not looked through enough for a switch.
1. Is it normal to log out to the default WordPress logout page?
2. I can’t seem to find any options to control the colors of the button and the header.Will keep looking though.
Cheers
This reply has been marked as private.June 10, 2015 at 9:03 pm in reply to: Showing the current user's listing detail in their dashboard #42123Hi Paolo,
Thank you for the follow up and response. I am looking forward to seeing this sorted out.Cheers
June 10, 2015 at 5:03 am in reply to: Showing the current user's listing detail in their dashboard #41974Hi Paolo,
Thanks for the response. I have actually tried that your suggestion along with a host of others (including plugins). I find the problem is the same in all the situations as I stated. It redirects to http://siteadrress/user_nicename while profile is at http://siteadrress/members/user_nicenameWill keep trying and will post any successes but in the meanwhile, I am standing by for suggestions please..
Cheers.
June 9, 2015 at 8:12 am in reply to: Showing the current user's listing detail in their dashboard #41864Hi Paolo,
I have been trying to get this to work for a little while now.. but not so lucky.
Adding this bit of code to the functions.php I was able to get it to redirect to:http://mysite/user_nicename/ while the profile is actually in http://mysite/members/user_nicename/
/*
Following Function Redirect the user to profile page after login
*/add_filter(“login_redirect”,”bpdev_redirect_to_profile”,10,3);
function bpdev_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user)
{
if(empty($redirect_to_calculated))
$redirect_to_calculated=admin_url();/*if the user is not site admin,redirect to his/her profile*/
if(!is_site_admin($user->user_login))
return bp_core_get_user_domain($user->ID );
else
return $redirect_to_calculated; /*if site admin or not logged in,do not do anything much*/}
(credits: https://codeofsandy.wordpress.com/2015/04/21/buddypress-redirect-user-to-profile-page-after-login/)
Can you help with this please?
I broke it. But I guess it’s cause I didn’t do it right. New to WP too. Will try again and if I can’t get it to work, maybe have a PM if that’s ok with you..:)
Thank you
That was quick…! Thank you. Will try this out and get back asap.
-
AuthorPosts