# Permanent referral link for user invitations

**URL:** https://meta.discourse.org/t/permanent-referral-link-for-user-invitations/106682
**Category:** Feature
**Created:** [1월 16, 2019, 11:10오전 UTC](https://meta.discourse.org/t/permanent-referral-link-for-user-invitations/106682 "2019-01-16T11:10:19Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [1월 16, 2019, 11:10오전 UTC](https://meta.discourse.org/t/permanent-referral-link-for-user-invitations/106682/1 "2019-01-16T11:10:19Z")

</div>

Currently developing a referral plugin that pays for sign-ups. We’ve noticed that there is no option for members to generate a permanent referral (signup) link. The only way is to do it individually via adding an email. I was thinking, why have such a cumbersome invite process? Why not provide an (example) `example.org/ref?=93181` link which a member can share across the web over and over again? Not having the ability to do so, restricts the possibilities of having blogs/sites write about your site/service/forum, providing that the webmaster of the discourse instance is providing incentives for signups (tons of sites do this).

Is there a chance of permanent invite links? Or am I missing something obvious and the feature is implemented already?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [1월 16, 2019, 10:59오후 UTC](https://meta.discourse.org/t/permanent-referral-link-for-user-invitations/106682/2 "2019-01-16T22:59:02Z")

</div>

Looking for this?

> [@Generating lots of Invite Tokens](https://meta.discourse.org/t/generating-lots-of-invite-tokens/17563):
>
> warning This plugin is deprecated in favour of our core invite system. Summary: Generate multiple invite tokens link GitHub: [https://github.com/discourse/discourse-invite-tokens](https://github.com/discourse/discourse-invite-tokens)arrow_right Install: Follow the [plugin installation guide](https://meta.discourse.org/t/install-a-plugin/19157). Configuration Enable plugin After installing plugin enable site setting invite tokens enabled. Clone Discourse API Gem If you already have Git and Ruby installed on your system, you can install Discourse API by running following command from consol…

---

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [1월 17, 2019, 7:09오전 UTC](https://meta.discourse.org/t/permanent-referral-link-for-user-invitations/106682/3 "2019-01-17T07:09:14Z")

</div>

If I am understanding this correctly, the plugin still requires an individual URL to be created for each invite, which isn’t what I meant.

> Prepare Invitation Links from Invite Token
> 
> The Invitation URL will be like:
> 
> ```plaintext
> http://discourse.example.com/invite-token/redeem/TOKEN?username=USERNAME&email=EMAIL&name=NAME&topic=TOPICID
> 
> ```
> 
> Replace following fields:
> 
> - 
> - `discourse.example.com` with the URL of your Discourse instance.
> 
> - 
> - `TOKEN` with one of the 200 Invite tokens you just generated.
> 
> - 
> - **`EMAIL` with the email of user you want to invite**
> 
> - `USERNAME` with the desired username of invited user
> - `NAME` with the first name of invited user
> - `TOPIC` with the id of the topic to direct the user to after joining
> 
> (\*) these fields are required!

My idea was to have a set unique URL for each member that he can share to invite. The URL doesn’t change, doesn’t have a limited amount of tokens, and doesn’t require editing for each invite. Having such an URL gives discourse site owners a tool to promote their sites better (if they’re offering incentives for signups).

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [1월 17, 2019, 8:53오전 UTC](https://meta.discourse.org/t/permanent-referral-link-for-user-invitations/106682/4 "2019-01-17T08:53:07Z")

</div>

Would simply using a link like this work for you?

`yourforum.com/signup`

---

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [1월 17, 2019, 9:21오전 UTC](https://meta.discourse.org/t/permanent-referral-link-for-user-invitations/106682/5 "2019-01-17T09:21:30Z")

</div>

Does that track who referred the person who signed up to the site?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [1월 17, 2019, 10:14오전 UTC](https://meta.discourse.org/t/permanent-referral-link-for-user-invitations/106682/6 "2019-01-17T10:14:02Z")

</div>

To be clear that I understand you, you’re looking for something like

`https://meta.discourse.org/signup?u=mittineague`

so that my account would be associated with any that used that link to join?

Currently, because I have established some trust here, it can be inferred that I can be trusted to invite those that I feel can be trusted enough to not need to go through the initial New member limitations and they can start off with Trust Level 1 abilities. i.e. I’m vouching for them.

A “generic” invite link would open the possibility that _anyone_ could use the link, regardless of whether or not they should indeed be trusted.

How might you propose that risk be prevented?

---

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [1월 17, 2019, 10:34오전 UTC](https://meta.discourse.org/t/permanent-referral-link-for-user-invitations/106682/7 "2019-01-17T10:34:11Z")

</div>

> To be clear that I understand you, you’re looking for something like
> 
> `https://meta.discourse.org/signup?u=mittineague`
> 
> so that my account would be associated with any that used that link to join?

Yes, that would be it.

> [@Mittineague](#):
>
> A “generic” invite link would open the possibility that _anyone_ could use the link, regardless of whether or not they should indeed be trusted.

Why not have both? Don’t you think it would be great to give sites incentives to promote your forum? A generic link would allow webmasters to place links in their articles, so you can track and reward signups accordingly. At least, that’s my plan. I was hoping that this generic link would be available, but it looks like I have to hire someone to get it done.

> How might you propose that risk be prevented?

Not all forums are set up in the same way. My instance has a phone verification system for all new signups (can’t join until you confirm your phone number via TXT pin and email), which cuts down on 90% of problems associated with spam and whatnot. So to me, that risk is irrelevant. But I do see your point of view and see how it may be a problem for some. I guess people invited with the generic link start at TL0 while custom invites start off higher? That would be a solution, no?

Thanks for replying.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [1월 17, 2019, 9:29오후 UTC](https://meta.discourse.org/t/permanent-referral-link-for-user-invitations/106682/8 "2019-01-17T21:29:26Z")

</div>

> [@WorldIsMine](#):
>
> I guess people invited with the generic link start at TL0 while custom invites start off higher?

Yes, I think that could work. Unfortunately at the moment it would require a plugin which as of yet does not exist.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [1월 18, 2019, 12:56오전 UTC](https://meta.discourse.org/t/permanent-referral-link-for-user-invitations/106682/9 "2019-01-18T00:56:17Z")

</div>

What you really want here is more of a traditional referral link system than what we call invite here in Discourse. I suggest renaming it so you don’t clash with the existing feature.

A plugin that saves a cookie from anons that visits a URL (`forum.example.com/?referral=falco`), and that checks for the cookie value on user creation and gives a point for the referral value is certainly doable.

---

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [1월 18, 2019, 9:34오전 UTC](https://meta.discourse.org/t/permanent-referral-link-for-user-invitations/106682/10 "2019-01-18T09:34:57Z")

</div>

> [@Falco](#):
>
> A plugin that saves a cookie from anons that visits a URL ( `forum.example.com/?referral=falco` ), and that checks for the cookie value on user creation and gives a point for the referral value is certainly doable.

Good to hear! Will forward this to my dev then 🙂
