News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Simple Referrals

Started by Diego Andrés, September 28, 2021, 01:14:54 AM

Previous topic - Next topic

Diego Andrés

Link to the mod




Simple Referrals
Developed by Diego Andrés



Introduction
Simple Referrals implements a referrals system to your forum.

Features
  • Set a referral using autosuggest in the registration form
  • Use a referral url with the referral id for easy share
  • Display referral count in profile
  • Display referral count in posts
  • Display referral link in their profile
  • Enable/disable the selection of searching users in the registration form
  • Maintenance task for recounting the referral count of each user in the forum
  • Top referrers statistics

Localization
English
Russian by Bugo
Portuguese (PT) by Dr Web


Changelog
GitHub

SMF Tricks - Free & Premium Responsive Themes for SMF.

Bugo

Thanks for this useful mod.

Russian translation is attached.

Diego Andrés

#2
Quote from: Bugo on October 02, 2021, 03:25:52 AMThanks for this useful mod.

Russian translation is attached.

Thanks!

1.3 - 03 October 2021
Added a hook for other mods to integrate. Removed in v1.4, just use the same hook as this mod.

1.2 - 02 October 2021
Referral is now stored in session in case the user does not register right away. (Only from direct link)
Russian translation provided by Bugo.

Thanks to @vbgamer45 for the session idea

SMF Tricks - Free & Premium Responsive Themes for SMF.

landyvlad

So to clarify - is there a link in the user profile which sends an invite to a nominated email?

"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Diego Andrés

No, it's just a link to the signup page with the user's id, or can allow guests to search for names

SMF Tricks - Free & Premium Responsive Themes for SMF.

landyvlad

"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Diego Andrés

I'll think about it, really not sure it fits the mod.
I have the feeling you're after some sort of invitations system instead ;D

SMF Tricks - Free & Premium Responsive Themes for SMF.

landyvlad

Could be. 

I haven't got a 2.1 TEST forum I can install this on at the moment to check its functionality so Ip;mnot really sure what the PURPOSE behind your mod is if it doesn't do invites.

For forum owners one of the big challenges (as you know) is getting members on board.
It would be great to have a mod where people could send an invite to their friends, and ideally a means of tracking how many legit people they sign up to the forum.  (I suppose it might need some form of anti-spam protection I'm not sure)

The idea being to get the word out and get people to sign up to the forum.
And it needs to be something that anyone can easily use.

Is this the sort of thing you would consider expanding this mod to do or should I put it in the mod requests area?
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

shadav

can't find the mod I currently use for 2.0.18 but from the pics of this mod it's basically the same thing
in the user's profile they will find
Referral Link: with a specific link with their user id in it
they copy this link then send it to whomever they want or post it wherever they want for people to register on the forum
when someone clicks on that link and register, it puts who referred them (as it uses their member id in the link) and/or when a member registers they can put the user's name in a field as referred by
in the user profile and on the display.template.php it will show
Referrals: and the number of how many people registered either using their referral link or putting their user name in when registering.
It's not an invite system per say it just keeps track of who and how many people a specific user referred to the forum (that is if the person registering used their link or put their name in the box at registration)

a top referrer page might be nice to entice users to use it more

Diego Andrés

1.3.1 - 05 October 2021
Fixed redirect tag on install
Removed extra spaces



Quote from: shadav on October 05, 2021, 03:25:33 AMa top referrer page might be nice to entice users to use it more

That's a nice idea, I'll definitely add something like that in the future.

SMF Tricks - Free & Premium Responsive Themes for SMF.

landyvlad

"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Diego Andrés

#11
1.4 - 13 October 2021
Added option to send alerts regarding an user using referral link.
Added option to enable top referrals in the forum stats.
Fixed referral field appearing when id is invalid and the guest can't search for other members.

* I won't add/set defaults for the alert :P Maybe I will in the future

SMF Tricks - Free & Premium Responsive Themes for SMF.

Dr Web

#12
Thanks for this great Mod.

I translated to portuguese_pt

File attached. Please let me know if I translated parts that shouldn't be translated.

Could you please make it available for SMF 2.0.18? I and I am sure many other members would love to use it.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Diego Andrés

1.4.1 - 16 October 2021
Portuguese (PT) translation provided by Dr Web.




Quote from: Dr Web on October 15, 2021, 05:56:39 PMCould you please make it available for SMF 2.0.18? I and I am sure many other members would love to use it.

I will not port it back, there's a referrals mod available for SMF 2.0.x and additionally some hooks aren't available

SMF Tricks - Free & Premium Responsive Themes for SMF.

Dr Web

Quote from: Diego Andrés on October 16, 2021, 09:46:26 AMI will not port it back, there's a referrals mod available for SMF 2.0.x and additionally some hooks aren't available

No problem. I understand. I didn't know there was already another referrals Mod. Thanks. 
 
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Shades.

Thanks for this mod Diego! 8)

I can't seem to find the "top referrers" in the forum stats. I have the "Display top referrers in the forum stats" checked in admin... ???

2.1RC4
v1.4.1
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Diego Andrés

Do you have referrals already? If no one has any I assume it's not going to show up if I remember correctly.
Otherwise let me know and I can look into it

SMF Tricks - Free & Premium Responsive Themes for SMF.

Shades.

Yeah I registered a test member and it shows up as "1" referral in my profile summary and on the post just don't see it anywhere on the stats page.
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Diego Andrés

I can't reproduce it sadly
I tried with only 1 user having 1 and still shows up.
Did you get any other issues? You could try running the maintenance task the mod added, if anything it could help.

You cannot view this attachment.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Shades.

Bummers! I just now saw that in maintenance but clicked it and cleared cache too no good. No errors in admin either so I guess I will try it on a fresh install and figure out which mod might be interfering with it. I dunno lol! :o

I have it installed on several websites but just recently noticed it wasn't showing on the stats. They all have pretty much the same mods installed so I just gotta figure out which one it is.
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Advertisement: