Group Mods

  • Profile picture of Hugo
  • Profile picture of r-a-y
  • Profile picture of @mercime

Invite Anyone – invite by email too – please help test (160 posts)

Started 2 years, 1 month ago by: Boone Gorges

  • Profile picture of Boone Gorges Boone Gorges said 2 years, 1 month ago:

    Hi everyone. I have updated my Invite Anyone plugin to allow invitation by email address. It seems pretty solid, but I would really like to have some other people test it before I make it the stable version.

    If you have a non-production site and you wouldn’t mind testing it out, please download the development trunk version at http://wordpress.org/extend/plugins/invite-anyone/download/. If you’re already running a version of Invite Anyone on your site, please make sure to deactivate it before downloading and activating this one. (Note too that you must deactivate and reactivate – if you just replace the files, the necessary db table won’t be created.)

    A brief rundown of the new functionality:
    - A new subnav item has been added to profile pages, called Send Invites
    - Under that item are two pages. The first, Invite New Members, allows you to enter up to five email addresses, a custom message, and select some of the groups you’re a member of.
    - The second page is Sent Invites, a list of invitations you’ve already sent.
    - When you send the invitation, an email goes to the invitee(s) with the custom message and a link to [your bp install]/register/accept-invitation/[email-address]
    - When the user clicks that link, he or she should see the normal register page, with a message above that says “You’ve been invited by [the name(s) of the user(s) who sent invitations]…”
    - When the user activates the new account, he or she will receive invitations to all invited groups, as well as friendship requests from all members who sent invitations.
    - There is also a new (and ugly!) link on the Group Send Invites page, which takes you to the Send Invites profile page and pre-selects the group you just came from.
    - There’s a pretty fair amount of email validation that happens. Try punching in some bad emails (banned on your WPMU install, poorly formed, etc) and see what happens. I should note that right now I’m using WPMU’s native email validation – I haven’t even tried loading it on a single-blog install of WP. I did use if ( function_exists ) so nothing should crash, but it’ll probably allow any old email on single WP.

    Phew – I think that’s it.

    In the future, things like number of allowed email addresses, the default message, etc will be under the control of the site admin. I’m also going to write some Javascript that does inline validation of form data. But for now I think the key functionality is in place.

    Please hammer away at it and leave any bugs/suggestions here.

  • Profile picture of Anton Anton said 2 years, 1 month ago:

    Wrong link

  • Profile picture of Boone Gorges Boone Gorges said 2 years, 1 month ago:

    What’s the wrong link?

  • Profile picture of Anton Anton said 2 years, 1 month ago:

    Activated the plugin but the subnav items to “send invites” does not show.

    * I downloaded the wrong version (displays now)

  • Profile picture of Boone Gorges Boone Gorges said 2 years, 1 month ago:

    You have the 0.4-bleeding version? There should be a link on your profile (just to the left of Settings). Try going directly to http://example.com/members/anton/invite-anyone

  • Profile picture of Anton Anton said 2 years, 1 month ago:

    I’ve sent invites to 4 people and it sends out the invite but it doesn’t show after you have sent the invites to whom you have sent it to. It shows the heading “You have sent invitations to the following people.” and the headings but doesn’t show anyone.

  • Profile picture of Boone Gorges Boone Gorges said 2 years, 1 month ago:

    Can you check your db to see if the table wp_bp_invite_anyone exists? Either the table’s not there, or it’s there but not getting written to.

    The table’s supposed to be created when you activate the plugin.

  • Profile picture of Anton Anton said 2 years, 1 month ago:

    Get this error when clicking on the “send invites” main heading

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘bp_example_screen_one’ was given in…

  • Profile picture of Anton Anton said 2 years, 1 month ago:

    This table doesn’t exist “wp_bp_invite_anyone”

  • Profile picture of Boone Gorges Boone Gorges said 2 years, 1 month ago:

    1) Table problem was my stupid mistake. I forgot to merge the code completely.
    2) Warning message: another stupid mistake

    I just rolled another trunk version up that should fix both problems. Download it in about five or ten from the repo, or immediately from here http://plugins.svn.wordpress.org/invite-anyone/trunk/.

    thanks for your patience!

  • Profile picture of Boone Gorges Boone Gorges said 2 years, 1 month ago:

    PS – don’t forget to deactivate and reactivate when you get the new version

  • Profile picture of Hugo Hugo said 2 years, 1 month ago:

    Great stuff!

    Installed ‘bleeding’ on live test site running BP 1.2.3 / WPMU 2.9.2

    Installed smoothly – previous version didn’t exist fresh install (production site has older version )

    Things noted:

    The group send invite that was part of the original plugin function allows to select from all members including members marked as spammers! (am logged in and working as admin)

    Having sent email invite from my account I’m returned to a ‘Sent invites’ (‘You have sent invitations to the following people.’) but there is no data available.

    No email has been received, but tested setting up new account and that hasn’t been emailed either so think this is a BP 1.2.3 issue as all was working earlier today *sigh*

    Looking pretty good though.

  • Profile picture of Boone Gorges Boone Gorges said 2 years, 1 month ago:

    hnla – Would you mind checking to see whether the table wp_bp_invite_anyone exists in your database? The “sent invites” information comes from there.

    I didn’t know about the spammer issue!! I will have a look at it.

  • Profile picture of Hugo Hugo said 2 years, 1 month ago:

    Erm doesn’t appear to exist. Think, reading your posts just before my first that I downloaded at the same time roughly you were uploading so need to download your corrections which I’ll do in a minute and re try

  • Profile picture of Anton Anton said 2 years, 1 month ago:

    Installed from the repo and the table is created now. It also show’s the “invites” that were sent so you were right about the table. I will try to test it thorough tonight and let you know on any other bugs/glitches. One question: Is this for WPMU or single WP?