-
- 109 Posts
Hello Modxers
I want to create a user referal system in which I want that a user1 can have a referral link by which others can join (register) the site and when a user register, user1 get points for referring friends.
Is this possible in Modx ? If yes then How ?
Thanks
-
- 2,877 Posts
Nothing out of the box I know of. However this is how I would code it I think:
1. Generate the code for user based on the date and time of when user was created. It would be unique.
2. In MODX Login » Register snippet populate a field if this code is provided in the URL
3. Generate points to a user how many times his code is found by a count() query.
Just some thoughts!
-
- 1,154 Posts
That makes sense, a public signup page right, and the url needs to resolve with the code in it, (this part seems slightly tricky to me), then a prehook snippet in Register to grab the url value is easy enough it would seem.
-
- 24,544 Posts
Note that users who signed up before the MODX upgrade that added the modUser createdon field may all have the same value for that field.
The Register snippet already creates a unique string for the user to log in with (and the Subscribe extra produces one that's more secure, imo). You could probably use one of those. Subscribe saves user preferences so you might be able to store that string in with them using a Register postHook.
-
- 109 Posts
Is this possible in Modx forum Extra ?
I want like when a user post, create new thread and refer other to join the forum get points based on action.
I want new audiences. And for that I want users to get rewards for being active on forum. Specially referring others.
So a point system is good. I want to earn with advts and I also want to pay users real money based on their high rank or points. So I want to build this system Specially with MODX. <3
-
- 1,154 Posts
Right now there is an old extra, Discuss, which works well enough but isn't supported anymore. Also functions like you want would mostly have to be made from scratch, for instance I made simple user levels by checking the user's post count and assigning a level and an icon to them based on that. Discuss doesn't have basically any of that natively.
Discuss is actually fairly stable and runs pretty well, its just hard to think of using it today and...where will you be in a year or two.
There were plans for a new forum, called Discuss2 and work was started, but Modx LLC got busy and so they released it in alpha version on Github and no one has picked it up. I'm not even sure how to stage it to see how far along it is.
Its a shame because whoever picks it up can open a new modx forum and fully commercialize it, and that would help a crazy amount with google, I mean identifying updated info, which has been a problem for a long time. I am more likely in a google search to get a 5 year old post than a post from January 2018