set toolbar icons on Cambozola

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
teddy
Posts: 15
Joined: Sat Mar 26, 2005 6:05 pm

set toolbar icons on Cambozola

Post by teddy »

The documentation on the Cambozola website explains that the icons in the toolbar can be turned on/off. These icons are zoom in, zoom out, pan, zoom to full extent, info about stream, and website for Cambozola.

This contribution inserts a <param> tag into the HTML code that is passed on to the web browser. It tells the browser specifically what icons to show.

I created a php file called teddy_config.php. I put this file in the same directory as the zm files on the webserver. This is the content of the teddy_config.php file:

Code: Select all

<?php
/*
This page has customized control settings for the camboloza toolset.

The following pages must be altered altered to include this page:
zm_html_view_montagefeed.php, line 190
zm_html_view_cycle.php, line 137
zm_html_view_event.php, line 342
zm_html_view_watchfeed.php, line 180

These pages must be altered so that some lines of code are inserted before the "</applet>" HTML tag.  The code appears after the last "<param ... />" HTML tag.
The code is this:
//    <?php
//    include("teddy_config.php");
//    echo $teddy_echo;
//    ?>

*/
// array to hold desired controls
// $teddy_change = array("Home","ZoomIn","ZoomOut","Pan","ChangeStream","Info","WWWHelp"); 
$teddy_change = array("Home","ZoomIn","ZoomOut","Pan","Info");
// variable to echo in HTML pages
$teddy_echo = '<param name="accessories" value="';
        for ($teddy_counter=0;$teddy_counter<count($teddy_change);$teddy_counter++) {
          $teddy_echo .= $teddy_change[$teddy_counter];
          $teddy_echo .= ",";
        }
$teddy_echo .= '"/>';
?>
As you can see, there are comments in this code that instruct you to edit some files. You need to insert this code into the files listed:

Code: Select all

<?php
include("teddy_config.php");
echo $teddy_echo;
?>
Post Reply