PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

search_template.html overwritten

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

  • search_template.html overwritten

    I love your search engine!!!

    However, I have one challenge with it. I am using a mini search on each page of my php site but it points to the search_template.html, which has been customized to pick up our branding. The problem that I am running into is if I re-index the site because I have made changes (adding pages, documents, etc) - I have to re-customize the search_template.html page again.

    This is a new Intranet site that is not yet live because we are combining three intranet sites into one (our company purchased two others). We have had to re-PDF files with a new password for security - because of this I cannot use the incremental index feature yet - this site is to be live by the end of June (I would like to see the end of this week).

    When I try to upload all but the existing search_template.html page, my mini search goes to an empty page.

    Thank you.

    wjhass
    Last edited by wjhass; Jun-08-2009, 07:36 PM. Reason: Forgot to let you know - Enterprise Edition - vs 6

  • #2
    I am using a mini search on each page of my php site but it points to the search_template.html
    It should point to the search script and not template. See this FAQ
    Q. How do I add search boxes to my web pages?

    The template file will not be overwritten if it already existing in the Zoom output folder.

    Comment


    • #3
      This is what I have...

      This is an Intranet and my IT will not allow me to give outside personal access inside the firewall - if you need to see graphics images I will find a public site to upload those.

      But - I have that code in my page -

      <form method="get" action="http://xxxxxxxxxx.com/Wrensoft/search.php">
      <div align="center">
      <input type="text" name="zoom_query" size="20" />
      <input type="submit" value="Search" />
      <br />
      <span class="style21">Results per page:</span>
      <select name="zoom_per_page">
      <option selected>10</option>
      <option>20</option>
      <option>100</option>
      </select>
      <br />
      <br />
      <span class="style21">Match:</span>
      <input type="radio" name="zoom_and" value="0" checked />
      <span class="style21">any search words</span>
      <input type="radio" name=zoom_and value="1" />
      <span class="style21">all search words</span>
      </div>
      </form>

      Code for re-designed search page:
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <!--
      This is the search template file (search_template.html) which contains the layout
      to your search page.

      Note that you can not access the search function from this page. Instead,
      you should open or link to the search script, which is a file named "search.php",
      "search.asp", or "search.cgi".
      -->
      <html>
      <head>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
      <title>LodgeNet Technical Training Search</title>
      <!--
      You can change the fonts, colors, and styles of your search results with the CSS below.
      For some examples and more information on Cascading Style Sheets (CSS), visit our support page at:
      http://www.wrensoft.com/zoom/support/css.html
      -->
      <style type="text/css">
      body {margin-left: 12%; margin-right: 12%; margin-top: 0; margin-bottom: 0; }
      .highlight { background: #FFFF40; }
      .searchheading { font-family: Tahoma; font-size: 130%; font-weight: bold; }
      .summary { font-family: Tahoma; font-size: 80%; font-style: italic; }

      **large amount of pointless stuff removed by admin here **

      <p align="center" class="style2 style3">Phrases in double quotes (i.e. &quot;LodgeNet Conference Manager&quot will search for entire phrase.</p>
      <p align="center" class="style2">&quot;*&quot; and &quot;?&quot; wildcards are supported.</p>
      <p align="center" class="style2"><span class="style4">To return to LodgeNet Technical Training, click</span> <a href="http://todtrainingdev.lodgenet.com/index.php">here</a></p>
      <!--ZOOMSEARCH-->
      <img src="../Images/LNETBlue.png" />
      </body>
      </html>

      Comment


      • #4
        The above does not correspond with your original description that your "mini search on each page ... points to the search_template.html" file. The form points to "search.php" correctly according to the above.

        As to why you are losing your changes in "search_template.html", I suspect you have a copy of the file rather than using the one generated in the output directory.

        To clarify: Zoom will create a "search_template.html" file in the Output directory on first indexing (when there is no such file already there). Once the file is there, Zoom will not overwrite or change the file.

        Now, if you have a copy of the search template file saved elsewhere and you are modifying that. And then you have your files saved in an output directory elsewhere and you are uploading those files, then you might be uploading the default file created by Zoom rather than the one you've modified.

        You can either:
        (a) modify the file in the output directory,
        (b) set your output directory to be the same folder as where you keep your customized template file, or
        (c) if you are using Zoom to upload your files, disable the option to upload the template file ("Configure"->"FTP"->"Do not upload search template") and upload your own customized file.
        --Ray
        Wrensoft Web Software
        Sydney, Australia
        Zoom Search Engine

        Comment


        • #5
          Thank you

          Thanks, another project interrupted the search - but I will try what you recommend here.

          wjh

          Comment


          • #6
            New index uploaded to site - search results display blank page

            maybe it is too many late nights, but... I have reindexed the site and FTP'd the new information - and when I click search it takes me to a blank page. If I replace with the original indexed information - search works perfectly. I originally thought it was sthe search_template file, but that is not it, everything is directed to the search.php file, but yet it does not work.

            A couple of changes have been made to the configuration - 1. change the spider URL and base URL to represent the production site instead of the development site and 2. added a password for secure PDF files. My tech pubs group has about 700 documents that we need to to change to a new password, but I cannot ask them to do that until I can successfully run a new index that tests the password.

            After starting from scratch three times, I am frustrated and cannot see what I am doing wrong. I have a site that just went live and I am using an index from almost a month ago.

            Any help would be greatly appreciated!!

            Comment


            • #7
              Your web server might have some limits imposed (on CPU usage and/or execution time) that you are unaware of.

              Please see this thread for more information and the small test PHP script you can use to verify this:
              http://www.wrensoft.com/forum/showthread.php?t=12

              Let us know the results of the test loop script.
              --Ray
              Wrensoft Web Software
              Sydney, Australia
              Zoom Search Engine

              Comment


              • #8
                I will try this tomorrow

                But - I do not think this is the case - this is on one of servers in house -but I will have a sys eng look at it. A concern about one of the comments - was something about the search page showing - it does not - all I see is a blank white page. nothing else.
                thanks again for the help, I hope we can get this fixed, my VP is starting to look at me like I do not know what I am doing...
                wjh

                Comment


                • #9
                  It is possible that you will get a blank white page for the same problem. It depends on when the script is terminated or how the limit is enforced. There is a sample script to test/verify this problem and it should be easy to confirm.
                  --Ray
                  Wrensoft Web Software
                  Sydney, Australia
                  Zoom Search Engine

                  Comment


                  • #10
                    Thanks I will have the sys eng run the test script tomorrow - they do not allow me access to the operating system...

                    Hopefully this is solve this.

                    Thanks for you quick responses to the same question over and over!

                    wjh

                    Comment


                    • #11
                      VP is starting to look at me like I do not know what I am doing... they do not allow me access to the operating system
                      Maybe you should ask the VP for sufficient access to the computer to enable you to do your work efficiently.

                      Comment


                      • #12
                        Thank You So Much!

                        Just an FYI - our sys eng ran the test script and it crashed the development server - after getting it back he tried a couple of other things and that did not work - he finally went in and increased the php memory from 16 mb (default) to 32 mb and the new index works.

                        I appreciate all your help!

                        wjh

                        Comment

                        Working...
                        X