The MU forums have moved to WordPress.org

Registration by Invitation Only (22 posts)

  1. CoreyCampbell
    Member
    Posted 15 years ago #

    I've done a bit of hunting but I can't seem to find any hack for this. Is there any hacks out there that would enable wordpressmu to only have registration through invitation only.

    It seems a bit far fetched. But it would be really nice to have an invite system of some sort.

  2. CoreyCampbell
    Member
    Posted 15 years ago #

    Okay I found some talk about this but I don't understand how this is working...

  3. zappoman
    Member
    Posted 15 years ago #

    I've never searched to see if someone has already built a plugin to do this, but depending on how sophisticated you want your security to be, there are several approaches you could take.

    If you have the skills and time to attack this, I'd suggest the following...

    You can modify your wp-signup.php to check for the existance of a specific $_REQUEST[] param that you set in your invitation module.

    If you need this to be secure, then you'll want to make sure that parameter is actually generated randomly but can be checked as valid. You could get an idea of how to do this by looking at how wp-login.php handles "lost password" keys.

    If I was going to do this, then I'd make wp-signup.php bail out with some kind of a friendly "get your friend to invite you" message if someone tries to access it without the invite key.

  4. andrea_r
    Moderator
    Posted 15 years ago #

    It used to be in the code, now it's not, and a couple of us had plans to work on it, but it slid down in priority.

    I know I got about halfway in making the original included code into a plugin, hit a snag, and dropped it for now.

  5. zappoman
    Member
    Posted 15 years ago #

    I've made some major hacks to my sign up process... but it's not done as a plugin (most of the features I want require core changes)...

    I am doing my work with the hope that I will eventually submit a patch for consideration to be included in a future release...

    But at this point, I'm focused on making my system work the way I want it to.

    That being said, when I get mine done, I will share it.

    (I wonder if I'll get the same flood of "is it done yet" posts that Dr. Mike got for his stats plugin?)

  6. andrea_r
    Moderator
    Posted 15 years ago #

    Probably. :)

  7. lunabyte
    Member
    Posted 15 years ago #

    Hey Zap, is it done yet? Huh? Huh? :D

    he he he

  8. andrea_r
    Moderator
    Posted 15 years ago #

    Look, if I have to pull over this forum, I WILL. :D

  9. lunabyte
    Member
    Posted 15 years ago #

    :P

    What-EV-er! 8-)

  10. suleiman
    Member
    Posted 15 years ago #

    pull what? me no get it. :(

  11. CoreyCampbell
    Member
    Posted 15 years ago #

    I think he means pull it over as in stop it. Yeah, I was browsing around I saw someone say that it was not implemented in later versions.

    My Blog is more personal blog, so it's to my advantage to have by invite only. Or to have something like gmail where other members are given invites.

    I'll see what I can do. I'm not the best at making plugins. Maybe if I can get a hold of an earlier version I can tamper with it...

    Plus... I hate spam. :D

  12. lunabyte
    Member
    Posted 15 years ago #

    <cough>wpmudev.org</cough>

    ;)

  13. CoreyCampbell
    Member
    Posted 15 years ago #

    I already checked the captcha. It's just not what I want. What I need is an invite system. Not to protect from spam but just to have that way to sign-up. It just works better for my blogging system.

  14. nocomment
    Member
    Posted 15 years ago #

    I do hope that someone with the abilities I lack will continue this as I think it is an excellent idea.

    Perhaps lunabyte above meant:-

    http://wpmudevorg.wordpress.com/project/Invitation-plugin-(skeleton)

    I am not sure if this is something which may give somebody a start as I have not looked at it - it would be meaningless to me!

    :)

  15. CoreyCampbell
    Member
    Posted 15 years ago #

    Yeah. I took a look at that. I'm not sure how to tackle that yet...

  16. kingler
    Member
    Posted 15 years ago #

    We have a working version, but not ready for public release yet.

  17. CoreyCampbell
    Member
    Posted 15 years ago #

    hooray.

  18. aahinoam
    Member
    Posted 15 years ago #

    CoreyCampbell, is it ready for public release?

  19. oxeen
    Member
    Posted 15 years ago #

    Looking forward to see the release.

  20. aloncarmel2k
    Member
    Posted 15 years ago #

    Well, heres a quick code i use to limit signups. its hardcoded key, i'll release a function that lets users invite friends soon.

    here is the code:

    open signup.php and add just after the the header function this:

    'function get_args ( $args ) {
    if ( empty($args) ) { return; }

    if ( $_POST ) {
    return trim($_POST[$args]);
    } else if ( $_GET ) {
    return trim($_GET[$args]);
    }

    return;
    }

    $var_invitationkey = get_args('invitationkey');

    if ($var_invitationkey == '7928349hwfesdlfj') {'

    Add at the bottom where the footer function appears this:

    } else {

    echo 'No invitation key?';

    }

    You can obviously mod it to whatever you like.

  21. aloncarmel2k
    Member
    Posted 15 years ago #

    i also added a col to the wp_blogs called invitation and now i pull the key according to the blog_id which the user is currently viewing and comparing it. each blog on signup is generated with an invitation key

    global $code;
    global $user_ID,$current_blog;
    $code = encryptme('SzLbSmJgVlDkHk',join("01",array("az",$user_ID,$current_blog->blog_id,"junkjunk")));

    now user can invite his friends to join his blog by sending them a link with the key included. simple and effective.

  22. Parado
    Member
    Posted 14 years ago #

About this Topic

  • Started 15 years ago by CoreyCampbell
  • Latest reply from Parado