Hi
I am trying to integrate mu blog sign up with a custom site which already has users so i am importing those users and creating blogs for them on mu
so far i have been able to identify the following
on the custom page of mine which is in the root directory of mu install
i have to include
require_once ('wp-config.php');
require_once( 'wp-includes/registration.php');
require_once( 'wp-includes/user.php');
then i have to call
wpmu_signup_blog($domain, $path, $title, $user, $user_email, $meta='' ) ;
then I have to get the user key
i am doing this to activate the new users without the mail going out etc
$sql_activate=mysql_query("select * from wp_signups where user_login='$user_login' and active='0'",$conn);
$num_activate=mysql_num_rows($sql_activate);
echo "
num_activate = ".$num_activate;
$key_row=mysql_fetch_array($sql_activate);
$key=$key_row['activation_key'];
wpmu_activate_signup($key);
then i am doing this to integrate the user password from their existing account to the new account on mu for the users
$sql_password=mysql_query("select * from wp_users where user_login='$user_login'");
$num_password=mysql_num_rows($sql_password);
$key_password=mysql_fetch_array($sql_password);
$id=$key_password['ID'];
$new_password = $password;
wp_set_password( $new_password, $id);
ok now the issue is with this
only for the first user the blog is created but for all the other users imported only user accounts are created
am I doing something wrong or did i forget something somewhere?
any help would be really appreciated
thnx