Generate a Custom Gallery

Insert a list of your running auctions, with photos, into your auction descriptions.

One of the ways to advertise your other auctions in any given auction description is to use a gallery — a scrolling viewport with thumbnail photos of all your running auctions — as described in [Hack #47]. Aside from the commercial versions, there’s a way to create a custom gallery using the eBay API.

First, include this code in your description:

<iframe src="http://www.ebayhacks.com/cgi-bin/gallery.pl" 
                             style="width:100%;margin:0;border:0;">

The URL referenced in this iframe (see [Hack #51]) should point to your own server and cgi-bin directory. See the Using CGI Scripts sidebar if you’re not sure how to do this.

Get eBay Hacks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.