Book Image

Joomla! 1.5 Cookbook

By : Tom Canavan
Book Image

Joomla! 1.5 Cookbook

By: Tom Canavan

Overview of this book

If you are a Joomla! site owner, you must already be aware of how this robust, easy to use, open source content management system can help you build a great looking site instantly. You must also be aware of the many problems that it can throw up from time to time. Find the solutions to all your basic and advanced Joomla! queries, so you don't have to wait for someone on the forums to help you out every time.The Joomla! 1.5 Cookbook will provide you with quick and direct solutions to the most common and uncommon problems faced by you, the Joomla! site owner, sidestepping all the theoretical fuss.Joomla! is the insanely popular, award winning content management system which helps you build professional looking websites, even if you don't have any HTML programming experience or design skills.Although, sometimes you might trip over some common pitfalls which would slow the progress of your website down. This book will help you find a direct and quick way through these common problems which can be easily avoided with a few tips and tricks. It starts of with solutions the most common queries that you might face during the installation and setup for Joomla! 1.5 moving on swiftly to guide you through Joomla! templates, modules, security, managing your users and much more. So the next time when things go wrong with your Joomla! site and you are wondering, for example, how to work with your site's database; just pick up this book and quickly find your way through this.
Table of Contents (18 chapters)
Joomla! 1.5 Cookbook
Credits
About the Author
About the Reviewer
Preface
Index

Preface

If you are a Joomla! site owner, you must already be aware of how this robust, easy to use, open source content management system can help you build a great looking site instantly. You must also be aware of the many problems that it can throw up from time to time. Find the solutions to all your basic and advanced Joomla! queries, so you don't have to wait for someone on the forums to help you out every time.

The Joomla! 1.5 Cookbook will provide you with quick and direct solutions to the most common and uncommon problems faced by you, the Joomla! site owner, sidestepping all the theoretical fuss.

Joomla! is the insanely popular, award winning content management system which helps you build professional looking websites, even if you don't have any HTML programming experience or design skills.

Normally, sometimes you might trip over some common pitfalls which would slow the progress of your website down. This book will help you find a direct and quick way through common problems which can be easily avoided with a few tips and tricks. It starts off with solutions to the most common queries that you might face during the installation and set up for Joomla! 1.5, then moving on swiftly to guide you through Joomla! templates, modules, security, managing your users, and much more. So the next time things go wrong with your Joomla! site and you are wondering, for example, how to work with your site's database; just pick up this book and quickly find your way through.

Find the easiest solutions to many pitfalls that might fall in the way of your Joomla! site.

What this book covers

Chapter 1, Installing Joomla!: This chapter covers the important process of installation. In this chapter, you will learn how to install and use the FTP program FileZilla. Using this you will then learn how to transfer Joomla! up to your server and ensure permissions are correct. There are several different hosting platforms you can choose, but many of them run an application known as cPanel®. Another hosting platform is from the company GoDaddy.com®. You will learn how to use both of these popular systems to install your database and configure it. The last item is a cheat sheet for you to record all the particulars for your host.

Chapter 2, Working with phpMyAdmin: As you learn in Chapter 1, Joomla! is a database-driven system that renders the content on the screen from database queries. In this chapter, you will learn how to export (backup) and import (restore) a database. The database is comprised of "rows" and "tables", working with those you can get fine-grained control over your systems. Lastly, you'll learn how to remove a database table or simply empty out the data.

Chapter 3, Templates: Joomla! has a special extension known as a Template. The Template is what gives the the look to the external part of your book. Using a template requires that be installated. In this chapter you will learn how to install and assign a template as your default one. Of course, templates, like the rest of Joomla!, have a bit of management that goes on and ensuring you know that will give you a sharp-looking site.

The back-end of Joomla! has a template too, known as the administrator template. This template can be replaced with any number of third-party templates available for this purpose. You will learn how to install and assign that one as well.

There are times when you want to use more than one template; this will be covered along with learning how to change a logo (graphics) in a template. Finally, templates use a 'module' position to determine where to show content. You'll wrap up this chapter with knowing how to determine a template's MODULE positions.

Chapter 4, Editing Content and Menus: Joomla! is a Content Management System, and thus has a host of things such as an editor, sections for content, and putting content into categories. You will learn in this chapter how to install an editor, set up, and define the sections and categories that match your needs. Creating an article is the heart of Joomla! - that is - providing something for your visitors to read or interact with. We cover this as well as setting up menus to display the content.

You may want to use Joomla! for a blog site. Joomla! is perfect for this and we wrap this chapter up with instructions on setting up a blog site on Joomla! and learning how to add an extension menu.

Chapter 5, Managing Links, Users and Media: With your Joomla! site you will likely be managing users. This chapter covers all the administrative detail such as adding, deleting, and suspending users. It covers how to take your users and assign them into Groups. You can change or edit the login for your users to match your business requirements.

You're likely to have a need for your clients to reach out to you. Publishing your e-mail is unsafe due to spammers gathering it. Joomla! has provided a means to create a contact using specific users. You'll go through the steps to set up and configure this user.

Adding in links to your site from external sources gives you a great source of extra content. This process is known as using Web Link manager.

Finally, should you ever find yourself having lost your admin password or been locked out of your administrator console, you'll need to manually reset the password for your database. We wrap up this chapter with a simple and quick means to do so.

Chapter 6, Managing Modules and Components: Joomla! can be extended via the use of "Extensions". These extensions fall into three categories: Components, Modules, and Plugins. This chapter covers the installation and management of components and modules. Additionally, you will learn how to create the necessary menu items to drive these applications.

Occasionally, you will need to enable, disable, or uninstall an extension. This step is simple and is covered in a brief recipe.

Lastly you will learn how to change the menu order of components.

Chapter 7, Managing Articles Using the K2 Content Construction Kit: K2 is a wonderful content creation kit from Joomlaworks.gr. K2 gives you the ability to manage content in an extremely powerful way. In this recipe, you'll learn how to install and configure K2. Using a short cut known as a 'master category', you can templatize your settings in K2 and greatly ease your administration time.

K2 offers some great extras such as connections for YouTube and PhotoGalleries as well.

If you add K2 to an existing Joomla! site, you don't have to recreate all the articles. K2 offers an import feature and you'll become very familiar with it here.

Like Joomla!, K2 also offers categories, except that it removes the concept of Sections. What that opens up is Categories, within Categories, within Categories. This is known as Nested Categories. This recipe will show you how to set up and configure your categories for maximum use.

Tag Clouds are a popular means to display descriptions about your content and help with your Search Engine Efforts. You'll learn how to use this powerful tag cloud system.

The final two recipes cover configuration and moderation of comments in K2 as well as some tips and tricks to enhance your K2 experience.

Chapter 8, Installing Third-party Extensions: In this recipe, you'll be introduced to a few popular third-party extensions. The extensions are: eXtplorer, the Content Upload extension, JomCalendar, and CompoJoom comment system for Joomla! Each of these adds a unique level of functionality that rounds out your site.

Chapter 9, Troubleshooting: You will run into trouble from time to time with your Joomla! site or server. This chapter helps you with establishing a good and well-known troubleshooting process and offers some assistance on specific problems such as connecting to your database.

Chapter 10, Securing your Joomla! Site: Security is one task you should spend an appropriate amount of time and not skip. This set of recipes will assist you through the proper setting of permissions - a common trouble spot. You will learn how to patch, or in other words update your code. Apache web server provides a special setting file called .htaccess that allows you change and configure many important parts of your site. You'll learn how to use .htaccess to protect your site.

From time to time you may have a directory that you wish to keep private, free from prying eyes. In the recipe, Preventing Unauthorized Directory Viewing, you'll learn how to stop access to unauthorized persons.

Hackers love sites that give lots of error information, this helps them learn what your site is running and potentially gives them a clue on breaking in. You'll build a universal error page that gives the information on errors to your visitors that prevents hackers from learning too much.

Rounding out the security chapter, you'll discover how to disable your servers "banner", (a means to divulge important) information, block IP's and evil bots as well as adding protection for PHP, the language Joomla! is written in.

Chapter 11, Joomla! 1.6: Joomla 1.6 is the newest (and at this time, still beta) version of Joomla!. This is essentially a new version from the ground up. There are many new and powerful features in 1.6, such as the Access Control Level system or ACL. You'll spend time learning how to set up and configure this as well as establishing certain ways to restrict content.

Users and groups have changed a bit in 1.6 from the previous version and getting familiar with them will help you adopt v1.6.

The next two recipes are on learning to control access on a per article basis and using the new category manager. Lastly, there have been a great number of improvements in the extension manager and you'll discover those in the final recipe of this chapter.

What you need for this book

You will need your desktop or notebook computer with an Internet Browser. You'll need to have or obtain a FTP client program, such as FileZilla. It will be beneficial to download the application known as NotePad+. This is a Windows application that replaces the normal notepad application.

The other technologies used in this book include the Linux operating system, MySQL database, PHP, and the Apache Web Server. You will only need a web hosting account with those installed on this.

The final piece is the most recent version of the Joomla! 1.5.xx family and optionally the latest version of Joomla 1.6!.

Who this book is for

If you are a Joomla! site owner and have some problems that you want to get rid of quickly; or you just want to get particular things working or improved, this is the book for you. HTML, CSS, or programming knowledge is not required.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "If you see this on your particular setup be sure and upload the files into the folder called public_html."

A block of code is set as follows:

SetEnvIfNoCase User-Agent "^libwww-perl*" block_bad_bots
Deny from env=block_bad_bots
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^Bot\

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Click the New Site button".

Note

Warnings or important notes appear in a box like this.

Note

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or e-mail .

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Tip

Downloading the example code for this book

You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.