The MU forums have moved to WordPress.org

Invitation plugin (skeleton) (7 posts)

  1. PerS
    Member
    Posted 17 years ago #

    This plugin is missing the validation, but it should put you in the right direction (at least 'right' by my defination :))

    1st, modify wp-signup.php:

    do_action( "preprocess_signup_form" );
    if ($inviteOK) { // ADDED
    if ( is_user_logged_in() )
    signup_another_blog($blog_id);
    else
    signup_user( $blog_id, $user_email );
    if ($blog_id) {
    if( constant( "VHOST" ) == 'no' )
    $newblog = 'http://' . $current_site->domain . $current_site->path . $blog_id . '/';
    else
    $newblog = 'http://' . $blog_id . '.' . $current_site->domain . $current_site->path;
    printf(__("<p><em>The blog you were looking for, <strong>%s</strong> doesn't exist but you can create it now!</em></p>"), $newblog );
    }
    } // end $inviteOK

    Download the invites.php.txt file, save it as invites.php, read the comments and add validation code. Put it in mu-plugins. You can test run it without doing any modifications.

    Hope this helps.

  2. andrewbillits
    Member
    Posted 17 years ago #

    Nice work. Please feel free to upload this to wpmudev.org :)

  3. suleiman
    Member
    Posted 17 years ago #

    After installing this plugin (making modifications to wp-signup.php and dropping plugin file in mu-plugins folder) I see no options to invite users to signup for blogs.

    Is this plugin crippled/unuseable without the validation code?

    Where would one go to learn what the validation code might look like?

    EDIT: Ahhh...I now see the "skeleton" remark in the title. I'll wait and see if any community grand slammers come up with what we need. Thanks for your work on this!

  4. Rubyducky
    Member
    Posted 17 years ago #

    I'd very much appriciate this too :)

  5. PerS
    Member
    Posted 17 years ago #

    fwiw, the plugin is uploaded to wpmudev.org

  6. Rubyducky
    Member
    Posted 17 years ago #

    You think anyone could finish it off?

  7. suleiman
    Member
    Posted 17 years ago #

    or good sites to check for validation code?

About this Topic