The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Sending a signup link by email - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: Sending a signup link by email (/showthread.php?tid=1151) |
Sending a signup link by email - eforbes - 09-24-2018 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. RE: Sending a signup link by email - mudmin - 09-24-2018 (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. Let me do some working on it, I'll come up with something! RE: Sending a signup link by email - mudmin - 09-25-2018 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? RE: Sending a signup link by email - eforbes - 09-25-2018 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....I want each user to send a referral link RE: Sending a signup link by email - eforbes - 09-25-2018 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. RE: Sending a signup link by email - mudmin - 09-25-2018 (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 RE: Sending a signup link by email - mudmin - 09-25-2018 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. RE: Sending a signup link by email - eforbes - 09-25-2018 Thank you mudmin! I really appreciate your help. |