2017 © Pedro Peláez
 

elgg-plugin users_invite

User Invitations

image

hypejunction/users_invite

User Invitations

  • Tuesday, August 30, 2016
  • by hypeJunction
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

User Invitations for Elgg

Elgg 2.0, (*1)

Features

  • Allows users to invite new users by email
  • An option to create an invite-only network
  • Keeps track of all invitations to the same email address
  • Creates friend requests when invitations are accepted

Notes

  • Registration must be enabled on the site for this plugin to work
  • In an invite-only network, uservalidationbyemail will be bypassed, as it is assumed that users would have received their invitation code by email

Developer Notes

Creating Invites

Other plugins may centralize off-site invitations and attach custom behaviour to the invites. For example, to invite non-registered users to a group by their email:, (*2)


$invite = users_invite_create_user_invite($email); add_entity_relationship($invite->guid, 'group_invite', $group->guid); add_entity_relationship($invite->guid, 'invited_by', $inviter->guid); // generate a registration link to include in the notification $registration_link = elgg_trigger_plugin_hook('registration_link', 'site', [ 'email' => $email, 'friend_guid' => $inviter->guid, ], elgg_normalize_url('register')); // implement a custom handler elgg_register_plugin_hook_handler('accept', 'invite', function($hook, $type, $return, $params) { $invite = $params['invite']; $user = $params['user']; $groups = elgg_get_entities_from_relationship([ 'relationship' => 'group_invite', 'relationship_guid' => $invite->guid, 'limit' => 0, ]); if (!$groups) { return; } foreach ($groups as $group) { // Let users confirm individual group invitations add_entity_relationship($group->guid, 'invited', $user->guid); } });

The Versions

30/08 2016

dev-master

9999999-dev http://hypejunction.com

User Invitations

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin users elgg invitations onboarding

30/08 2016

1.0.2

1.0.2.0 http://hypejunction.com

User Invitations

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin users elgg invitations onboarding

30/08 2016

1.0.1

1.0.1.0 http://hypejunction.com

User Invitations

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin users elgg invitations onboarding

14/06 2016

1.0.0

1.0.0.0 http://hypejunction.com

User Invitations

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin users elgg invitations onboarding