How to check if your on the Home Page that does not use the Front Page layout in Joomla! 1.5 using PHP

Use the code below on any page in your Joomla! application, the code may be changed or modified according to your needs. $menu = &JSite::getMenu(); if (JRequest::getInt('Itemid') == $menu->getDefault()): echo "I'm on the Home Page"; else: echo "I'm not on the Home Page"; endif;

March 30, 2018 · 1 min · 44 words · icarnaghan

How to check if your on the Home page using Joomla! 1.5 using PHP

Anywhere in your code place the following code if(JRequest::getVar('view') == "frontpage" ) : echo "I'm on the Front Page"; else : echo "Not on the Front Page"; endif; The above code may be modified according to your needs

March 30, 2018 · 1 min · 38 words · icarnaghan

How to get the Base URL using the Joomla! 1.5 API

Within the PHP code type in the following command echo JURI::base(); This is a static method that returns the base URI of your Joomla site. To read more about it click here

March 30, 2018 · 1 min · 32 words · icarnaghan

How to get the current active menu name using the Joomla! 1.5 api

By typing the code below within the appropriate place the active menu item name will be echoed to the browser <?php echo JSite::getMenu()->getActive()->name; ?> To read more about the JSite class click here

March 30, 2018 · 1 min · 33 words · icarnaghan

How to include a Joomla! 1.5 Module by hard coding it

Import/Include the module helper jimport('joomla.application.module.helper'); Call the getModule method and reference it to the $module variable $module = & JModuleHelper::getModule('mod_search'); Display it in the browser echo JModuleHelper::renderModule($module); Your code will look like this jimport('joomla.application.module.helper'); $module = & JModuleHelper::getModule('mod_search'); echo JModuleHelper::renderModule($module);

March 30, 2018 · 1 min · 40 words · icarnaghan

How to install new languages for Highlight code with Jumi on Joomla! 1.5

Locate the root directory of your Joomla! installation via FTP or any other method Download the latest language pack from http://sourceforge.net/projects/geshi/files/ Unzip the file Open the folder where the extracted files are located Choose the language PHP file that you wish to install and copy it over to the_libraries/geshi/geshi_ directory

March 30, 2018 · 1 min · 50 words · icarnaghan

How to permanently display a module inside a Component in Joomla!

In the template or any other place in the Joomla! Components code where you wish to display the module permanently place the following PHP code jimport('joomla.application.module.helper'); //Importing the Module helper $module = & JModuleHelper::getModule('mod_name'); echo JModuleHelper::renderModule($module); //rendering the module Replace mod_name with your module’s name

March 30, 2018 · 1 min · 45 words · icarnaghan

How to prevent sending welcoming letters/emails to newly registered users in Community Builder

To disable the sending of the welcoming email clear/blank the Welcome/Pending email messages that are defined in the CB Configuration Manager under the Registration tab. (Components->Community Builder->Configuration->Registration)

March 30, 2018 · 1 min · 27 words · icarnaghan

How to remove the link 'Ask a question about this product' in VirtueMart 1.1.8

Opencomponents/com_virtuemart/themes/default/templates/product_details/flypage.tpl.phpfor editing On line 43 replace <td colspan="2"><?php echo $ask_seller ?></td> with <td colspan="2">&nbsp;</td> Now the link ‘Ask a question about this product’ will disappear

March 30, 2018 · 1 min · 25 words · icarnaghan

How to remove the More Articles links on the Front Page in Joomla! 1.5

Go to Menu and then Main Menu Select the Default Menu item “To identify the default menu item you will see a star in the Default column” Under the Basic Parameter options place a 0 next to # Links and click on save, refresh the Home Page and the More Article Links will disappear.

March 30, 2018 · 1 min · 54 words · icarnaghan