Results 1 to 5 of 5

Thread: placing search code using SSI

  1. #1

    Default placing search code using SSI

    Instead of going through each webpage and adding the code required to enable zoomsearch to Jump to match and highlight within document I am placing the code in a txt file and referencing it by placing the following code at the bottom of each webpage.

    So as not to have to change each page's extension from html to shtml I have placed the following code in my htaccess file.


    Code:
    Options Indexes FollowSymLinks Includes
    AddType application/x-httpd-cgi .cgi
    AddType text/x-server-parsed-html .html
    This enables zoomsearch to Jump to match and highlight within document which is a great feature. As I have also placed my stats code and part of my menu code in footer.txt I would like to reference the file from php pages. I realise that Jump to match and highlight within document will not work with php pages but wish the stats and menu sections to work from footer.txt.

    Does anyone know if it is simply a matter of adding another line to the above code in the htaccess file so that php files will reference footer.txt? If so what code needs to be added?
    John Rogers
    www.cerberus.com.au

  2. #2
    Join Date
    Dec 2004
    Location
    Sydney, Australia
    Posts
    3,586

    Default

    You can use the "Jump to match/highlight" JS files on a PHP page. You just need to output the <script> link etc. as part of the HTML output.

    As for your footer, you would be better off using the PHP equivalent of a #include to perform the SSI on a PHP page. Consult the PHP documentation for the virtual() function:
    http://www.php.net/manual/en/function.virtual.php
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

  3. #3
    Join Date
    Jan 2009
    Posts
    12

    Default Jump to match and highlight in php pages does not work

    Jump to match and highlight within a document will not work with my php pages while no problem with html pages.
    example:
    does not work!
    http://localhost:2010/pmwiki.php?n=Unix.AIX?zoom_highlight=memory
    works fine:
    http://localhost:2010/unix_aix.html?zoom_highlight=memory (this is just the obove generated html stored in a file)

    Any suggestions how I can jump and match with my php pages (by using pmwiki)? I did not understand your hint with the virtual() function.
    Any virtual() function example available?

  4. #4
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    4,157

    Default

    You have posted in the V4 form and reopened a 5 year old post.

    We no longer support V4 of the software.
    Can you upgrade to V6 and see if you still have the problem. The highlighting script was almost totally written between V4 and V6.

    The comment about virtual() above has nothing to do with the highlight script..

  5. #5
    Join Date
    Jan 2009
    Posts
    12

    Default

    Sorry, I posted my request into the wrong folder. I already have V6 and I still have the problem. I will post my same request in V6 Forum

Similar Threads

  1. modifying search script source code (CGI)
    By gjelbra in forum Zoom Search Engine V4 (Old Version)
    Replies: 7
    Last Post: 09-02-2011, 08:32 PM
  2. VB code for Zoom search on ASP.NET website
    By TLW in forum Zoom Search Engine V4 (Old Version)
    Replies: 6
    Last Post: 01-26-2006, 10:16 PM
  3. Placing search.cgi form inside server side include SSI
    By momora in forum Zoom Search Engine V4 (Old Version)
    Replies: 1
    Last Post: 01-04-2006, 06:20 AM
  4. Placing the query string in the results URL
    By iantresman in forum Zoom Search Engine V4 (Old Version)
    Replies: 1
    Last Post: 05-05-2005, 12:50 AM
  5. search.ASP code displaying instead of search
    By para_sight in forum Zoom Search Engine V4 (Old Version)
    Replies: 1
    Last Post: 02-18-2005, 07:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •