Great work! Just what I needed and I like the AJAX auto suggest feature very much!
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.
Ah…so awesome…got many requests for this! It should be core, it does not make sense to invite only friends. Great initiative.
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?
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?
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…
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.
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
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.
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?
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.
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.
Can this plugin do adapted to invite friends from different social networks like FB etc
Any update on my comment ?
‘Can this plugin do adapted to invite friends from different social networks like FB etc’
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.