1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tell a friend script

Discussion in 'General Programming Chat' started by wealthy199, Jan 31, 2008.

  1. wealthy199

    wealthy199 BANNED BANNED

    Joined:
    Sep 24, 2007
    Messages:
    585
    Likes Received:
    1,088
    Ok,

    What I'm looking for is a tell a friend type script which does all the basics but also sends out a unique link to the friends email address which when clicked displays who referred them to the site.

    For example...

    Steve tells Bob about the site through the use of the script. So Bob get's sent an email saying...
    Hey Bob, Steve here. check out this site bla bla link ~ http://mysite.com/index.php?=uniquereferid"

    When Bob clicks on the link he gets sent to a page which says "Youve been reffered by Steve".

    I hope that makes sense. Can anyone help?
     
  2. titalian

    titalian Junior Member

    Joined:
    Aug 31, 2007
    Messages:
    175
    Likes Received:
    62
    Something like this?
    hxxp://www.scriptdungeon.com/freephpscript/freescripts1254

    You may have an Ad link appear ...but you can pay to have that removed
    Other then that it's free.
     
  3. wealthy199

    wealthy199 BANNED BANNED

    Joined:
    Sep 24, 2007
    Messages:
    585
    Likes Received:
    1,088
    Thanks for your reply, but that doesn't seem to be able to post the refferer's name on the page that the friend will see, only the email.
     
  4. caretaker2007

    caretaker2007 Power Member

    Joined:
    Dec 20, 2007
    Messages:
    720
    Likes Received:
    454
    Occupation:
    To create income streams
    Location:
    In a 6 by 3 plot
    Home Page:
    Seems like you want to have the name of the referrer posted in the link, to be extracted by the page when called from that link. A two page form with a possibly long wait in between pages. As long as the referrers name is in the url you can extract it, but I'll be danged if I can remember how.

    With php you should be able to hash it....

    Too bad I can not be of more help.
     
  5. T-5102030

    T-5102030 Newbie

    Joined:
    Jan 5, 2008
    Messages:
    23
    Likes Received:
    109
    Location:
    West of The East & East of The West
    Wealthy199,

    Since many tell a friend scripts use a MySQL Database (db) back end to store the leads/contact details of all users, you might be able to simply call for the data of the referrer using a db query. I'd suggest getting a script that has as many of the features as you need, then have it tweaked via outsourcing (unless you are the king-coder).

    If the script is already parsing data for an e-mail send out from a user form, it most likely already has the needed information stored within the program's db. This is also assuming that you are using a php script, as they tend to be the easiest to extract data with, and the most reliable (as their functionality does not rely upon the browser settings of the visitor like javascript does).

    While most of these scripts store the referrers data (name, email, etc.), they do not generally associate them with their referrals. This could be an easy fix, by simply having the program assign each person an automatic id (based upon their email address). If they are a returning visitor, their original code would already be within the system. If not, assign them the next available number.

    Once you have this number in place, you'd need to code a script piece to process the queries upon page load. The email message could include the automatically assigned id, and when this hits the server, it is translated into the details and stored within a cookie. The page fills the coded vacancies using the cookie data, and the visitor sees who recommended them to the site.

    For example, the person receives an email with the link example.com/web_page.php?123456 inside.

    The id '123456' identifies their email address within the database ( as provided by their referrer). This also provides the name, email, even ip address, of their referrer. By requesting the proper data block from the db, the id '123456' (the automatically assigned user id) provides all of the details desired, without multiple "?", "=", or "&" within the URL.

    Using php, you could also easily make it so that any person arriving at the desired landing page without the string could be automatically shown a certain persons name (such as yours), or required to provide a valid code. This makes the system degrade well.

    While I'm not sure what exactly you'd need to use for your case to call up the referrers detail(s), I'd be willing to bet you 20 credits that somebody on here would be able to help you out. Once you decide which approach you are going to take, and what script or solution you have decided on as your "base file", post up a request for assistance in tweaking it (within the proper forum and thread, of course ;) ).

    NOTE: If the version of script you are using doesn't track the originator or referrer, you could most likely get this whole system added for between $30 and $50 at elance, rentacoder, guru, or some similar site (all dot com's), so long as the source code of your chosen script is not encrypted or obscured from editing and review.

    I'll look into this a bit more, and reply to you if I find better info.

    T