Book Image

Learning Joomla! 1.5 Extension Development

Book Image

Learning Joomla! 1.5 Extension Development

Overview of this book

Table of Contents (17 chapters)
Learning Joomla! 1.5 Extension Development
Credits
About the Author
About the Reviewer
Preface

Extra installation scripts


When installing a component, Joomla! displays a standard success message along with the description found in the XML file. A generic uninstallation message is also generated upon removal. We can override both of these with custom code. Create a new file named install.restaurants.php in the /administrator/components/com_restaurants folder, and enter the following code into this new file:

<?php
defined( ‘_JEXEC' ) or die( ‘Restricted access' );
function com_install()
{
?>
<div class="header">Congratulations, Restaurant Reviews is ready to roll!</div>
<p>
Congratulations on not only purchasing, but also installing, Restaurant Reviews! Undoubtedly, you are about to embark on many joyous hours of authoring and organizing all of the hot spots for your city. To get started, navigate to Components, Restaurant Reviews, Manage Reviews and click the “New" button at the right-hand corner of the screen. Also, be sure to install the accompanying plugins...