Updated Fedora book

The book is now with my publisher, Gyankosh Prokashani, and hope to be in the marker mid december. The book will accompany Fedora 12 DVD and Fedora Live CD (GNOME). Waiting to see the book in it printed form.

I have installed Mozilla Firefox 3.6 Beta 2 and enjoying using it. Its 'persona' feature is really cool! With one click you can install and use it. When you visit persona section you get a lots of personas so far. Take you mouse over the persona image, and your browser's look is changed! What a live preview. Other changes to Firefox are not that much visible. I am fan of Firefox and using it for more than 2 years. In fact, I have not installed and tried IE8, after using Firefox. You can get the beta of Firefox 3.6 from here: http://en-us.www.mozilla.com/en-US/firefox/3.6b2/releasenotes/. Have a look at it.
This article is a continuation to the previous artcile with same title. This is an exceprt from my book - Joomla! with Flash - recently published by Packt Publishing. This article was orginally published at www.packtpub.com, and I am reposting it with their permission.
We have seen that one of the uses of Flash in Joomla! templates is as a header. By using a Flash animation in a site's header you can create some stunning effects. As we have already seen, while designing the template, we may embed Flash animation in the header region and control the layout using an appropriate CSS stylesheet. To embed such Flash animations like these, you can use the XHTML tag. We have seen its use in the previous section. An alternative to this is showing the Flash header at some module position. There are several extensions that can be used for showing Flash objects at a module position. We will be looking at some of them next.
Flexheader3 is a Joomla! 1.5-compatible extension for using Flash as headers in Joomla! sites. This is available for download for free at http://flexheader2.andrehotzler.de/en/download/folder/208-flexheader3.html. After downloading the package, install it from the Extensions | Install/Uninstall screen in Joomla! administration. Then click on Extensions | Module Manager. In the Module Manager screen, you will find the module named Flexheader3. Click on it and that shows the Module: [Edit] screen for the Flexheader3 module, as shown in the following screenshot:

The Details section is similar to other modules from where you enable the module, select the module position to display this, select the order of display, and assign menus for which this module will be displayed. The module-specific settings are in the Parameters section. As you see, selecting the module position is crucial for this module. Most of the templates don't have a position to display the header using a module. Therefore, you may need to create a module position for displaying a Flash header. The following section shows you how to create a module position displaying a header.
To create a module position in your template you need to edit at least two files. Browse to the /templates directory, and click on the name of the template that you want to modify. You need to edit two files in the template folder: index.php and templateDetails.xml. First, open the templateDetails.xml file in your text editor and find the <positions> tag. Under this, type the line highlighted in the following code so that the file looks like the following:
<positions>
<position>flexheader</position>
<position>left</position>
<position>user1</position>
...
<position>right</position>
<position>debug</position>
</positions>
Remember to type <position>flexheader</position> before ending </positions> tag. Placing it outside the <positions> </positions> block will make the template unusable.
After modifying the templateDetails.xml file, open the index.php file in your text editor. Find out the code for including a header image in that template. Generally, this is done by inserting an image using the tag. If you don't find such a tag, then look for <div id="header" ... > or something like that. In such cases, CSS is used to display the background image to the div element.
Once you have found the code for showing the header image, replace it with the following code:
<jdoc:include type="modules" name="flexheader" style="RAW" />
This line of code means that you are instructing to include modules designated for the flexheader position. When we assign the Flexheader3 module to this position, the contents of that module will be displayed in this position. Generally, this module will produce a code like the following in this position:
<img src="/images/header.png"
title="My header image"
alt="Header image"
style="width: 528px; height: 70px;"
/>
When changes to index.php are made, save those changes. We will be configuring the module to display a Flash header in this module position.
|
|
After creating a module position for Flexheader by modifying the index.php and templateDetails.xml files, you can configure the Flexheader3 module to show the Flash header. To configure the Flexheader3 module, go to the Parameters section in the Module: [Edit] screen for the Flexheader3 module. Now we will look into the Module Parameters section shown in the following screenshot:

In the Module Parameters section you need to configure the following:
You can display images, XHTML <div>, or Flash objects using the Flexheader3 module. The Advanced Parameters section for the module, shown in the next screenshot, allows you to configure what will be displayed in this module and how:

From the Advanced Parameters section you need to configure the following:
and the logo will be displayed as an overlay to the header images. However, for formatting the DIV content, you also need to specify the relevant styles in the CSS file.If we configure these settings for the Flexheader3 module and save them, you will find the header—either images from the specified directories or SWF animations—displayed in the newly created Flexheader module position. The module will look similar to the following screenshot:

We can use the mod_web_flash as a site's header. The only difference will be in configuring the module differently with appropriate images, texts, and link URLs. Then we have to publish that module in a position like the Flexheader3 module position. For example, placing the same module that we have configured with mod_web_flash would display the header as shown in the following screenshot:

When using the Web Flash Joomla 1.5 module (mod_web_flash), you can also add menu links to the rotating header images. It will be nice to add different background images, some text (a slogan for your site), and then linking them to the different parts of your website.
Joomla! has a banner management system from where you can add banner clients, categorize the banners, define the banners, and publish the banners through the module. Usually you can display banner images using this component and also manage the banners very effectively. You can specify the banner images and links for the same. The banners can be displayed for a specified duration or for a certain number of impressions. Unfortunately, we cannot display a Flash banner using this banner component.
For adding animated Flash banners, we need to use third-party extensions. Any module that can show a Flash object at a module location can be used to display Flash banners. For example, we have already learned how to use the Web Flash Joomla! 1.5 module. We can use this module as a banner. To do this, first create a Flash animated banner and configure the module to display this Flash object at a position called banner in your template.
You can always hardcode your Flash objects to a Joomla! template. In this case, Flash banners can also be displayed in a Joomla! site using the tags. However, you will have to edit the template file each time you change the banner.
Tickers are used for displaying small amounts of information on your site. You can either use text-based tickers or animated Flash tickers. The same principle applies when displaying animated Flash tickers. If you want to display an animated Flash ticker, design the ticker with appropriate text, images, sounds, and so on, and publish it on your site. Like others, you can display this either by embedding the ticker Flash object in the template, or by publishing it through a module. If you want to use a module for publishing tickers, use the Web Flash Joomla! 1.5 module or any other module that can display one or more animated Flash objects from a directory on your web server.
Although Flash can be used for designing the layout of a Joomla! site, it is often used as a header or a logo for the site's template. You can use Flash objects in different parts of the Joomla! template to display the Flash objects. In this article, we have learned two ways of showing Flash objects in a Joomla! site: by embedding the Flash object in a Joomla! template and showing it permanently on a Joomla! website; and by using a suitable module. First, we have seen how to embed Flash objects in Joomla! templates using the tag. Later, we have explored options for displaying Flash objects using the Joomla! modules such as FlexHeader3 and Web Flash Joomla!.
If you have read this article you may be interested to view :
|
|
More Information On the Books:Buy Joomla! with Flash with Papervision3D Essentials eBook and get 50% discount on both. Just enter clplysl1de in the 'Promotion Code' field and click 'Update' during checkout. The discount will be applied.
Grab your copy NOW!
Joomla! with Flash
This book shows how to integrate Flash into Joomla! You will learn how to add the various functionalities provided by Flash and make your site stunning, visually rich, and interactive. The book covers topics like flash headers, menus, displaying and maintaining flash movies, slide shows, animation, interactivity, and more. Installation and use of Joomla! modules like Flash, Joomla Random Flash, Active, and Handy SWF Flash module are covered too.
Papervision3D Essentials
The book will show you how to build Papervision3D applications from scratch in the easiest way, providing plenty of examples that make sense even if you're not a Flash expert. Papervision3D Essentials serves as a comprehensive guide to getting you started, as well as being an invaluable reference for every Papervision3D user and developer. By the end of this book you will be able to create your own projects with real-time 3D rendering.
Packt has come up with a special offer on one of its titles -Zen Cart: E-commerce Application Development
This easy-to-follow book will teach you how to install, configure, and customize a Zen Cart shop and use its promotion and public-relations tools to attract customers to the shop. It will also teach you to customize the look and feel of the Zen Cart shop by localizing and customizing templates. With this excellent tutorial, you will be able to extend and tweak the Zen Cart store.
Grab your copy NOW!
In this two-part article, we are going to use Flash for decorating our Joomla! site. On completion of this article you will be able to use:
- Flash-based templates for your Joomla! website
- Flash logos
- Flash headers
- Flash banners
In this article, we will mainly focus on the visual design of our site. To acquire the information presented here, it is assumed that you have some basic understanding of Joomla!'s visual design including templates, components, module position, and so on.
If you are familiar with Joomla! templates, then you will understand that there are two ways to display Flash in a template:
We have seen many modules that can display Flash objects. Therefore, in this section, we will be looking into the embedding of Flash objects within templates. It will also be helpful if we understand the structure of Joomla! templates.
Generally templates for Joomla! include headers in Flash. Flash animations are included in the header area of a Joomla! template. Some templates include the mechanism to show images from a specific directory. For example, the template shown in the following screenshot, available for download at http://joomlatp.com/joomla-1.5-templates/Templates-has-flash-header.html, is designed to show a Flash header comprised of the images kept in a directory:

The following sections briefly describe the structure of a Joomla! template and the ways to embed a Flash object in this template.
The look and feel of Joomla! is determined by templates. You can apply a template to the frontend as well as to the backend. Templates for the Joomla! frontend reside in the /templates directory of the Joomla! webroot, while those for the administration panel are found in the /administrator/templates directory. You can install multiple templates and apply one or more templates to the different sections. However, you must designate one default template for the site.
To designate a default template, go to Extensions | Template Manager. Select the desired template and click on the Default button on the toolbar. For assigning a template to a specific section of the site, click on a template, except the default template, and then select the section or the menu item for which you want to assign the template from the Menu Assignment section.
If you examine the directory structure of a Joomla! template, you will find at least the following subdirectories in the templates directory:
Joomla! with Flash
As you know, the main structure of a Joomla! template is defined in the index.php file. The file looks as follows: <?php This line of code is to prevent direct access to the file. This is a convention to prevent direct access to any file in Joomla!. After this, the following lines define some variables for the template that will be used later on in the template: define( 'YOURBASEPATH', dirname(__FILE__) ); Having defined the template variables, the template's structure starts with some common HTML declarations as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" Whatever is included after the following lines will be considered as included in the <head> section. Generally, stylesheets, JavaScript, and site-wide files are included in a template's <head> section with the following lines: <jdoc:include type="head" /> Next, the body section of the template starts: <body class="body_bg"> The following block checks whether any module for position user4 is enabled. If the count of enabled modules is greater than zero, then a <div>element with an ID search is displayed, and modules specified for position user4 are displayed as children of this <div> element: <?php if($this->countModules('user4')) : ?>
Having placed the modules for the position user4, the following block now defines where to show the site's logo. This block of code dynamically selects the site's logo and links that to the site's home page:
![]() </a> </div> <?php endif; ?> If we want to show a Flash header beside the logo, then we can add the following block to include a Flash object:
This code block first checks whether the variable for showing a Flash header is checked or not. If it is checked, then a <div> element will be created, under which the Flash object is embedded using the tags. The following code block is used to display the current date on the site:
The following block defines another module position. Modules designated for the user3 position will be displayed here. Note that modules are included with the <jdoc:include type="modules" name="position-name" /> markup: <?php if( $this->countModules('user3') ) {?>
The following code block displays another module called breadcrumbs. First, it checks whether the parameter is set to show breadcrumbs or not. If it is, then the breadcrumbs module will be displayed in the block:
Next comes the module for the left position: <div id="content"> The following block includes the modules designated for the right position: <?php if($this->countModules('right') and
The next code block counts the number of modules available for the user1 and user2 positions and then includes the modules designated for these two positions. Note the highlighted line of code in this code block. It shows the component currently selected:
Finally, here comes the footer section. The highlighted line in the following code block includes a footer file to show the footer text:
All this code in the index.php file when rendered with template_css.css and other stylesheets will display a layout like the one shown in the following screenshot:
In a Joomla! template, the site's data comes from the database and fits in different positions. When you are planning for Flash-based Joomla! templates, you should first identify where to put the Flash objects and where to display the dynamic data for the site. In the template layout, we have seen that a suitable place for adding a Flash object are the logo and the header positions. We can also use some extensions to display Flash headers. The following sections explain how to use extensions for showing Flash logos and headers. Using Flash logosYou can replace the ordinary image with Flash-animated logos by embedding it in that position. As we have seen earlier, Flash objects are embedded in Joomla! templates using the XHTML element. For styling purposes, you may put this element under a <div> element, as shown in the following code: <div id="logo"> As you can see, the tag can contain child elements. We pass parameters to the Flash objects using the <param> element. For example, we have passed the name of a movie file using the highlighted tag in the previous code. Some of you may already know about the SWFObject JavaScript library. It is used to embed Flash files using JavaScript. You can also use it to embed Flash objects in Joomla! and can also generate Flash objects. It is freely available at http://code.google.com/p/swfobject/. Brief documentation on its usage is also available there. |
Adding a map to your site may be a necessity in some cases. For example, you want to show the population of countries, or you want to show a world map to your students for teaching geography. Flash maps are always interesting as you can interact with them and can view them as you like. amMap provides tools for showing Flash maps. The amMap tool is ported as a Joomla! component by yOpensource, and the component is released with the name YOS amMap. This component has two versions—free and commercial. The commercial or pro version has some advanced features that are not available in the free version.
The YOS amMap component, together with its module, allows you to display a map of the world, a region, or a country. You can choose the map to be displayed, which areas or countries are to be highlighted, and the way in which the viewers can control the map. Generally, maps displayed through the YOS amMap component can be zoomed, centered, or scrolled to left, right, top, or bottom. You can also specify a color in which a region or a country should be displayed.
To use YOS amMap with your Joomla! website, you must first download it from http://yopensource.com/en/component/remository/?func=fileinfo&id=3. After downloading and extracting the compressed package, you get the component and module packages. Install the component and module from the Extensions | Install/Uninstall screen.
Once installed, you can administer the YOS amMap component from Components | YOS amMap. This shows the YOS amMap Control Panel, as shown in the following screenshot:

YOS amMap Control Panel displays several icons through which you can configure and publish maps. The first thing you should do is to configure the global settings for amMap. In order to do this, click on the Parameters icon in the toolbar. Doing so brings up the dialog box, as shown in the following screenshot:

In the Global Configuration section, you can enter a license key if you have purchased the commercial or the pro version of this component. For the free version, this is not needed. In this section, you can also configure the legal extensions of files that can be uploaded through this component, the maximum file size for uploads, the legal image extensions, and the allowed MIME types of all uploads. You can also specify whether the Flash uploader will be used or not. Once you have configured these fields, click on the Save button and return to YOS amMap Control Panel.
You can see the list of available maps by clicking on the Maps icon on the YOS amMap Control Panel screen or by clicking on Components | amMap | Maps. This shows the Maps Manager screen, as shown in the next screenshot.

As you can see, the Maps Manager screen displays the list of available maps. By default, you find the world.swf, continents.swf, and world_with_antartica.swf map files. You will find some extra maps with the amMap bundle. You can also download the original amMap package from http://www.ammap.com/download. After downloading the ZIP package, extract it, and you will find many maps in the maps subfolder. Any map from this folder can be uploaded to the Joomla! site from the Maps Manager screen.
There are several steps for creating a map using YOS amMap. First we need to upload the package for the map. For example, if we want to display the map of the United States of America, then we need to upload the map template, the map data file, and the map settings file for the United States of America. To do this first upload the map template from the Maps Manager screen. You will find the map template for USA in the ammap/maps folder. Then we need to upload the data and the settings files. For doing so, click on the Upload link on the YOS amMap Control Panel screen. Then, in the Upload amMap screen, which is shown in the next screenshot, type the map's title (United States) in the Title field. Before clicking on the Browse button besides the Package File field, you first add the ammap_data.xml and the ammap_settings.xml files to a single ZIP file, unitedstates.zip. Now, click on the Browse button, and select this unitedstates.zip file. Then click on the Upload File & Install button.

Once uploaded successfully, you see this map listed in the YOS amMap Manager screen, as shown in the next screenshot. You get this screen by clicking on the amMaps link on the toolbar.

As you can see, the map that we have added is now listed in the YOS amMap Manager screen. However, the map is yet in an unpublished state, and we need to configure the map before publishing it. We need to configure its data and settings files, which are discussed in the following sections.
The different regions of a map are identified by the map data file. This is an XML file and it defines the areas to be displayed on the map. The typical structure of a map data file can be understood by examining ammap_data.xml. The file has many comments that explain its structure. This file looks like as follows:
<?xml version="1.0" encoding="UTF-8"?>
<map map_file="maps/world.swf" tl_long="-168.49" tl_lat="83.63"
br_long="190.3" br_lat="-55.58" zoom_x="0%" zoom_y="0%" zoom="100%">
<areas>
<area title="AFGHANISTAN" mc_name="AF"></area>
<area title="ALAND ISLANDS" mc_name="AX"></area>
<area title="BANGLADESH" mc_name="BD"></area>
<area title="BHUTAN" mc_name="BT"></area>
<area title="CANADA" mc_name="CA"></area>
<area title="UNITED ARAB EMIRATES" mc_name="AE"></area>
<area title="UNITED KINGDOM" mc_name="GB"></area>
<area title="UNITED STATES" mc_name="US"></area>
<area title="borders" mc_name="borders" color="#FFFFFF"
balloon="false"></area>
</areas>
<movies>
<movie lat="51.3025" long="-0.0739" file="target" width="10"
height="10" color="#CC0000" fixed_size="true" title="build-in
movie usage example"></movie>
<movie x="59.6667%" y="77.5%" file="icons/pin.swf" title="loaded
movie usage example" text_box_width="250" text_box_height="140">
<description>
<![CDATA[You can add description text here. This text will
appear the user clicks on the movie. this description text can
be html-formatted (for a list which html tags are supported,
visit <u>
<a href="http://livedocs.adobe.com/flash/8/main/00001459.html">this
page</a></u>. You can add descriptions to areas and labels too.]]>
</description>
</movie>
</movies>
<labels>
<label x="0" y="50" width="100%" align="center" text_size="16"
color="#FFFFFF">
<text><![CDATA[<b>World Map]]></text>
<description><![CDATA[]]></description>
</label>
</labels>
<lines>
<line long="-0.0739, -74" lat="51.3025, 40.43" arrow="end"
width="1" alpha="40"></line>
</lines>
</map>
This code is a stripped-down version of the default ammap_data.xml file. Let us examine its structure and try to understand the meaning of each markup:
To view and edit the map data file, ammap_data.xml, click on the map name on the YOS amMap Manager screen. This opens-up the amMap: [Edit] screen, as shown in the following screenshot:

The amMap: [Edit] screen displays several configurations for the map. From the Details section you can change the map name, publish the map, and enable security. From the Design section you can view and edit the data and the settings files. Clicking on Data will show the data file. You can edit the data file from the online editor. As we want to display the map of USA, we will make the following changes on this screen:
<?xml version="1.0" encoding="UTF-8"?>
<map map_file="maps/usa.swf" zoom="100%" zoom_x="7.8%"
zoom_y="0.18%">
<areas>
<area mc_name="AL" title="Alabama"/>
<area mc_name="AK" title="Alaska"/>
<area mc_name="AZ" title="Arizona"/>
<area mc_name="AR" title="Arkansas"/>
<area mc_name="CA" title="California"/>
<area mc_name="CO" title="Colorado"/>
<area mc_name="CT" title="Connecticut"/>
<area mc_name="DE" title="Delaware"/>
<area mc_name="DC" title="District of Columbia"/>
<area mc_name="FL" title="Florida"/>
<area mc_name="GA" title="Georgia"/>
<area mc_name="HI" title="Hawaii"/>
<area mc_name="ID" title="Idaho"/>
<area mc_name="IL" title="Illinois"/>
<area mc_name="IN" title="Indiana"/>
<area mc_name="IA" title="Iowa"/>
<area mc_name="KS" title="Kansas"/>
<area mc_name="KY" title="Kentucky"/>
<area mc_name="LA" title="Louisiana"/>
<area mc_name="ME" title="Maine"/>
<area mc_name="MD" title="Maryland"/>
<area mc_name="MA" title="Massachusetts"/>
<area mc_name="MI" title="Michigan"/>
<area mc_name="MN" title="Minnesota"/>
<area mc_name="MS" title="Mississippi"/>
<area mc_name="MO" title="Missouri"/>
<area mc_name="MT" title="Montana"/>
<area mc_name="NE" title="Nebraska"/>
<area mc_name="NV" title="Nevada"/>
<area mc_name="NH" title="New Hampshire"/>
<area mc_name="NJ" title="New Jersey"/>
<area mc_name="NM" title="New Mexico"/>
<area mc_name="NY" title="New York"/>
<area mc_name="NC" title="North Carolina"/>
<area mc_name="ND" title="North Dakota"/>
<area mc_name="OH" title="Ohio"/>
<area mc_name="OK" title="Oklahoma"/>
<area mc_name="OR" title="Oregon"/>
<area mc_name="PA" title="Pennsylvania"/>
<area mc_name="RI" title="Rhode Island"/>
<area mc_name="SC" title="South Carolina"/>
<area mc_name="SD" title="South Dakota"/>
<area mc_name="TN" title="Tennessee"/>
<area mc_name="TX" title="Texas"/>
<area mc_name="UT" title="Utah"/>
<area mc_name="VT" title="Vermont"/>
<area mc_name="VA" title="Virginia"/>
<area mc_name="WA" title="Washington"/>
<area mc_name="WV" title="West Virginia"/>
<area mc_name="WI" title="Wisconsin"/>
<area mc_name="WY" title="Wyoming"/>
</areas>
<labels>
<label x="0" y="60" width="100%" color="#FFFFFF" text_size="18">
<text>Map of the United States of America</text>
</label>
</labels>
</map>
As you can see, we have defined regions (states) on the map of USA, and towards the end of the file, we have added a label for the map.
When you are done making these changes click on the Save button to save these changes. Now we will look into the map settings file.
Map data files for countries are available with the amMap package. Thus, if you download amMap 2.5.1, you will get the map settings files for different countries. For example, the map data file for USA will be in the amMap_2.5.1/examples/_countries/usa folder.
![]() |
|
The map settings file is another XML file through which the map's display and other settings are defined. You can view and edit this file in the same way as you have done for the map data file, ammap_data.xml. A map settings file is named as ammap_settings.xml, and like the ammap_data.xml file, it has lots of annotations to explain each setting. You can view as well as edit this file by clicking on the Settings section in the amMap: [Edit] screen, as shown in the following screenshot:

An annotation for each setting is provided on the right side. You can configure the settings by following the instructions in the annotations. Once the changes have been made to this file, click on the Save icon on the toolbar to save the changes and close the screen.
After configuring the map through the amMap: [Edit] screen and editing the map data file, ammap_data.xml and the map settings file, ammap_settings.xml, you can display the map on the frontend by publishing the amMap module.
If you have not installed the amMap module yet, then install it from the Extensions | Install/Uninstall screen. The module and the plugin installation packages are bundled with the YOS amMap package that you have already downloaded. Once installed, go to Extensions | Module Manager and click on the YOS amMap module. That shows the Module: [Edit] screen for the YOS amMap module, as shown in the following screenshot:

Like other modules you can use the Details section to provide a title for this module, publish the module, select the position where it should be displayed, set the access level, and establish the order of display. Similarly, from the Menu Assignment section, you can specify the menus for which the module will be displayed. The settings specific to this module are displayed in the Parameters section. First you need to type the amMap's ID, which is displayed in the list shown on the YOS amMap Manager screen. After typing the amMap's ID, select Yes in the Enable Plugin field if you want to show this map using a plugin.
The next few settings are for displaying the map in your desired format. You can assign a module suffix (for example, green), which can be used to manipulate the display through a CSS. In the Display-Type drop-down box, select either SWF-Object or Embedding Flash Object. SWF-Object is the default mode and it uses a wrapper for embedding Flash objects. Then you can specify the width and height of the Flash object in pixels. This needs to be in line with your module's position. You can also specify the version of Flash needed to display the map. The default value for this field is 8, which means that Flash Player version 8 will display the map properly, and users having a version lower than this will be prompted to upgrade to the required version of Flash Player. In the Background Color field you can specify the background color for the module.
The path to the amMap files can be specified in the Path field. The default value for this field is components/com_yos_ammap/ammap, which is fine as the files are installed in this directory. You can specify default data and settings files in the Data file and Setting file fields. The default values for these fields are components/com_yos_ammap/ammap/ammap_data.xml and components/com_yos_ammap/ammap/ammap_settings.xml respectively. The files specified in these two fields will work only when no ID number for amMap is specified in the amMap's ID field.
You can specify a preloader color, a loading text, and a settings loading text. These texts are displayed when the map's data and settings are being loaded.
When all these settings have been set and saved by clicking on the Save button on the toolbar, you can preview the map by clicking on the Preview button on the toolbar. The map should be displayed as shown in the following screenshot, in the frontend:

When you move your mouse pointer over the map area you will see that the states are highlighted displaying the state's name. You can zoom in or zoom out using the Zoom control shown on the left of the map. Note that an overview map is displayed at the bottom-right corner. Clicking the arrow below it will hide the overview map.
If you want to display multiple maps, then you can copy the YOS amMap module and configure each instance with a different amMap ID. To copy the module, in the Extensions | Module Manager screen, select the module and click on the Copy icon in the toolbar. Then, rename the copied module. Alternatively, you can use the new module wizard by clicking on the New icon on the toolbar. In this wizard, you have to select YOS amMap in the Module: [New] screen and then configure it with the same settings, as described above.
So far we have seen how to display a Flash map with the amMap module. You can also display the map in your Joomla! content, that is, articles. The YOS amMap component package comes with a plugin for displaying an amMap map into Joomla! articles. If you have installed the plugin already, then go to Extensions | Plugin Manager and click on Plugin - YOS Ammap. This displays the Plugin: [Edit] screen, shown in the following screenshot, for the YOS Ammap plugin:

Enable this plugin by selecting Yes in the Enabled field. Next, read the instructions given in the Description field. The instructions show how to use this plugin. From this text, you will notice that you can embed an amMap map in articles using the following syntax:
{yos_ammap mapid='3' width='500' height='400' flashv='8'
bgcolour='#000000' type='js' plugin='1'}
You may be familiar with most of these by now. First, we have to specify the mapid, and then its width, height, flash version, background color, type, and plugin. Use 1 in plugin if you want to show dynamic data in the map. Therefore, using this syntax, we can add the map of USA in an article. The text for the article may be as follows:
amMap is an interactive flash map creation software. Use this tool
to show locations of your offices, routes of your journeys, create
your distributor map. Photos or illustrations can be used instead
of maps, so you can make different presentations, e-learning tools and more.
YOS amMap is an Joomla extension which integrated almost amMap
features. With YOS amMap you can easily integrate maps which provided
by amMap to your Joomla site.
You can also include a map in Joomla! artilcle. Here is an example:
{yos_ammap mapid='3' width='600' height='500' falshv='8' plugin='1'}
The last line, inside {}, will show the map with the ID 3, which is the map of USA. When this article is published and viewed in the frontend, the article will look like the following screenshot:

As you see, the map of USA has been embedded in the article. The map behaves in the same way as it does inside the module. You can add multiple maps in an article using the same syntax. However, you must ensure that the map IDs are correct.
For more information on using the YOS amMap component, please visit http://yopensource.com/en/documentation/yos-ammap. You can also check www.ammap.com for more information on amMap and to download new map files.
In this article we have seen how to use YOS amMap and YOS amChart to create and display interactive Flash-based maps and charts.
![]() |
|
Joomla! with Flash
My new book, Joomla! with Flash coming next month. The book is announced at Packt's site today.
আপনার নিকট ফিডোরা লিনাক্স ডিভিডি থাকলে সেখান থেকে বিভিন্ন প্যাকেজ ইনস্টল করতে পারবেন yum এর সাহায্যে। এজন্য ডিভিডি ড্রাইভে ডিভিডি ঢুকিয়ে দিন। তারপর localinstall অপশনসহ yum কমান্ড চালান। ধরা যাক আপনি যে ডিভিডি প্রবেশ করিয়েছেন তা /media/Fedora লোকেশনে মাউন্ট হয়েছে। তাহলে সেই ডিভিডি থেকে কোনো প্যাকেজ ইনস্টল করার জন্য কমান্ড হবে নিচের মতো:
# yum localinstall /media/Fedora/Packages/aspell-it-*
Loaded plugins: refresh-packagekit
Setting up Local Package Process
Examining /media/Fedora/Packages/aspell-it-2.2_20050523-3.fc11.i586.rpm:
50:aspell-it-2.2_20050523-3.fc11.i586
Marking /media/Fedora/Packages/aspell-it-2.2_20050523-3.fc11.i586.rpm
to be installed
Resolving Dependencies
--> Running transaction check
---> Package aspell-it.i586 50:2.2_20050523-3.fc11 set to be updated
--> Processing Dependency: aspell >= 12:0.60 for package: aspell-it
--> Running transaction check
---> Package aspell.i586 12:0.60.6-5.fc11 set to be updated
--> Finished Dependency Resolution Dependencies Resolved ================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
aspell-it i586 50:2.2_20050523-3.fc11
/media/Fedora/Packages/aspell-it-2.2_20050523-3.fc11.i586.rpm
2.0 M
Installing for dependencies:
aspell i586 12:0.60.6-5.fc11 fedora 947 k Transaction Summary
================================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s) Total size: 3.0 M
Total download size: 947 k
Is this ok [y/N]: y
উপরের কমান্ডে আমরা aspell-it প্যাকেজ ইনস্টল করতে বলেছি। শেষে * চিহ্ন ব্যবহার করায় একাধিক প্যাকেজ ইনস্টল হতে পারে। একদম নির্দিষ্ট কোনো প্যাকেজ ইনস্টল করতে চাইলে সেই প্যাকেজের নাম হুবহু উল্লেখ করতে হবে। এজন্য আগেই ডিভিডি থেকে সেই প্যাকেজের নাম দেখে নেয়া ভাল।
এভাবে লোকাল ডিভিডি থেকে yum এর মাধ্যমে ইনস্টল করার সুবিধা হলো এর ফলে yum সেই প্যাকেজের নির্ভরশীলতা যাচাই করে দেখবে এবং প্রয়োজনমতো সেগুলো প্রথমে ডিভিডিতে ও পরে অন্যান্য রিপজিটরিতে খুঁজে দেখবে। প্রয়োজনমতো সুবিধাজনক রিপজিটরি থেকে সেই প্যাকেজ ডাউনলোড ও ইনস্টল করা হবে।