Hey!

In a project I need organic-group-managers of my site to invite other people (not registered) to their group. I need to have this flow (see attachment) in my drupal-website but havn't found a working og-invitation-solution for drupal 7.
So i decided to build one on my own, using the invite-API.

My plan is to hook into the "create_invite"-process, to save the group-id as additional data.
Whenever person registers now by an invitation-link, I have to check if there is group-data saved to this invitation and then join the user to the group.

Do you think this is a good way, solving my problem or do you have any other suggestions?

best wishes,
killerpoke

CommentFileSizeAuthor
og_invite.png50.14 KBkillerpoke
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

killerpoke’s picture

I just finished a first draft. You can see the sandbox here. http://drupal.org/sandbox/killerpoke/1441644.
The module is very simple (at the moment), and just covers some functionality, but I will add functionality if needed.

Vj’s picture

Hello killerpoke,

I want to try this og_invite module can you please tell me how to get the files from git as i never tried this

Thanks,
Vj

nedjo’s picture

@Vj: see http://drupal.org/node/1294804 for how to download a sandbox project.

Vj’s picture

@nedjo

THanks :)

Sylense’s picture

The plugin works great on my end. It works fine for the sitewide administrator but is there a permission to allow the GROUP administrators to invite users to a group? This may be an oversight on my part

killerpoke’s picture

whoop. the current project i need to use this module is currently freezed (because of another pointless facebook-app -.-). I will continue on this project in the end of april, then I'm going to implement the permission-check.

Amarjit’s picture

Excellent killerpoke.
I appreciate the work. Works like a charm.

Sylense, the module only allows the user to invite users to groups that they have permission to. I have created a new role for GROUP administrators, as they are required to do other things as well.

Thanks, again.
Amarjit
www.bharath.co.uk

Sylense’s picture

Amarjit, it works great from the administrator account (user 1) but I've added authenticated users to a group and the list under "Invite to Groups" does not populate with the groups they are a member of. Are you saying you got this to work somehow?

killerpoke’s picture

Hey folks.

I commited the feature to set invite permissions on the organic groups permission-page. I will try to solve this issue: http://drupal.org/node/1469348, then I will submit this sandbox to become a real project.

If you have any other features requests or something else please post it in the issue queue.

Sylense’s picture

Works great! Thanks for the commit. This should definitely be submitted as an official sub module for OG/Invite

Traverus’s picture

+1

killerpoke’s picture

Thank you for your feedback! I will submit this as a official module later this week.

SKrossa’s picture

The plugin worked great for me, too. Really looking forward to this as an official project/module —Thank you, killerpoke!

jday’s picture

I need something that will allow groups admins to invite non-users to a private group, any chance this project would work for that?

killerpoke’s picture

First I will try to make this sandbox a real module. Then wen can add features.
@jday: It's most likely, that this will be implemented soon.

nvl.sateesh’s picture

hi killerpoke,

I tried to get the sandbox code but got only the README file. Can you please give me the zip file or put it as a project, as it could be really very helpful for a project I am working on. I can also help testing and fixing any issues.

thanks for this pal...

killerpoke’s picture

Hey nvl.sateesh!

The code has moved to the 7.x branch, so you just have to hit: git clone http://git.drupal.org/sandbox/killerpoke/1441644.git -b 7.x invite_og_plugin

Sylense’s picture

I upgraded to OG 7.x-2.0-alpha3 and now it's broken :(

Are there any plans to add support for 7.x.-2.x? I needed to upgrade to the latest version of OG to utilize some of the new features and architecture which is unfortunate because I still want to be able to invite users to groups.

killerpoke’s picture

Hey Sylense!

I will look this up. Can you post a new issue at the project page: http://drupal.org/project/issues/1441644?status=All&categories=All

thank you!

killerpoke’s picture

I've created a second version for OG 7.x-2.x. You can find it here: http://drupal.org/project/1441644/git-instructions

Yuri’s picture

Is this now part of Invite 7.x-2.x-dev ?

ludo1960’s picture

Wondering the same thing, can somebody confirm it is now part of the 7.x-2.x-dev module?

killerpoke’s picture

I just looked throw the 7.x-2.x-dev code and found nothing related. Btw: I just updated my sandbox-plugin and it hopefully will be a full module soon, since there aren't any issues I think.

(http://drupal.org/sandbox/killerpoke/1441644)

alesr’s picture

You can try this new module. It adds an Invite People link on group's Group page that I was missing (see image) OG Invite People
(made for OG 7.x-2.x)

SocialNicheGuru’s picture

Issue summary: View changes

but does og_invite_people integrate with the invite module?