How to Insert SID # to Ebay RSS feed?

Discussion in 'Commission Junction' started by argothiusz, Mar 1, 2008.

  1. #1
    argothiusz, Mar 1, 2008 IP
  2. Nathy

    Nathy Active Member

    Messages:
    435
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    70
    #2
    As far as I know you can't.

    I used the PHP function str_replace to replace SID= with SID=blahblah

    $ebay = str_replace("SID=", "SID=sidblabla", $ebay);
     
    Nathy, Mar 1, 2008 IP
  3. argothiusz

    argothiusz Well-Known Member

    Messages:
    1,500
    Likes Received:
    79
    Best Answers:
    0
    Trophy Points:
    140
    #3
    There is no SID to begin with then how can you replace it?

    Also when the RSS display item in your page, you will see a link look something like this

    http://rover.ebay.com/rover/1/711-37018-2978-0/1?AID=104277&PID=1234567&loc=http%3A%2F%2Fcgi.ebay.com%2BOOK-OF-BOOKS_W0QQitemZ230227863415QQcmdZViewItemQQssPageNameZRSS%3AB%3ASRCH%3AUS%3A101
    PHP:
    You can clearly see your PID but can't insert in the SID :(..
     
    argothiusz, Mar 1, 2008 IP
  4. Nathy

    Nathy Active Member

    Messages:
    435
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    70
    #4
    Ah I see what you mean.

    $ebay = str_replace($mycjpid, $mycjpid."&SID=sidblabla", $ebay);

    Thats what I did, replaced my CJ PID with the PID and SID info.
     
    Nathy, Mar 1, 2008 IP
  5. argothiusz

    argothiusz Well-Known Member

    Messages:
    1,500
    Likes Received:
    79
    Best Answers:
    0
    Trophy Points:
    140
    #5
    Why doing that for? when you can just do this next to afcj&SID=HERE but I am not sure if it will work though
     
    argothiusz, Mar 1, 2008 IP
  6. argothiusz

    argothiusz Well-Known Member

    Messages:
    1,500
    Likes Received:
    79
    Best Answers:
    0
    Trophy Points:
    140
    #6
    Take a while to search but finally got it.

    You normally would think just insert &SID=TRACKINGHERE next to your AFCJ=#### right? Well you got it right but if you just insert it in normally then it wont work. You have to encode the &SID in order for it to work.

    So after AFCJ=123456 you put this %26SID%3DYOURTRACKINGIDHERE

    Here is the format

    &afcj=123456%26SID%3DDigitalPoint%20Forum&

    %20 = Space
    %3D = "="
    %26 = "&"


    Enjoy. I ended up solving this myself. LOL

    Here is where I get the Hex Code Reference for each HTML letter

    http://www.obkb.com/dcljr/charstxt.html
     
    argothiusz, Mar 1, 2008 IP
  7. mitbeaver

    mitbeaver Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Not sure where you are seeing that tag, I didn't see it in your last example? Did you mean the pid? Or did you just add this tag to your url
     
    mitbeaver, Mar 18, 2008 IP
  8. argothiusz

    argothiusz Well-Known Member

    Messages:
    1,500
    Likes Received:
    79
    Best Answers:
    0
    Trophy Points:
    140
    #8
    It;s already in the ULR and next to it is your PID # :)
     
    argothiusz, Mar 18, 2008 IP