Results 1 to 3 of 3

Thread: Link Referal Script

  1. #1
    Join Date
    May 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Link Referal Script

    I need a script that whenever there is a link it my site and a user clicks on it it goes to a page and then redirects them to the page for the link they clicked, I need an option to enable this on links from my page to another of my pages or from my page to other site. If I'm not being clear this is the functionality that I need:

    2channel uses a referral system for any links to external websites posted on the forum. People clicking on a link are first sent to a page filled with advertisements on the ime.nu domain where a link to the actual site is placed. Apart from collecting revenue from the 2channel visitors it also attracts website owners of the linked pages who check their statistics and can't link it back to 2channel.

  2. #2
    Join Date
    May 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Lots of views and no posts. If you even get what I want could someone try to point me in the right direction?

  3. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    You shouldn't really pay attention to the views. Dynamic Drive is a heavy target of indexing bots. So, most of those views are probably due to that.

    Anyway, the simplest way to do what you need would be to use some simple PHP. Link to your pages using a URL variable. For example:
    Code:
    <a href="referral.php?link=http://www.google.com" title="Google">Google</a>
    Then on the landing page (referral.php in my example), read the URL variable and do with it whatever you want.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •