Anyone Know How to Do This? (PHP)

Discussion in 'ClickBank' started by emon878, Oct 14, 2008.

  1. #1
    Alright I need some help becuase I do not know any PHP but I'm pretty
    sure this would be simple for anyone who does.

    So here what I want to do:

    I have 1 review page with multiple links going to 3 different clickbank products.
    The problem I have is that I have many articles going to that one page so
    instead of making a new page for every article just to change up the TIDs I
    what to put a PHP code so it will change the tids of all the links depending on
    what is in the address bar.

    So if the address bar says http:reviewpage.com/?tid=123. I want all the
    tids on the links to be 123. I think you can do this with variables or what
    ever they are called but I do not know how.

    Any help is greatly appreciated.

    Thanks

    -Emon878
     
    emon878, Oct 14, 2008 IP
  2. Ripped

    Ripped Well-Known Member

    Messages:
    2,151
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #2
    This is how you do it:

    This goes at the top of the file:

    <?php
    
    $seedvar=$_GET['id'];
    
    ?>
    PHP:
    After that, in the landing page HTML code, when you're gonna place hyperlinks use the following code:

    <a href="http://clickbankid.cbproduct.hop.clickbank.net/?tid=<?php echo $seedvar;?>">Product Name </a>


    In order to track your landing, you're gonna add ?id=landingpageid after the link to your landing page. You're gonna put a different number for every different landing page
    For Example:

    Landing Page 1
    http://www.yourpage.com/index.php?id=1
    When you do this, 1 should appear as the tracking number.

    Landing Page 2
    http://www.yourpage.com/index.php?id=2

    Landing Page 3
    http://www.yourpage.com/index.php?id=3

    etc.

    Save and Close the file, upload it to your server, and test it
     
    Ripped, Oct 14, 2008 IP
  3. emon878

    emon878 Active Member

    Messages:
    551
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Wow thanks ripped for the quick reply works perfectly does exactly what I want.
    This is a gonna save me a lot of time. And help me get more articles out faster.

    Thanks a lot
     
    emon878, Oct 14, 2008 IP
  4. Skribblez

    Skribblez Notable Member

    Messages:
    5,939
    Likes Received:
    208
    Best Answers:
    0
    Trophy Points:
    280
    #4
    Wow, thanks a bunch Ripped!

    This should help alot.
     
    Skribblez, Oct 14, 2008 IP
  5. Swerd

    Swerd Active Member

    Messages:
    1,657
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    90
    #5
    + rep. Nice one!
     
    Swerd, Oct 14, 2008 IP
  6. Skribblez

    Skribblez Notable Member

    Messages:
    5,939
    Likes Received:
    208
    Best Answers:
    0
    Trophy Points:
    280
    #6
    I guess you could also add this to the <a href> code to, in a way, hide the hoplink:

    
    ONMOUSEOVER="window.status='Visit site';  return true;" ONMOUSEOUT="window.status='';
    Code (markup):
    Unless there's a way we could use PHP to also cloak each of the links appropriately, but that might be a little complicated..
     
    Skribblez, Oct 14, 2008 IP
  7. mill123

    mill123 Active Member

    Messages:
    631
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #7
    can always count on ripped to answer these hah!
     
    mill123, Oct 14, 2008 IP
  8. Ripped

    Ripped Well-Known Member

    Messages:
    2,151
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #8
    glad I could help, I have answered this question before, but it is burried somewhere in the Clickbank Section
     
    Ripped, Oct 14, 2008 IP
  9. wwwywzqleewww

    wwwywzqleewww Guest

    Messages:
    56
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    wow it is really nice!:D
     
    wwwywzqleewww, Oct 14, 2008 IP
  10. Skribblez

    Skribblez Notable Member

    Messages:
    5,939
    Likes Received:
    208
    Best Answers:
    0
    Trophy Points:
    280
    #10
    Does anyone know what's wrong with my code?

    
    <?php
    $seedvar=$_GET['id'];
     header("Location: http://nramos.producthere.hop.clickbank.net/?tid=UTI<?php echo $seedvar;?>");
    ?>
    Code (markup):
    That's my index.php file. It's just basically a redirect. It works, but when I go to the products payment page, it shows my affiliate ID, but not the TID. :(
     
    Skribblez, Oct 14, 2008 IP
  11. nikvn

    nikvn Active Member

    Messages:
    267
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #11
    Thanks for the new information.
     
    nikvn, Oct 14, 2008 IP
  12. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #12
    @Scribblez -

    
    <?php
    $seedvar=$_GET['id'];
    $link = "http://nramos.producthere.hop.clickbank.net/?tid=UTI".$seedvar;
     header("Location: $link");
    ?>
    
    PHP:

    For the rest of you, there is a decent php tracking script that Niche Chopper members, including myself compiled over at the NC forum :)
     
    mikey1090, Oct 15, 2008 IP
  13. Mensik

    Mensik Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Hi there, very interesting !
    I don't see how this code is working though. It hides the affiliate's name in the link ?
     
    Mensik, Oct 17, 2008 IP
  14. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #14
    No. When you hover over the link it stops it from being displayed in the status bar - so the user can't see an affiliate link.

    @Scribblez - did you check my post??
     
    mikey1090, Oct 17, 2008 IP
  15. Mensik

    Mensik Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Thanks a lot Mikey !
    I'll try it soon !

    Mensik
     
    Mensik, Oct 17, 2008 IP