Guest Posted March 26, 2004 Share Posted March 26, 2004 One of my clients wants to display a banner on her site that links to the items she's selling on ebay. Ebay provided her with a snip of code and everything works properly on unsecure pages. The problem occurs when a user goes to a secure page. An error is displayed informing the visitor the page contains both secure and unsecure items. If the vistior chooses to display both the page is not secure. I'm looking for a way to either display banners only on unsecure pages or edit the following snip of code to correct this issue. <a href="http://cgi6.ebay.com/ws/ebayISAPI.dll?ViewListedItemsLinkButtons&userid=userid"><img src="http://pics.ebay.com/aw/pics/ebay_my_button.gif" alt="My items on eBay"></a> Any help will be appreciated. TIA, Greggory Link to comment Share on other sites More sharing options...
dburchm1 Posted March 26, 2004 Share Posted March 26, 2004 Maybe you could save the ebay_my_button.gif down to your server then change the code to: <a href="http://cgi6.ebay.com/ws/ebayISAPI.dll?ViewListedItemsLinkButtons&userid=userid"><img src="https://mydomain.com/images/ebay_my_button.gif" alt="My items on eBay"></a> Link to comment Share on other sites More sharing options...
Guest Posted March 26, 2004 Share Posted March 26, 2004 I have considered that option, but ebay requests users not do that in the event they decide to update their button. Link to comment Share on other sites More sharing options...
dburchm1 Posted March 26, 2004 Share Posted March 26, 2004 Well, the button "http://pics.ebay.com/aw/pics/ebay_my_button.gif" is comming from an insecure server so you will get the message on your secure pages. How about not using the button and just make it a text link like. <a href="http://cgi6.ebay.com/ws/ebayISAPI.dll?ViewListedItemsLinkButtons&userid=userid">My items on eBay</a> Link to comment Share on other sites More sharing options...
dburchm1 Posted March 26, 2004 Share Posted March 26, 2004 oops, hit the button twice I guess what you want to do is say that if it is not a secure server show the button and if it is don't. Link to comment Share on other sites More sharing options...
dburchm1 Posted March 26, 2004 Share Posted March 26, 2004 maybe on the includes/footer.php put <?php? if( $_SERVER['SERVER_NAME'] == HTTP_SERVER){ ? echo "<br><a href=\"http://cgi6.ebay.com/ws/ebayISAPI.dll?ViewListedItemsLinkButtons&userid=userid\"><img src=\"http://pics.ebay.com/aw/pics/ebay_my_button.gif\" alt=\"My items on eBay\"></a>"; ? } ?> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.