PHP code for referral urls

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ER!C L!VE
    Confirmed User
    • Feb 2005
    • 724

    #1

    PHP code for referral urls

    I'm putting together some galleries and need to get some PHP code help. I want to be able to place an affiliate code in a gallery url so that the link will give the affiliate credit for any sales.

    eg: http://gallery.sexsex.com/?1074882

    Thanks in advance!

    Eric
    www.BackroomCastingCouch.com
    www.ExploitedCollegeGirls.com
    www.FCUKCash.com
  • Lycanthrope
    Confirmed User
    • Jan 2004
    • 4517

    #2
    The easiest way - pages must be php or able to be parsed as such.

    Places this at the top of your gallery pages:

    Code:
    <?php
    $wmid = $_SERVER["QUERY_STRING"];
    ?>
    Then for your banner / text linking codes:

    Code:
    http://www.domain.com/galleries/gallery1.php?<?=$wmid?>
    Have webmasters link to the galleries as such:

    Code:
    http://www.domain.com/galleries/gallery1.php?their-wmid

    Comment

    • ER!C L!VE
      Confirmed User
      • Feb 2005
      • 724

      #3
      Hey bro, thanks for the help! However, the HTML does not show the CCBILL link - it just changes it to my site URL and completely erases the CCBILL code.

      http://gallery/girl/?1074882

      main index is /index.php

      I placed
      Code:
      <?php
      $wmid = $_SERVER["QUERY_STRING"];
      ?>
      at the top of the very top of the html page.

      I made the link codes like this:

      Code:
      href="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=929329-0002&PA=<?=$wmid?>"

      Am I doing something wrong, or is it my hosting not being compatible with the code?

      Thanks again!
      www.BackroomCastingCouch.com
      www.ExploitedCollegeGirls.com
      www.FCUKCash.com

      Comment

      • Lycanthrope
        Confirmed User
        • Jan 2004
        • 4517

        #4
        Originally posted by ER!C L!VE
        Hey bro, thanks for the help! However, the HTML does not show the CCBILL link - it just changes it to my site URL and completely erases the CCBILL code.

        http://gallery/girl/?1074882

        main index is /index.php

        I placed
        Code:
        <?php
        $wmid = $_SERVER["QUERY_STRING"];
        ?>
        at the top of the very top of the html page.

        I made the link codes like this:

        Code:
        href="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=929329-0002&PA=<?=$wmid?>"

        Am I doing something wrong, or is it my hosting not being compatible with the code?

        Thanks again!
        Hit me up on ICQ if you have it

        Comment

        • ER!C L!VE
          Confirmed User
          • Feb 2005
          • 724

          #5
          I just tried to download ICQ and it gives me an error. I'll keep trying. Thanks for all your help!

          Eric
          www.BackroomCastingCouch.com
          www.ExploitedCollegeGirls.com
          www.FCUKCash.com

          Comment

          • weblord
            Registered User
            • Jul 2006
            • 39

            #6
            sorry i still need to complete my 30 posts before i can post urls hehehe
            just pm me if you want the free code
            Isulong SeoPH
            Shorten ur NoyPi.org urls free Nabaza.com | Nabaza.net | Nabaza.org | Nabaza.info | Weblord's Blogs |
            ADD ME to Google | Browse Single's Photos/Profiles

            Comment

            • martinsc
              Too lazy to set a custom title
              • Jun 2005
              • 27047

              #7
              Originally posted by weblord
              sorry i still need to complete my 30 posts before i can post urls hehehe
              just pm me if you want the free code
              lol...
              when will people notice that gfy has no PMs?
              Make Money

              Comment

              • ER!C L!VE
                Confirmed User
                • Feb 2005
                • 724

                #8
                Originally posted by weblord
                sorry i still need to complete my 30 posts before i can post urls hehehe
                just pm me if you want the free code
                Hey bro, I just tried your links, but they didn't work. I'd love to chat with you about this. I'm at [email protected]

                Thanks!

                Eric
                www.BackroomCastingCouch.com
                www.ExploitedCollegeGirls.com
                www.FCUKCash.com

                Comment

                • calmlikeabomb
                  Confirmed User
                  • May 2004
                  • 1323

                  #9
                  So you have pages you want webmasters to use and recieve credit for any sales that occur there? That's easy.

                  In the php file everywhere that the affiliate ID is needed place this code:

                  PHP Code:
                  <? print $_GET['id']; ?>
                  Then all a webmaster needs to do to use your gallery on there own website is create a php page and grab your gallery file like this:

                  PHP Code:
                  <? print file_get_contents('http://youdomain.com/gallery.php?id=xxxxx');
                  Or they can frame the gallery, etc...
                  subarus.

                  Comment

                  • Kimo
                    ...
                    • Jan 2006
                    • 11542

                    #10
                    did you get it working man?
                    ...

                    Comment

                    Working...