Beyond Fusion
Follow us on Twitter
 
bug-dkbl

Adding Zoom (PHP Platform) Search Engine to a Fusion site

For an alternate method and info on using Zoom itself visit the site of Team LANSRAD.

1. Create a page in Fusion for your search called sitesearch.php...(or whatever you want to call it).

2. Insert the following text (or similar) near the top of the page:

Enter one or more keywords to search for using the Zoom Search Engine.
Note that '*' and '?' wildcards are supported.

3. Place a text box below the text above and make it the width of the available space for displaying the search results.

4. At the insertion point in the text box, press Ctrl+T.

5. Insert the following code in the Insert HTML window, then click OK to close the window:

<?php include 'search.php'; ?>

6. In your page layout HTML, enter the following style definition on the Between Head Tags tab
    (Edit to suit):

 <style>
  .highlight { background: #FFFF40; }
  .searchheading { font-size: 130%; font-weight: bold; };
  .summary { font-size: 80%; font-style: italic; }
  .results { font-size: 100%; }
  .category { color: #999999; }
  .description { font-size: 100%; color: #008000; }
  .context { font-size: 100%; }
  .infoline { font-size: 80%; font-style: normal; color: #808080;}
  .sorting { text-align: right; }
  .result_title { font-size: 100%; }
 </style>

(That concludes the work you need to do in Fusion. The next steps involve the files generated by Zoom.

7. Open the following files in an editor (PHPNotepad available on our Resources page works well):

Zoom 3 Only

   In the search.php file, comment out the following lines (right after the line "// Parameter
   initialisation" -  near line 47) by inserting two slashes at the beginning of each line. Like so: //

   if (isset($Charset) && strlen($Charset) > 0)
   header("Content-Type: text/html; charset=" . $Charset);

Zoom 4 Only

   Manual editing of the search.php file is no longer needed. Instead, click on Configure in Zoom 4.
   Go to the advanced tab and in the Miscellaneous Section check: "Disable charset enforcing on search
   script." This option causes Zoom to generate search.php without the lines above.

IMPORTANT: be sure to set the encoding in Zoom's Indexer Configuration to match the Character set selected for your site in Fusion. [Western European (ISO-8859-1) by default]

    In the search_template.html file, wipe out everything except the line that says:

    <!--ZOOMSEARCH-->

    Save the changed files. Repeat this step each time you  re-index the site.

8. Publish your sitesearch.php page from Fusion.

9. Using an FTP program, ftp the files created by Zoom (including those you edited above) to the same directory as your sitesearch.php page. (the html directory if you publish by asset type)

Your page will now function like this page does from this point down:

Site Search

bug-ltbl

Enter one or more keywords to search for using the Zoom Search Engine.
Note that '*' and '?' wildcards are supported.

Search for: Results per page:

Match: any search words all search words

Search powered by Zoom Search Engine Get Zoom for your site!

 

Download the Free Edition of Zoom Search Engine from the Beyond Fusion Store. Need more capabilities? Purchase the Standard or Professional Edition from the store.
 

©2004-2017

Buy AllWebMenus

Works with Fusion 2015

NetObjects Fusion is Registered Trademark of NetObjects, Inc.

Adobe 

Once You Know, You Newegg 

mariadb-badge-88x31