The MU forums have moved to

integrating sign up with custom site (1 post)

  1. fritzdsouza
    Posted 15 years ago #


    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);
    echo "
    num_activate = ".$num_activate;

    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'");
    $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


About this Topic

  • Started 15 years ago by fritzdsouza