View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Update of /cvsroot/dqsd/dqsd/searches
In directory sc8-pr-cvs1:/tmp/cvs-serv30692/searches

Modified Files:
        ebay.xml 
Log Message:
updated ebay search with arguments from Darrick on user list plus a few others

Index: ebay.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/searches/ebay.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** ebay.xml    30 Aug 2002 03:24:56 -0000      1.8
--- ebay.xml    16 Jan 2003 04:47:24 -0000      1.9
***************
*** 3,15 ****
    <description>
      Search eBay by description or by item number.<br/>
      <div class="helpboxDescLabels">Examples:</div>
      <table class="helpboxDescTable">
!               <tr><td>ebay guitars</td></tr>
        <tr><td>ebay 1503826268</td></tr>
        </table>
    </description>
    <category>Shopping</category>
    <link>http://www.ebay.com/</link>
!   <contributor>Ryan Edwards</contributor>
    
    <form name="ebayf"
--- 3,30 ----
    <description>
      Search eBay by description or by item number.<br/>
+     <div class="helpboxDescLabels">Switches:</div>
+     <table class="helpboxDescTable">
+       <tr><td>/about</td><td> - </td><td>View username's About Me page</td></tr>
+       <tr><td>/all</td><td> - </td><td>Search auctions by username including 
+completed</td></tr>
+       <tr><td>/feedback</td><td> - </td><td>Display feedback on an ebay 
+user</td></tr>
+       <tr><td>/items</td><td> - </td><td>Search items by username</td></tr>
+       <tr><td>/my</td><td> - </td><td>Open MyEbay page</td></tr>
+       <tr><td>/user</td><td> - </td><td>Search current auctions by username</td></tr>
+     </table>
      <div class="helpboxDescLabels">Examples:</div>
      <table class="helpboxDescTable">
!       <tr><td>ebay guitars</td></tr>
        <tr><td>ebay 1503826268</td></tr>
+       <tr><td>ebay /ab music-brokers</td></tr>
+       <tr><td>ebay /all mickey</td></tr>
+       <tr><td>ebay /f mickey</td></tr>
+       <tr><td>ebay /i music-brokers</td></tr>
+       <tr><td>ebay /my</td></tr>
+       <tr><td>ebay /u mickey</td></tr>
        </table>
    </description>
    <category>Shopping</category>
    <link>http://www.ebay.com/</link>
!   <contributor>Ryan Edwards, Darrick, Brent Beardsley</contributor>
    
    <form name="ebayf"
***************
*** 25,33 ****
      function ebay(q)
      {
-       var res = null;
-       
        if( nullArgs("ebay",q) )
          return false;
!       else if ( res = q.match( /^\s*(\d{9,})\s*$/ ) )
        {
          
openSearchWindow('http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?MfcISAPICommand=ViewItem&item='
 + res[1]);
--- 40,67 ----
      function ebay(q)
      {
        if( nullArgs("ebay",q) )
          return false;
! 
!       var args = parseArgs(q, "all, about, feedback, items, my, user");
! 
!       if (args.switches.length > 0) {
!         switch (args.switches[0].name)
!         {
!         case "about": openSearchWindow('http://members.ebay.com/aboutme/' + args.q 
+'/'); return false;
!         case "all": openSearchWindow('http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?' +
!                                      'MfcISAPICommand=ViewBidItems&userid=' + args.q 
+
!                                      '&completed=1&sort=3&all=1&rows=25'); return 
false;
!         case "feedback": 
openSearchWindow('http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?ViewFeedback&userid=' + 
args.q); return false;
!         case "items": 
openSearchWindow('http://cgi.ebay.com/ws/eBayISAPI.dll?ViewSellersOtherItems&userid=' 
+ args.q + 
!                                        '&include=0&since=-1&sort=3&rows=25'); return 
false;
!         case "my": 
openSearchWindow('http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?MyEbayLogin'); return false;
!         case "user": openSearchWindow('http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?' +
!                                       'MfcISAPICommand=ViewBidItems&userid=' + 
args.q +
!                                       '&completed=0&sort=3&all=1&rows=25'); return 
false;
!         }
!       }
! 
!       var res = null;
!       if ( res = args.q.match( /^\s*(\d{9,})\s*$/ ) )
        {
          
openSearchWindow('http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?MfcISAPICommand=ViewItem&item='
 + res[1]);
***************
*** 35,39 ****
        else
        {
!         document.ebayf.query.value = q;
          submitForm(ebayf);
        }
--- 69,73 ----
        else
        {
!         document.ebayf.query.value = args.q;
          submitForm(ebayf);
        }




-------------------------------------------------------
This SF.NET email is sponsored by: A Thawte Code Signing Certificate 
is essential in establishing user confidence by providing assurance of 
authenticity and code integrity. Download our Free Code Signing guide:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Reply via email to