Book Image

Joomla! with Flash

Book Image

Joomla! with Flash

Overview of this book

You can build any kind of web site using Joomla! The look and feel of Joomla! web sites can largely be customized using the many templates, components, modules and plug-ins available. With all these features, ease of administration, and options for customization, sometimes you may think of integrating other technologies such as Flash with it. This is because Flash provides great animation features that are otherwise not available in Joomla! 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. The book introduces Joomla! and Flash and briefly shows the benefits of using Flash in Joomla!. It shows you how to add Flash objects in Joomla! articles and modules, build Flash-based menus, create Flash-based photo galleries, interactive maps, and charts. It also shows you how to display content in custom fonts, create a streaming media site, customize the Joomla! template to display Flash logos, headers and banners, and use Joomla! content in Flash objects. Finally the book covers troubleshooting Joomla! and its extensions. At the end of the book an appendix lists resources on Joomla!, Flash, and related extensions, to help you find more information.
Table of Contents (15 chapters)
Joomla! with Flash
Credits
About the Author
Acknowledgement
About the Reviewers
Preface

Setting up the development environment


It is always good to set up a development environment and test an application before publishing it on the production web server. For the purpose of this book, we will also set up the development environment with a web server and Joomla!.

Web server

You can use any web server that supports PHP. For the purpose of this book, we will use the most popular web server — Apache, version 1.3 or version 2. If you are using Linux as an operating system, then you may get the Apache server bundled with the Linux OS. However, you are always free to download the latest version of Apache from its website at http://httpd.apache.org/. The Apache web server is available for both Linux and Windows operating systems, and you can download the appropriate version for your own operating system.

Database server

In order to use Joomla! we need to set up a relational database system. We will be using MySQL as the database system. Like Apache, MySQL is also available for free to download for Linux, for Windows, and for other platforms as well. You can download it from http://www.mysql.com/.

PHP

To run Joomla! we need a web server capable of running PHP scripts. We can easily download the PHP bundle, install it, and configure the Apache web server for PHP. Joomla! will run on both PHP4 and PHP5, but to take advantage of the advanced Joomla! features and PHP5's rich features, we will use PHP5. You can download PHP5 from the website http://www.php.net. Like Apache and MySQL, PHP is also available for Linux, Windows, and other platforms.

For the development server, users with less technical skills may find it daunting to set up the web server, database server, and to configure PHP and its libraries. Administration of these services also becomes complex. To ease the task of setting up a development environment with Apache, MySQL, and PHP, there are several packaged software applications, such as WampServer, PHPTriad, EasyPHP, and so on that include all the three services and can be installed in one shot. For our development environment, we will use WampServer for Windows.

The latest version of the WampServer package contains Apache2.2.x, MySQL 5.1.x, and PHP 5.2.x. To setup the development environment for using Joomla! with Flash, follow these steps:

  1. 1. Get the WAMP Server: The WAMP Server provides you with Apache, MySQL, and PHP. Point your browser to www.wampserver.com, and download the latest version of the WAMP Server.

  2. 2. Install the WAMP Server: Once the WAMP Server is downloaded to your computer, double-click on the installation file. By default, it will be installed at C:\wamp. Under that, there will be a directory www that is known as the web directory. This means that whatever web application you want to run should be put inside this folder (in our case it is c:\wamp\www).

  3. 3. Run the WAMP Server: You can configure your WAMP Sever to run when Windows starts. Alternatively, you can run it as and when needed. You can start the WAMP Server from Start | All Programs | WampServer | start WampServer. When the WAMP Server is started, you will see the WampServer icon in the system tray. Click on that icon, and you get the WampServer menu, as shown in the next screenshot:

    For starting all the services (Apache, MySQL, and PHP), click on .Start All Services. For configuring PHP, go to .PHP. You can create databases with .phpMyAdmin.

    To see the default page in the web root, click on .Localhost or type http://localhost/ in your browser's address bar. It will display a page like the one shown in the next screenshot:

Once you get the web server with MySQL and PHP running, you can proceed with installing Joomla! on that web server as follows:

  1. 1. Get theJoomla installation package: Now it is your turn to get the Joomla! installation package, through which you will install Joomla! on your local computer. Open your browser and type www.joomla.org in the address bar. You will see the Joomla! home page. On the right side, there is a download link for the latest release. Click on this link to download the latest release of Joomla!. It comes as .zip or .tgz archive.

  2. 2. Create the database for Joomla!: Before starting the Joomla! installation, you need to create a MySQL database on the localhost. Open your browser and point it to http://localhost/phpmyadmin. In the phpMyAdmin screen, enter the name of the database and create it. Remember the name of the database as the Joomla! installation wizard will ask for it later.

  3. 3. Install Joomla! on your local computer: Once you have downloaded the installation package for Joomla!, unpack the Joomla! installation files to your web root directory (for example c:\wamp\www\dreamschool), and then point your browser to http://localhost/dreamschool/. That starts the Joomla! installation wizard. Follow the wizard, and complete the Joomla! installation.

Note

To learn more about Joomla! installation, administration, and building a site using Joomla!, please read "Building Websites with Joomla! 1.5", Hagen Graf, Packt Publishing.

Example website

While learning the techniques of using Flash in the Joomla! Content Management System, we will be building a Joomla!-based site to demonstrate Flash functionalities. To illustrate the example, we will build a fictitious school website — DreamSchool — that will include interactive material for learners, video tutorials, animations, and other stuff necessary for learning.

The example site will start with a basic installation of the latest version of Joomla!, and we will gradually make it stunning using Flash templates, headers, banners, content, videos, animation, charts, graphs, maps, and so on.