carnold Posted June 30, 2008 Share Posted June 30, 2008 Sorry if i post this in the wrong forum. someone plaese move if in fact it is posted in the wrong forum. What i am trying to do is have users of my blog (run with mu wordpress which is essentially the same as wp) login on the main blog, http://mytimewithgod.net, and then be redirected to their blog. Here is some code from wp-login.php: if ( !isset( $_REQUEST['redirect_to'] ) || is_user_logged_in() ) $redirect_to = 'http://'.$user_login.'mysite.com'; else $redirect_to = $_REQUEST['redirect_to']; if ( $_POST ) { $user_login = $_POST['log']; $user_login = sanitize_user( $user_login ); $user_pass = $_POST['pwd']; $rememberme = $_POST['rememberme']; } else { $cookie_login = wp_get_cookie_login(); if ( ! empty($cookie_login) ) { $using_cookie = true; $user_login = $cookie_login['login']; $user_pass = $cookie_login['password']; } } Can someone help shed some light on this? Link to comment https://forums.phpfreaks.com/topic/112611-login-redirect/ Share on other sites More sharing options...
Tchelo Posted July 1, 2008 Share Posted July 1, 2008 What seems to be the problem? Are you actually using your $redirect_to variable? You should explain the problem a little further. Link to comment https://forums.phpfreaks.com/topic/112611-login-redirect/#findComment-578812 Share on other sites More sharing options...
dannyb785 Posted July 1, 2008 Share Posted July 1, 2008 yea, where's the function to redirect? I don't see it. And there's your problem Link to comment https://forums.phpfreaks.com/topic/112611-login-redirect/#findComment-578816 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.