SGP wrote:

The following PC Mag search "pcm soap /all" returns a page not found error.

I tried the example shown in the help text "pcm buttonboogie /base" with the same result.

When I entered the same search keys on PC Mag's home page they worked.



Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

Looks like they changed the url and broke it. The fixed search is attached.

Maybe I'd better take ya up on your offer glenn ;) My sf username is thadk when you get a chance.

Thad
<search function="pcm">
  <name>PC Magazine</name>
  <description>
    Search the PC Magazine archives.<br/>
    <div class="helpboxDescLabels">Switches:</div>
  	<table class="helpboxDescTable">
  		<tr><td>/all</td><td> - </td><td>All Sites</td></tr>
  		<tr><td>/base</td><td> - </td><td>Baseline</td></tr>
      <tr><td>/cio</td><td> - </td><td>CIO Insight</td></tr>
      <tr><td>/eweek</td><td> - </td><td>eWeek</td></tr>
      <tr><td>/extremetech</td><td> - </td><td>ExtremeTech</td></tr>
      <tr><td>/neteconomy</td><td> - </td><td>The Net Economy</td></tr>
      <tr><td>/zdsb</td><td> - </td><td>Ziff Davis Smart Business</td></tr>
  	</table>
    <div class="helpboxDescLabels">Example:</div>
    <table class="helpboxDescTable">
  		<tr><td>pcm buttonboogie /base</td></tr>
  	</table>
  </description>
  <category>Computers</category>
  <link>http://www.pcmag.com/</link>
  <contributor>John W. Bairen, Jr., Ryan Edwards</contributor>
  
  <form name="pcmf"
        action="http://www.pcmag.com/search_results/"; 
        method="get">
    <input type="hidden" name="selected_site" value=""/>
    <input type="hidden" name="query" value=""/>
  </form>
  
  <script><![CDATA[
    function pcm(q)
    {
      var args = parseArgs(q, "all, base, cio, eweek, extremetech, pcm, neteconomy, zdsb");
      
      if( nullArgs("pcm",q) )
        return false;
      else if( args.switches.length == 1 )
      {
        switch( args.switches[0].name )
        {
          case "all": site = '0|Baseline&selected_site=CIO+Insight&selected_site=eWEEK&selected_site=ExtremeTech&selected_site=PC+Magazine&selected_site=The+Net+Economy&selected_site=Ziff+Davis+Smart+Business| '; break;
          case "base": site = "17|Baseline|http://www.baselinemag.com/";; break;
          case "cio": site = "13|CIO+Insight|http://www.cioinsight.com";; break;
          case "eweek": site = "7|eWEEK|http://www.eweek.com/";; break;
          case "extremetech": site = "4|ExtremeTech|http://www.extremetech.com/";; break;
          case "neteconomy": site = "9|The+Net+Economy|http://www.theneteconomy.com/";; break;
          case "zdsb": site = "11|Ziff+Davis+Smart+Business|http://www.smartbusinessmag.com/";; break;
        }
        document.pcmf.query.value = args.q;
        document.pcmf.selected_site.value = site;
        submitForm(pcmf);
      }
      else if( args.switches.length > 1 )
        nullArgs("pcm","?");
      else
      {
        document.pcmf.query.value = args.q;
        document.pcmf.selected_site.value = "3|PC+Magazine|http://www.pcmag.com/";;
        submitForm(pcmf);
      }
    }
  ]]></script>
</search>


Reply via email to