Secure Invites for WordPress MU

This plugin stops access to your signup page, except where the visitor has been invited and clicked the link in their invitation email. Your users invite people, and you can see who has sent the most invitations, and how many resulting signups have occurred. Other features:

  • Restrict the ability to invite people to users who have been registered only for a certain number of days or more
  • View the number of invites sent and resulting signups per month
  • View the users who have sent the most invites, and the number of resulting signups
  • Browse all invitations sent (auto paginated)
  • Change the default email text
  • Set after how many days an invitation will expire
  • Works with different locations of signup page (default: /wp-signup.php)
  • Set the message to show if someone tries to sign up with no valid invitation
  • Turn off security on signup form, allowing anyone to sign up (this does not affect the ability to invite people)

This plugin is based on the invitation plugin by kt (Gord) from http://www.ikazoku.com.

There are a few extra features introduced in version 0.9:

Introducer points system

Each time somebody (Person A) invites a friend (Person B), and Person B signs up, Person A is awarded 5 points. If Person B invites someone (Person C) and they sign up, Person A is awarded 2 points. And if Person C invites someone (Person D) and they sign up, Person A is awarded 1 point (and, of course, Person B is awarded 2 points). Using this pyramid-like system you can see who is inviting not just the most people, but the best kind of people.

The introducer points are stored in the users meta table with the key secure_invite_points. You can retrieve a persons points using this function: get_usermeta( [user ID], "secure_invite_points" ) substituting [user ID] for their actual user ID.

Bulk deletion of invites

As an administrator you can now select multiple invitations and delete them. This is much better than the one-at-a-time deletion method in previous versions.

Automatic BuddyPress theme integration

If your BuddyPress theme is the default theme (for BuddyPress version 1.2 or above), or a child of the default theme, or uses the same template hooks as the default theme, you can put the invitation form in the following places by just ticking the right box in your settings screen:

  • Before any list of members
  • After any list of members
  • At the top of every page
  • Before your site homepage
  • After your site homepage
  • At the top of the default sidebar
  • At the bottom of the default sidebar

The invitation form is hidden by default, and is shown by clicking an “Invite a friend” button which makes the form slide into view.

Preset settings

If you want to quickly set up invitations without messing with lots of settings, there are now four presets you can use:

  • Anyone can join with or without an invitation, and all users can invite as many people as they like
  • Signup is just for invited people, and all users can invite as many people as they like
  • Signup is just for invited people, and all users who have been registered for 30 days or more can invite as many people as they like
  • Signup is just for invited people, and all users who have been registered for 30 days or more can invite up to 10 people

Or you can use your own custom settings just as before.

Overriding of special users

Sometimes you want particular users to be able to invite more friends than the default, or perhaps you want to stop a particular user from inviting anybody at all. Now you can, by searching for the user and changing their own individual settings. You san set whether they are allowed to send invitations at all, and of so how many (either a limited number or unlimited).

Download

Latest version: Download Secure Invites for WordPress MU v1.0.6 [zip]
4293 downloads

Installation

For standard WordPress: just install the plugin as normal from the plugin repository.

For WordPress MU and WordPress MultiSite: there are two options. Either place the plugin in your /wp-content/mu-plugins/ directory (not /wp-content/plugins/), this method requires no activation. Or install the plugin as normal from the plugin repository and enable it for all sites in your network.

To enable the template form in your template page you should call the secure_invite_form() function like this:

<php? secure_invite_form(); ?>

There are three optional parameters in this function, they are:

  1. The CSS class to be applied to the form
  2. The message to be shown when the invitation has been successfully sent (by default this is ‘<p class="success">Thanks, your invitation has been sent</p>’)
  3. The message to be shown when the invitation could not be sent (by default this is ‘<p class="error">Sorry, your invitation could not be sent</p>’)

So to set the CSS class of the form to ‘inviteform’, and the success message to ‘Yay!’ and the error message to ‘Oops!’ you would use this:

<php? secure_invite_form( ‘inviteform’, ‘Yay!’, ‘Oops!’ ); ?>

In addition, you can now automatically show the invitation form in your BuddyPress theme (if it is a child of the 1.2 or greater default theme, or it has all the same template hooks). Just tick the right boxes in the admin settings screen for where you want the invitation form to appear in your theme.

FAQ

Q. Why did you write this plugin?
A. To scratch my own itch when developing Wibsite.com. Hopefully this plugin helps other developers too.

Q. Does this plugin work with BuddyPress?
A. Yes, several users have reported it works fine. You just need to change the URL of the signup form from the default (wp-signup.php) to the BuddyPress page so the plugin knows which URL to secure. In addition, you can now automatically show the invitation form in your BuddyPress theme (if it is a child of the 1.2 or greater default theme, or it has all the same template hooks). Just tick the right boxes in the admin settings screen for where you want the invitation form to appear in your theme.

An invitation form can be easily put into your template page, look at the Installation details for more information.

Changelog

0.9.9 (2010/07/11)

0.9.8 (2010/07/04)

0.9.7

0.9.6

0.9.5

0.9.4

0.9.3

0.9.2

0.9.1

0.9

0.8.5

0.8.4

0.8.3

0.8.1

0.8

0.7

0.6