CJ/eBay code in WP sidebars

Discussion in 'Commission Junction' started by t-bo, Aug 19, 2007.

  1. #1
    Hi

    I have a problem; I would like to add eBay affiliate code to a side bar in WP, but the ebay ads appear broken (layout etc) when I have added the code. Other affiliate code works fine, and I have checked the eBay code is ok and working correctly.

    Anyone else had this problem? never had this problem with any other code ive tried to add. I have also tried adding the code directly in to the sidebar.php bits and also via a widget with no luck.

    Any help would be appreciated.

    PS AuctionAds works fine too, but does not perform as I would like so need to use direct from ebay.

    Thanks in advance.

    Chris
     
    t-bo, Aug 19, 2007 IP
  2. amitpatel_3001

    amitpatel_3001 Results Follow Patience

    Messages:
    14,074
    Likes Received:
    1,178
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Ebay never tried before , but what problem do you have with CJ ads ? i guess they are just text links / banners.
    What is the URL?
     
    amitpatel_3001, Aug 19, 2007 IP
  3. t-bo

    t-bo Active Member

    Messages:
    170
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    #3
    The ads are through eBay affiliate scheme on CJ.

    The code is like this:
    <script language="JavaScript" src="http://ilapi.ebay.com/ws/eBayISAPI.dll?EKServer&ai=t%27h%3A&bdrcolor=000000&catid=1&cid=0&eksize=9&encode=ISO-8859-1&endcolor=FF0000&endtime=y&fbgcolor=FFFFFF&fntcolor=FFFF66&fs=0&gallery=y&hdrcolor=333333&hdrimage=1&hdrsrch=n&img=y&lnkcolor=FFFF00&logo=3&num=25&numbid=y&paypal=n&popup=y&prvd=1&query=CHANGED&r0=4&sacategoryin=1&shipcost=n&sid=CHANGED&siteid=3&sort=MetaEndSort&sortby=endtime&sortdir=asc&srchdesc=y&tbgcolor=333333&tlecolor=000000&tlefs=0&tlfcolor=000000&track=2228340&width=570"></script>
    Code (markup):
    I need to add code like the above to my the sidebar, but the layout of the ads etc becomes broken in WP.
     
    t-bo, Aug 19, 2007 IP
  4. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #4
    Are you hosting your own WP? If not, then I don't think you're allowed to use JS in the themes.

    Anyway... when you're getting the links from CJ - just select "Get HTML" instead of "Get JavaScript"
     
    Kerosene, Aug 19, 2007 IP