James Farmer
Supreme Deity
WPMU DEV Staff
Lifetime member
Founder & CEO Likes (0)
By popular demand we've got a couple of new plugins for you today.
Log in redirect: http://premium.wpmudev.org/project/login-redirect
and
Log out redirect: http://premium.wpmudev.org/project/logout-redirect
They both do exactly what they say they do... allow you to edit where your users are sent when they log in and log out :)

Responses (13)
Member (joined October 2008) Likes (0)
I installed the login-redirect to Petomundo! and got the ol' white screen of death. I am running BuddyPress, don't know if that is part of it, but it might be.
Erstwhile founder (joined May 2007) Likes (0)
Hiya,
Could you please copy/paste the exact url you set in the plugin file. Wrap it with <code </code so bbPress won't turn it into a link.
Thanks,
Andrew
Member (joined October 2008) Likes (0)
Sorry, I did the link all on my own.
Petomundo! is where it was installed, with the redirect set to
http://petomundo.comI have removed the plugin now.Erstwhile founder (joined May 2007) Likes (0)
Hrm, can you please send your plugin file as modified to andrew AT wpmudev.org. I've tested the plugin numerous times now and I can't seem to reproduce this problem.
Thanks,
Andrew
Member (joined October 2008) Likes (0)
Hmm... Tested again, works fine now. Thanks for the great plugin!
Member (joined October 2007) Likes (0)
can we use some variables in there, i.e. redirect to the logged user's blog? or will there be issues if a user has more than one blog? anyway, nice plugin as is :-)
Erstwhile founder (joined May 2007) Likes (0)
Hiya,
Very good.
Sure thing. You can set it to redirect to anything you want. I just included the little config section for people who want to redirect to a page on the main blog, etc.
This function will grab the info for a users primary blog:
get_active_blog_for_user( $user_id )
Thanks,
Andrew
Member (joined December 2008) Likes (0)
I'm using MU 2.7 with Pay-to-blog but it doesn't go directly to /blog.php so that users see the payment screen. I want to use this plugin to direct people directly to that screen.
How do I use the function Andrew gave before ---get_active_blog_for_user( $user_id )--- to make that happen?
Member (joined December 2008) Likes (0)
As discussed before with andrea_r I can't even tell the difference between french and php so I'm not sure how to send people to
/wp-admin/blog.phpusing the login redirect plugin. Of course I tried typing in/wp-admin/blog.phpin the config section of the plugin and it works for the admin but not on other blogs. Of course I know why, its because I need it to grab the user ID of the primary blog using the function gave previously by Andrew but I'm not sure how to use it. Any help would be greatly appreciated.Member (joined October 2007) Likes (0)
would anyone please share the trick how to redirect a user to his homepage? meaning his blog frontpage please?
Member (joined November 2010) Likes (0)
This is exactly what I am trying to figure out as well. Anyone have the php handy to create a link to the users primary blog?
Member (joined April 2009) Likes (0)
Hiya,
A user has to be logged in first - then you can direct him to his primary blog. As far as I know, there's no way to do this in one step. They must log in first - then you can use $userinfo->primary_blog to pull their primary blog.
Hope that helps.
Thanks!
Member (joined May 2011) Likes (0)
I have big trouble and "crashed" the functionality of my Blog when installing Login Redirect.
It didnt take me to right place (MU site with 7 blog). The first in the root: http://mydomain.com is public and there is also a Login button. My meaning was that when a member made the Login they should arrive at one of the other "subblog page" but sorry to say this is what happened.
Now I cant show the root public pages, when taking the URL: http://mydomain.com it goes direct to: http://mydomain.com/wp-login.php?redirect_to=%2F and what is showing up is not the public page but instead the wordpress login screen. And after made that login it goes to the main root index page.
After many tries I deactivated the plugin and also removed it BUT somehow it must have left something in a db-table or php page because now I can never show the public pages in the root. Always getting the wordpress login screen.
Take care / Lars
Become a member