efxtr Posted March 11, 2012 Share Posted March 11, 2012 Hi everyone, I've a basic issue to solve. I want to give my customers links so that they can send this link forums etc. In return, I'll give them shop points. Current referral module is working by sending e mails to friends containing a link like: .....authentication.php?create_account=1&sponsor=Mmp4a0d...... What I want to do is, 1. adding a page (ie with CMS) which contains specific link for the user like: ...authentication.php?create_account=1&referrer_id=115 (ie 155 is the user id) 2. when someone else registers with using that link, update the table that I created to keep user id and sponsored id I can manage the first part, I can also manage updating database but I have no clue about where to put the code regarding the second part. I should check if there is a parameter (I mean referrer_id) and if so, update my referral table after successful registration. I'm sure that it's very basic issue for those seasoned PHP coders, so thanks in advance for your replies. Link to comment Share on other sites More sharing options...
efxtr Posted March 12, 2012 Author Share Posted March 12, 2012 I figured out how to do this, it's not that easy though, I modified referencemodule files and hooks. Link to comment Share on other sites More sharing options...
Pepozzo Posted March 27, 2012 Share Posted March 27, 2012 Hello, i've to show a link in a CMS page when a registrated user is logged in. My link should looks like: mypage.php?id=YOUR_USER_ID Did you find a solution? Thx Link to comment Share on other sites More sharing options...
Natrajn Posted August 21, 2015 Share Posted August 21, 2015 i need the same as exftr mentioned in the above post. plz share if you have the solution. Link to comment Share on other sites More sharing options...
Recommended Posts