Skip to:
Content
Pages
Categories
Search
Top
Bottom

Invite Anyone


  • Boone Gorges
    Keymaster

    @boonebgorges

    I just posted a first version of a plugin called Invite Anyone, which alters the Send Invites group screen to allow group admins to invite anyone from the BP installation, instead of limiting the list to friends only. To make what could be a huge member list easier to navigate, I ported the autosuggest code from the Compose Message screen over to this page, so you can start typing the name of the member you want to invite, and it’ll be suggested automatically for you.

    Read more about it and download it here http://dev.commons.gc.cuny.edu/2009/12/18/new-buddypress-plugin-invite-anyone/. I’ll put it in the plugin repo once I get access to the directory.

Viewing 19 replies - 1 through 19 (of 19 total)

  • Bowe
    Participant

    @bowromir

    Great work! Just what I needed and I like the AJAX auto suggest feature very much!


    PH (porsche)
    Participant

    @porscheheritage

    Just splendid!

    I needed this!


    Boone Gorges
    Keymaster

    @boonebgorges

    Thanks!

    Bowe – After I got the AJAX figured out I realized that I should probably separate it out and offer it as a separate plugin. Either that or in a future version of this plugin I’ll allow site admins to turn off the “invite anyone” feature but keep the autosuggest.


    Mariusooms
    Participant

    @mariusooms

    Ah…so awesome…got many requests for this! It should be core, it does not make sense to invite only friends. Great initiative.


    Boone Gorges
    Keymaster

    @boonebgorges

    Update: it’s in the wp.org repo: https://wordpress.org/extend/plugins/invite-anyone/


    gsmith6673
    Participant

    @gsmith6673

    Boone, I downloaded and got this error when trying to activate:

    Warning: require(/home/garysmit/public_html/wp-content/plugins/bp-invite-anyone/invite-anyone/invite-anyone-cssjs.php) [function.require]: failed to open stream: No such file or directory in /home/garysmit/public_html/wp-content/plugins/invite-anyone/invite-anyone.php on line 322

    Ideas?


    Boone Gorges
    Keymaster

    @boonebgorges

    gsmith6673 – What are the contents of the bp-invite-anyone directory? You should have a readme.txt, the plugin file invite-anyone.php, and a directory invite-anyone, which contains one php file (the one that your error reports as missing), three .js files, and a gif file. Do you see something similar?


    gsmith6673
    Participant

    @gsmith6673

    This path: /public_html/wp-content/plugins/invite-anyone/

    Contains this:

    Folder:invite-anyone

    invite-anyone.php

    readme.txt

    _____________________________________________________________

    then here is the content of the “Folder: invite-anyone” (from above)

    invite-bullet.gif

    invite-anyone-cssjs.php

    invite-anyone-js.js

    jquery.autocomplete.js

    jquery/autocompletefb.js

    I am running the latest BP and WPMU. I used the typical install through the WPMU admin. I also tried loading manually, both got error?

    Thank you for the assist…


    Boone Gorges
    Keymaster

    @boonebgorges

    Shoot, I think I see the problem. The path of the file that the plugin is trying to require is coded incorrectly, due to the fact that when I requested a place in the plugin repo, I asked for the wrong slug. On line 322 of invite-anyone.php, it should say

    require ( WP_PLUGIN_DIR . '/invite-anyone/invite-anyone/invite-anyone-cssjs.php' );

    instead of

    require ( WP_PLUGIN_DIR . '/bp-invite-anyone/invite-anyone/invite-anyone-cssjs.php' );

    Note that the “bp-” has been cut off.

    You can change this yourself, or download it from the repo again – I’ve changed it in the trunk.


    gsmith6673
    Participant

    @gsmith6673

    That did it! works now.

    To report one more small item? I am getting this layout error. Are you?

    http://erhom.com/files/2009/12/invite.JPG

    gs


    Boone Gorges
    Keymaster

    @boonebgorges

    Glad it works!

    I styled the nav item to match the bp-default (pre 1.2) style, which aligns those items to the right. You might have to add the new CSS selector (I think it’s #bp-nav-invite-anyone, but I can’t remember exacly and I’m not in front of my computer right now) to your custom stylesheet.

    Btw I wouldve given it the same css selectors as the default send invites link, but I used the Group Extension API, which creates selectors automatically and as far as I know does not allow you to override.


    gsmith6673
    Participant

    @gsmith6673

    Ok…

    thxs

    nice job, by the way…


    roydeanjr
    Participant

    @roydeanjr

    What would it take to incorporate the bp-invitefriends option of manually entered email addresses?

    I would also like to type a customized message rather than a centrally managed message. Is that in the feature list?


    Boone Gorges
    Keymaster

    @boonebgorges

    Hi roydeanjr. Including such functionality is definitely on my list of things to do. As far as I know, the bp-invitefriends plugin you mention (which was part of Nicola Greco’s BPDEV) does not work with current versions of BP, so it would take a bit of work to get it running even on its own, much less as a seamless part of my plugin. But I’m glad you made me remember his work, as I’ll definitely use it as a starting point when I add the ability to invite non-members to my own plugin.


    roydeanjr
    Participant

    @roydeanjr

    Hey, Boone, Thank you, I look forward to your additions.

    And, actually, the plugin I am referring to is from Giovanni Caputo, which I suppose he could have gotten from BPDEV, but I am not sure. I did get the go ahead from Giovanni to modify his plugin, but I don’t have the expertise to make the change I made stick or be used by BP.


    gpo1
    Participant

    @gpo1

    Can this plugin do adapted to invite friends from different social networks like FB etc


    gpo1
    Participant

    @gpo1

    Any update on my comment ?

    ‘Can this plugin do adapted to invite friends from different social networks like FB etc’


    Boone Gorges
    Keymaster

    @boonebgorges

    Hi Gpo1 – The plugin can’t do this right now. The next thing I’m going to add to the plugin is the ability to invite individual members to your BuddyPress community via email address (as this is the thing that’s most needed for my particular project). After that I might look into doing some sort of FB connect.

    I was testing this with 1.2 and the page kind of gets stuck when making a selection of friends to invite. I am wondering if it’s a problem with my installation or if the plugin is yet to be updated for 1.2. Either way it’s fine, I was just testing.

Viewing 19 replies - 1 through 19 (of 19 total)
  • The topic ‘Invite Anyone’ is closed to new replies.
Skip to toolbar