Log in

hypeInvite

Invitations for Elgg

Elgg 3.0

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
  • Group owners can allow members to invite other members
  • Site admins can allow group invitations of non-friends
  • Site admins can allow group invitations by email

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
  • When invited by email to group, non-existing users will first have to create an account. Upon registration, invitations will be created for every group the email has been invited to before registration.

Developer Notes

Creating Invites

Other plugins may centralize off-site invitations and attach custom behavior to the invites. For example, to invite non-registered users to an event by their email:


$invite = users_invite_create_user_invite($email); add_entity_relationship($invite->guid, 'invited_to', $event->guid); add_entity_relationship($invite->guid, 'invited_by', $inviter->guid); // generate a registration link to include in the notification $registration_link = users_invite_get_registration_link($email, $inviter->guid); // implement a custom handler elgg_register_plugin_hook_handler('accept', 'invite', function($hook, $type, $return, $params) { $invite = $params['invite']; $user = $params['user']; $events = elgg_get_entities_from_relationship([ 'types' => 'object', 'subtypes' => 'event', 'relationship' => 'invited_to', 'relationship_guid' => $invite->guid, 'limit' => 0, ]); if (!$events) { return; } foreach ($events as $event) { add_entity_relationship($user->guid, 'attending', $event->guid); } });

Package Releases

VersionRelease Date
hypeInvite 2.2.12.2.1
hypeInvite 2.2.02.2.0
hypeInvite 2.1.22.1.2
hypeInvite 2.1.12.1.1
hypeInvite 2.1.02.1.0
hypeInvite 2.0.02.0.0

Changelog

2.2.0 (2018-06-29)

Features

2.1.2 (2018-03-31)

Bug Fixes

  • ux: send notification when user joins group on accepted invite (cbb7257)

2.1.1 (2018-03-30)

Bug Fixes

  • urls: use invitation_code parameter name consistenly (d919829)

2.1.0 (2018-03-30)

Features

  • url: add a hook to filter invite URL params (e9451f6)

2.0.0 (2018-03-27)

Bug Fixes

  • forms: add an option to hide an invite code field (493f0a2)
  • friends: announce new friendships on river (da7bc26)
  • friends: correct friendship logic on user registration (6ee0615)
  • groups: add invitations to parent groups (55f8eb1)
  • groups: create an invitation before joining a group (21f2082)
  • ux: do not include invite code in notifications if form field is hidden (0d41a8f)
  • ux: improve the UX of automatic acceptance of invitations (14653e5)

Features

  • register: more efficient forwarding on registration (169e77a)
  • releases: initial commit (76d07bc)
  • releases: upgrade for Elgg 3 (b7d6101)

1.0.3 (2016-10-01)

Bug Fixes

  • friends: correct friendship logic on user registration (6ee0615)
  • groups: add invitations to parent groups (55f8eb1)
  • ux: do not include invite code in notifications if form field is hidden (0d41a8f)

1.0.2 (2016-09-30)

Bug Fixes

  • forms: add an option to hide an invite code field (493f0a2)
  • ux: improve the UX of automatic acceptance of invitations (14653e5)

1.0.1 (2016-09-29)

Bug Fixes

  • friends: announce new friendships on river (da7bc26)
  • groups: create an invitation before joining a group (21f2082)

Features

  • register: more efficient forwarding on registration (169e77a)

1.0.0 (2016-09-21)

Features

  • releases: initial commit (76d07bc)

About

Dependencies

Conflicts
Plugin: invitefriends Any
Requires
Elgg version >= 3.0
Plugin: hypeAutocomplete Any
Suggests
Plugin: friend_request Any
Plugin: groups Any