Home
Buy on eBid
Sell on eBid
eBid Stores
My eBid
Upgrade to Seller+ Lifetime
eBid Help
Close
Login to Your Account
eBid Community Forums - Chat & find help from others in the eBid Community
Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: Rss feed...

  1. #21
    Forum Newbie
    Join Date
    Sep 2012
    Location
    Las Cruces, New Mexico, United States
    All-About MommyOf4Grlz
    View MommyOf4Grlz's Listings
    Forum Posts
    11

    Default Re: Rss feed...

    Mine isn't either. I'm playing with it and if I can get it figured out I'll update everyone.

  2. #22
    Forum Saint astral276's Avatar
    Join Date
    Jun 2008
    Location
    Grantham, Lincolnshire, United Kingdom
    View astral276's Feedback (+194)
    All-About astral276
    View astral276's Listings
    Forum Posts
    19,132

    Default Re: Rss feed...

    Quote Originally Posted by MommyOf4Grlz View Post
    astral, how did you get that layout? that is what I'm looking for but I can't find anything.
    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.


  3. #23
    Forum Newbie
    Join Date
    Sep 2012
    Location
    Las Cruces, New Mexico, United States
    All-About MommyOf4Grlz
    View MommyOf4Grlz's Listings
    Forum Posts
    11

    Default Re: Rss feed...

    ok thanks for the info I appreciate your time!

  4. #24
    Forum Diehard Brunwulf's Avatar
    Join Date
    Dec 2006
    Location
    Stroud, Gloucestershire, United Kingdom
    View Brunwulf's Feedback (+89)
    All-About Brunwulf
    View Brunwulf's Listings
    Forum Posts
    536

    Default Re: Rss feed...

    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.
    More wine please ...

  5. #25
    Forum Diehard Brunwulf's Avatar
    Join Date
    Dec 2006
    Location
    Stroud, Gloucestershire, United Kingdom
    View Brunwulf's Feedback (+89)
    All-About Brunwulf
    View Brunwulf's Listings
    Forum Posts
    536

    Default Re: Rss feed...

    I expected some questions , I take it you must of got it working ok MommyOf4Grlz ?
    More wine please ...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Follow Us
New To eBid?
Register for Free