Mine isn't either. I'm playing with it and if I can get it figured out I'll update everyone.
Mine isn't either. I'm playing with it and if I can get it figured out I'll update everyone.
The parser was written specifically for the eBid RSS feed by TOZCentral (eBid user Gothicina's son) using a combination of JavaScript and PHP. I don't know if he still supports it as it is no longer on his site. Mine is a fudged version of his original as I couldn't run the PHP, so he kindly allowed me to run it using his resources. I don't have the original package, or permission to distribute it if I had, so if you are interested then best approach him via Gothicina.
ok thanks for the info I appreciate your time!
ok, for the coders here this is how i grab the data from the ebid feed, to keep the code simple the example does not include any extras like caching, number limits ,filters etc
Have a go at putting your own ebid user name in the url above and it will display your items.
Because you have access to the individual elements in the feed you can display them in any way you wish
Here is the basic code for DOM access
PHP Code:
<?php
//grab users name and country from url
$UserName = @$_GET["user"];
$Country = @$_GET["country"];
//just some simple checks
if (empty($UserName)){
$UserName = "eBid_UK"; //default to ebid auctions
}
if (empty($Country)){
$Country = "uk"; //default to uk
}
$doc = new DOMDocument('2.0','utf-8');
$doc->load( 'http://'.$Country.'.ebid.net/perl/rss.cgi?type1=a&type2=a&words='.$UserName.'&mo=search&type=user' );
$ebiditems = $doc->getElementsByTagName( "item" );
// Loop through the feed data and pick out the data you want by its name
// full list of info you can grab is as follows
//title,link,image,imagesmall,id,remaining,price,buynowprice,shipping,quantity,bids,description
foreach( $ebiditems as $ebiditem)
{
$item1 = $ebiditem->getElementsByTagName( "imagesmall" );
$imageurl = $item1->item(0)->nodeValue;
if($imageurl == "")
$imageurl = 'http://ebid.s3.amazonaws.com/upload_small/8/4/8/1327452459-15408-16.jpg'; // image to display if no image exists
$item2 = $ebiditem->getElementsByTagName( "link" );
$linkurl1= $item2->item(0)->nodeValue;
$linkurl = htmlspecialchars($linkurl1);
$item3 = $ebiditem->getElementsByTagName( "title" );
$title1 = $item3->item(0)->nodeValue;
$title = htmlspecialchars($title1);
$item4= $ebiditem->getElementsByTagName( "price" );
$bidprice= $item4->item(0)->nodeValue;
$item5= $ebiditem->getElementsByTagName( "buynowprice" );
$buynowprice= $item5->item(0)->nodeValue;
$item6= $ebiditem->getElementsByTagName( "shipping" );
$shipprice= $item6->item(0)->nodeValue;
$item7= $ebiditem->getElementsByTagName( "bids" );
$numbids= $item7->item(0)->nodeValue;
// here you can customise the html output to anything you like
echo $info[$num] = "<a href=\"$linkurl\" rel=\"nofollow\" target=\"_blank\"><img src=\"$imageurl\" alt=\"$title\" title=\"\r\n $title \r\n\r\n Bid Price: $bidprice \r\n BuyNow: $buynowprice \r\n Shipping: $shipprice \r\n Bids: $numbids \r\n \" width=\"122\" height=\"122\" hspace=\"3\" vspace=\"5\" border=\"0\" ></a>\r\n";
}
?>
The ebid feed gives access to about 50 items.
Some improvements i would like to see in the feed are access to more than 50 items perhaps by pagination also if diaeresis and umlaut are in the feed they will give errors.
I expected some questions , I take it you must of got it working ok MommyOf4Grlz ?
There are currently 1 users browsing this thread. (0 members and 1 guests)