Announcement

Collapse
No announcement yet.

Search from another directory

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Search from another directory

    I want to set up a search page which is not in my /acatalog/ directory. It is in the root directory, but I want to search the catalog products in exactly the same way as the built in search engine. Is this possible?

    I have tried making an exact copy of the search page and putting it into the root directory, and the search results come up OK but the pages they link to do not.

    #2
    Hi Sean,

    In order to get the search facility working on your web page you need to add this code somewhere appropriate REPLACING 'http://www.yoururl.com' for your correct website url :


    <table width="140" cellspacing=0 cellpadding=0 border=0 align=center>
    <form name=simplesearch action="http://www.yoururl.com/cgi-bin/ss000001.pl" method="GET">
    <tr>
    <td nowrap> <div align="center">
    <input type="TEXT" name="SS" size="12" maxsize="75" value="Quick search" onFocus="this.value='';this.style.background='#FFFFFF'">
    </div></td>
    </tr>
    <tr>
    <td nowrap> <div align="center">
    <input name="ACTION" type="image" src="quicksearch.gif" border="0">
    <input type=HIDDEN name="PR" value="-1">
    <input type=HIDDEN name="TB" value="A">
    <input type=HIDDEN name="SHOP" value="">
    </div></td>
    </tr>
    </form>
    </table>

    You will also need to upload the attached quicksearch.gif into the same folder as the page this code will be on.

    This will generate a small 140 wide table with the Actinic Search box in it and can be used on any web page, (maybe affilliates? or even shopping portals?)
    Attached Files

    Comment


      #3
      Thanks for the help Steve, but it seems to have exactly the same problem as before. The search works fine, but when I click on one of the links that the search turned up, it comes up with what looks like the product page, but all the graphics are missing and none of the links work.

      Could it be anything to do with frames, as the quick search is in one frame and the catalog is in another?

      Comment


        #4
        think you need to add another hidden field type

        <input type=HIDDEN name="ACTINIC_REFERRER" value="http://www.yourdomain.com/acatalog/">

        hopefully the scripts will think they're being called from the catalog directory

        Comment


          #5
          I think that might have cracked it. Thanks a lot for your help both of you

          Sean

          Comment

          Working...
          X