The invite system lets registered users invite friends to join your site. When an invited person registers, both the inviter and (optionally) the new user can be awarded points. This creates a referral loop that encourages users to grow your community.
up_newregistered rule (or whichever rule is configured for referral registrations).Every user has a unique referral ID used to attribute registrations. The format is set in Configuration → Profile → Referral ID Type:
a3f7k2). Recommended when you do not want to expose usernames in URLs.You can optionally add a text prefix to referral IDs for self-registered and referral-registered users via the Prefix settings in Configuration.
Templates control the subject and body of invitation emails. Go to Components → UserPoints → Invitation Templates to manage them.
Click New and fill in:
| Field | Description |
|---|---|
| Name | Internal label shown to users in the template selector. |
| Subject | The email subject line. |
| Body | The email body. Supports HTML. Use the placeholders below to personalise the message. |
| Format | Plain text or HTML. |
| BCC Admin | Send a copy of every invitation email to the site administrator. |
| Published | Whether users can select this template. |
The following placeholders can be placed anywhere in the Body:
| Placeholder | Replaced with |
|---|---|
{name} |
The invitee's name (if known) or their email address. |
{custom} |
A custom message entered by the user when sending the invite (if the invite form includes a custom message field). |
{link} |
The personalised registration link containing the inviter's referral ID. Include this placeholder to position the link within your body text; if omitted the link is not included in the email. |
Create at least one published template before expecting the invite tab to work.
If you have multiple published templates (for example, a formal and an informal variant), users will see a dropdown to select one when sending an invite. If only one template is published, it is used automatically.
To prevent abuse, the invite tab enforces:
If a user exceeds their daily limit or submits too quickly, the invite form returns an error and no email is sent.
Points for successful referrals are configured through the rules system. The relevant rules are:
| Rule | When it fires |
|---|---|
up_newregistered |
When a new user registers via a referral link. Awards points to the referrer. |
Additionally, any rule can grant a referral bonus to the referring user via the Allow Referral and Percentage fields (see Points Rules). For example, if the login rule has a 10% referral bonus, the user's referrer earns 10% of the login points every time the referred user logs in.
The admin Users list shows each user's referral ID and the referral ID of the person who referred them (if any). This lets you trace the referral chain.
Every invitation-related point award appears in the Activities log with the up_newregistered rule. Filter by this rule to see all referral registrations.
The frontend Users view (if Allow User Lists is enabled in Configuration) can show a leaderboard of the most active referrers, powered by the mod_userpoints_mostreferralusers module.