Friday, April 11, 2008

Joomla! customization of default pages, textual phrases, messages, instructions, breadcrumbs, etc.

Want to edit or customize the following default Joomla textual phrases, messages, instructions/instruction pages, errors, links, breadcrumbs, etc. (examples: who is online, We\’re sorry but the page you requested could not be found., The database adapter is not available, You are not authorised to view this resource, Incorrect username or password. Please try again, You cannot enter more than one e-mail address, Message subjects, contributed by/ last updated by/ written by, etc.) dynamically generated by default install of Joomla? Check out language/english.php where such text can be edited addordingly… just be careful with the php strings and copyrighted materials where they apply…

Below are the following pages/modules/extensions whose messages/errors that can be edited or customized accordingly for Joomla! 1.0.13 Stable:

// no direct access

// Site page note found

// common
/** mambots */

/** content */

/** classes/html/modules.php */

/** contact.php */

/** classes/html/contact.php */

/** pageNavigation */

/** emailfriend */

/** classes/html/content.php */

/** content.php */

/** poll.php */

/** classes/html/poll.php */

/** registration.php */

/** classes/html/registration.php */

/** classes/html/search.php */

/** templates/*.php */

/**
* Modify this line to reflect how you want the date to appear in your site
*e.g. DEFINE(”_DATE_FORMAT_LC”,”%A, %d %B %Y %H:%M”); //Uses PHP’s strftime Command Format
*/

/** classes/html/usermenu.php */

/** user.php */

/** components/com_user */

/** components/com_banners */

/** components/com_login */

/** components/com_weblinks */

/** components/com_newfeeds */

/** whos_online.php */

/** modules/mod_banners */

/** modules/mod_random_image */

/** modules/mod_stats.php */

/** /adminstrator/components/com_menus/admin.menus.html.php */

/** administrators/components/com_users */

/** administrators/components/com_massmail *//** includes/pdf.php */

For instance, there is that page in joomla that says “There is a Web Link already with that name, please try again.” everytime you double entry or conflicting item in the weblink manager. To add a few instructions or details to that line, you could add desired text therein. ;o) just a tip for those who had the same difficulty of searching for answers when one wants to customize Joomla and its default text and messages.

Important reminders:

1. html tags apply within the ‘text phrase’ only, be carely not to mess around with the rest of the php strings (safe practice is to make a backup copy of english.php)

2. with Joomla! 1.0.13 Stable version, there is no way you could add header items to english.php it will result into errors like:

Warning: Cannot modify header information - headers already sent by (output started at /home/jerome/public_html/site/language/english.php:1) in /home/jerome/public_html/site/index.php on line 238… /home/jerome/public_html/site/index.php on line 239…
/home/jerome/public_html/site/index.php
on line 240…
/home/jerome/public_html/site/index.php
on line 241… /home/jerome/public_html/site/index.php on line 242…

Hope this helps

-end-

No comments: