Results 1 to 6 of 6

Thread: How do i allow it to auto run and update - custom script

  1. #1
    Join Date
    Dec 2004
    Posts
    617

    Default How do i allow it to auto run and update - custom script

    How do I make sure that the catalog files are being updated WITH OUT wiping out my current config and WAY custom search.php page?

  2. #2
    Join Date
    Jun 2005
    Posts
    42

    Default

    Rename your custom search.php to search_master.php.

    Then, in the Zoom scheduled task have it run a bat file that contains the following code (edit to fit your drive and path info)

    I have my files generate in a folder called "us" and then copy them onto my web server through a mapped drive.

    Code:
    cd "C:\Program Files\Zoom Search Engine 4.1\us"
    copy *.* g:
    copy search_master.php g:\search.php

  3. #3
    Join Date
    Aug 2005
    Posts
    34

    Default

    ook great.. good idear!! Thanks much!
    ____________________________
    Terry Remsik
    Stripe-man@Stripe-man.com

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

    Default

    A Zoom config file is never overwritten unless you manually re-save it. (by selecting save from the menu in Zoom).

    If you have a real need to customise the script then you can avoid writing a .bat batch file. (I should also note that most of the time, script customisation can be avoided, and if you have modified the script we don't support it) .

    In the advanced tab of the Zoom configuration window you can enter in the location of your custom script.

    From the Zoom help file
    ============
    If you wish to use a copy of the search script (search.asp, search.php or search.js) that is located in a different folder besides the one in the Zoom installation directory, then you can change the path here. This is only necessary if you are making modifications to the search script source code, and you wish to maintain multiple versions to be used with different sites.
    ============

    -----
    David

  5. #5
    Join Date
    Aug 2005
    Posts
    34

    Default

    The only customizations I added are to $query:
    $query = "$_get[zoom_query]" . "$value2" . "$value3" . "$value4" . "$value5";

    adding 4 drop down menus for selecting countries,authors, and two other fields. and making them multiple selects. (array)
    I have a foreach loop concatenating the multiple selects into a string. each of those strings are then added to $query (see above).

    Would this take it out of 'warranty' ?
    ____________________________
    Terry Remsik
    Stripe-man@Stripe-man.com

  6. #6
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    4,155

    Default

    Our general policy is that if you start editing our scripts, then you should know what you are doing and have to take responsibility for your own work.

    We don't have time to debug other peoples work.

    However if you get to the point where you think there is a bug in our script, just replace your custom script, with our default script and if you can show there is a problem with our default script we'll be happy to look at it.

    -------
    David

Similar Threads

  1. zoom won't copy custom script
    By MiniMe in forum Zoom Search Engine V4 (Old Version)
    Replies: 4
    Last Post: 11-08-2008, 02:01 AM
  2. Auto pause upon error
    By Anonymous in forum Zoom Search Engine V4 (Old Version)
    Replies: 8
    Last Post: 08-02-2005, 05:43 AM
  3. Another XLS plugin update
    By Ray in forum Zoom Search Engine V4 (Old Version)
    Replies: 0
    Last Post: 05-16-2005, 12:12 AM
  4. Auto Save Index Log
    By soatley in forum Zoom Search Engine V4 (Old Version)
    Replies: 1
    Last Post: 04-20-2005, 12:14 AM
  5. Custom version of search.asp script
    By Anonymous in forum Zoom Search Engine V4 (Old Version)
    Replies: 2
    Last Post: 12-30-2004, 08:25 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
  •