Ah yes, that'll do it! Thanks :D! I've hacked around a bit with Ron's login widget and what you've given me so that users with the level of subscriber log in, they go directly to their primary blog's homepage, while everyone else goes to their primary blog's Dashboard. Also, subscribers are completely cut off from the Dashboard, when they try to get there, they just get routed to their homepage again. In mu-plugins/redirect-primary.php:
<?php
// Block Dashboard from Subscribers & forward them to their primary blog
function redirect_to_primary_blog() {
if (!is_site_admin()) {
global $current_user;
if (!$current_user->has_cap('edit_posts') && (empty($redirect_to) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) {
get_currentuserinfo();
$blog_details = get_blog_details(get_usermeta($current_user->ID, 'primary_blog'));
header('Location: '. $blog_details->siteurl);
}
}
}
add_action('admin_init', 'redirect_to_primary_blog');
?>
I've also embedded the plug-in script into a separate php file called by my header template and swapped out the logout submit button with an anchor tag that calls wp_logout_url with a redirect so it appears to stay on the site and not go to that dedicated login/logout page. login-box.php:
<?php
global $user_ID;
global $current_user;
get_currentuserinfo();
if ('' == $user_ID) {
?>
<form name="loginform" id="loginform" action="wp-login.php" method="post">
<p><label>Username:<br />
<input type="text" name="log" id="log" value="" size="20" tabindex="1" />
</label></p>
<p><label>Password:<br />
<input type="password" name="pwd" id="pwd" value="" size="20" tabindex="2" />
</label></p>
<p><label>
<input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" /> Remember me
</label></p>
<p class="submit">
<input type="submit" name="submit" id="submit" value="Login »" tabindex="4" />
</p>
</form>
<?php
wp_register();
} else {
?>
<p>Welcome <span><?php echo $current_user->display_name; ?></span></p>
<p class="submit">
<a href="<?php echo wp_logout_url( get_blogaddress_by_id(1) ); ?>" title="Logout">Logout</a>
</p>
<?php } ?>
Thanks for all the help guys! Now I'm onto my next task of figuring out a way to automatically import SQL to newly created blogs on the MU site. I'll be posting here with any questions or successes. I haven't found any conclusive information on that subject in the forums here...yet.