The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sending a signup link by email
#1
Hey guys!  I am trying to figure out how to send a signup link to someone's email and when they click on the link, it will take them to the registration page. 
After they have registered, I want to be linked by my user id to the new users.

I know this is not a programming tutorial forum.  Just need some insight as to how i could do it in userspice.
  Reply
#2
(09-24-2018, 02:55 PM)eforbes Wrote: Hey guys!  I am trying to figure out how to send a signup link to someone's email and when they click on the link, it will take them to the registration page. 
After they have registered, I want to be linked by my user id to the new users.

I know this is not a programming tutorial forum.  Just need some insight as to how i could do it in userspice.

Let me do some working on it, I'll come up with something!
  Reply
#3
Ok, so you'll need a few files....

Save this file to your root directory as patch.php and run it once and delete it.
https://pastebin.com/ASEMLvfF

Save this file as usersc/join.php (NOT users, usersc). When you visit join.php the first time you'll need to set it as not private (uncheck the private box).
https://pastebin.com/HQvYgNNH

Replace the text in usersc/scripts/during_user_creation.php with the text of this file...
https://pastebin.com/mddHkGb0

What the stuff so far will do is let you do a link to usersc/join.php?ref=12342 and have that stored in the users table as refer (the last column in the db).

So how do you want these links generated? Do you want each user to be able to send a referral link or is it just you the admin doing it?
  Reply
#4
Thanks mudmin. I will try this out and get back to you.

(09-25-2018, 12:02 AM)mudmin Wrote: Ok, so you'll need a few files....

Save this file to your root directory as patch.php and run it once and delete it.
https://pastebin.com/ASEMLvfF

Save this file as usersc/join.php (NOT users, usersc).  When you visit join.php the first time you'll need to set it as not private (uncheck the private box).
https://pastebin.com/HQvYgNNH

Replace the text in usersc/scripts/during_user_creation.php with the text of this file...
https://pastebin.com/mddHkGb0

What the stuff so far will do is let you do a link to usersc/join.php?ref=12342 and have that stored in the users table as refer (the last column in the db).

So how do you want these links generated? Do you want each user to be able to send a referral link or is it just you the admin doing it?
I want each user to send a referral link
  Reply
#5
What i want to actually do is have each authenticated user  enter the email address of a friend and send them a link to join User Spice.
  Reply
#6
(09-25-2018, 03:30 AM)eforbes Wrote: What i want to actually do is have each authenticated user  enter the email address of a friend and send them a link to join User Spice.

Ok. Let me take a look at that part.
While I'm doing that, all the emails will come from the server, so you will need to have your email settings properly configured in 
users/email_settings.php
  Reply
#7
Ok. So this goes in the root folder (next to z_us_root.php). You can call it refer.php or whatever you want.

https://pastebin.com/3r3xtG0w

Then this one has to go in users/views/_email_refer.php
https://pastebin.com/9FVQuRnf

You can edit those as much as you'd like. Just know that the first emails your system sends are going to get flagged as spam. You might want to send them to some of your friends first and have them flag them as not spam.
  Reply
#8
Thank you mudmin! I really appreciate your help.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)