2017 © Pedro Peláez
 

elgg-plugin hypeinvite

An interface for inviting new users to the site

image

hypejunction/hypeinvite

An interface for inviting new users to the site

  • Saturday, October 1, 2016
  • by hypeJunction
  • Repository
  • 2 Watchers
  • 1 Stars
  • 37 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 5 Versions
  • 6 % Grown

The README.md

Invitations for Elgg

Elgg 2.2, (*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
  • 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:, (*2)


$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); } });

The Versions

01/10 2016

dev-master

9999999-dev http://hypejunction.com

An interface for inviting new users to the site

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin elgg invite invite code invite only network

01/10 2016

1.0.3

1.0.3.0 http://hypejunction.com

An interface for inviting new users to the site

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin elgg invite invite code invite only network

30/09 2016

1.0.2

1.0.2.0 http://hypejunction.com

An interface for inviting new users to the site

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin elgg invite invite code invite only network

29/09 2016

1.0.1

1.0.1.0 http://hypejunction.com

An interface for inviting new users to the site

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin elgg invite invite code invite only network

21/09 2016

1.0.0

1.0.0.0 http://hypejunction.com

An interface for inviting new users to the site

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin elgg invite invite code invite only network