Hi,
Used zoom v6 for the first time yesterday - just thought i add my tuppence-worth of advice for new users. Here are two points i came unstuck on and figured out (easy as they may be to some) :
Problem 1.
----------
Most users like me want to use zoom search in an existing website which probably already has a search form (uncoded) and a search page - so how do you search from an existing search input-box?
Solution
--------
I had to dig around in the help file to find out that the 'input' box for entering your search criteria should be named 'zoom_query' ( i.e. name="zoom_query" ) other wise, simply pointing to the search.php (in the case of php) file in the 'form action' attribute simply sends you to the search template.html file without the search query.
Initially i spend 40 minutes looking at the example websites of users using zoom and noticed in the address bar after a search the query-string '?zoom_query=blahblah'& ....
Wrensoft:
Most users of your script will want to use the search script in this manner (especially if they're using a website template, pre-built but filled with 'lorum ipsum bumf) - could you make it more obvious what values are required for the most crucial part of the zoom functionality???
Problem 2. (specific to php users)
----------
Kept recieving a php error after 'including' the search.php script in my custom search page. The error stated that cannot send headers since they've been sent already - this, as an experienced php dev, i figured immediately and
commented out the lines (starting on line 99 of the search.php script):
Not needed if you php 'include' the search.php file in you custom search page with headers already loaded. Since the
search.php script needs to be embedded 'inline' the page has already fully loaded (header, body and all) by the time you attempt to 'include' search.php. This again is only a problem if you wish to create your own search page (instead of the search_template.html page) because you want to add your own headers footers and custom php.
Again not mentioned anywhere in the help docs - so less experienced php's may find this useful
thanks
Used zoom v6 for the first time yesterday - just thought i add my tuppence-worth of advice for new users. Here are two points i came unstuck on and figured out (easy as they may be to some) :
Problem 1.
----------
Most users like me want to use zoom search in an existing website which probably already has a search form (uncoded) and a search page - so how do you search from an existing search input-box?
Solution
--------
I had to dig around in the help file to find out that the 'input' box for entering your search criteria should be named 'zoom_query' ( i.e. name="zoom_query" ) other wise, simply pointing to the search.php (in the case of php) file in the 'form action' attribute simply sends you to the search template.html file without the search query.
Initially i spend 40 minutes looking at the example websites of users using zoom and noticed in the address bar after a search the query-string '?zoom_query=blahblah'& ....
Wrensoft:
Most users of your script will want to use the search script in this manner (especially if they're using a website template, pre-built but filled with 'lorum ipsum bumf) - could you make it more obvious what values are required for the most crucial part of the zoom functionality???
Problem 2. (specific to php users)
----------
Kept recieving a php error after 'including' the search.php script in my custom search page. The error stated that cannot send headers since they've been sent already - this, as an experienced php dev, i figured immediately and
commented out the lines (starting on line 99 of the search.php script):
PHP Code:
if (isset($Charset) && $NoCharset == 0)
header("Content-Type: text/html; charset=" . $Charset);
search.php script needs to be embedded 'inline' the page has already fully loaded (header, body and all) by the time you attempt to 'include' search.php. This again is only a problem if you wish to create your own search page (instead of the search_template.html page) because you want to add your own headers footers and custom php.
Again not mentioned anywhere in the help docs - so less experienced php's may find this useful
thanks
Comment