Joomla!

How to modify the appearance of the Category List page without having modifications done to the Joomla! Core Code

H

Since Joomla! 1.5 this feature has been made available. Answer: STEP 1 Via FTP copy the following file (default_items.php ) from your Joomla! 1.5 installation files to your local machine. Path to default_items.php  ROOT_PATH/components/com_content/views/category/tmpl/default_items.php NOTE: For FTP use your favorite FTP client eg. FileZilla STEP 2 Open the file and edit it as you want...

How to add a favicon to your Joomla! 1.5 site

H

What is a favicon? A favicon is a small 16px X 16px square image with the .icoextension that appears on the left side of the URL in the addressbar and on the browsers tabs. Answer: Follow these steps in order to successfully create a favicon for you’re Joomla! site. STEP 1 Create a square pixel image with height 16px and width 16px using a graphic tool like Gimp or Photoshop. Save the image...

Warning: Invalid argument supplied for foreach() in /components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php on line 240

W

I get the following error  “Warning: Invalid argument supplied for foreach() in /components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php on line 240” when trying to edit my Community Builder profile. How can I solved this? NOTE: Received this error using Joomla! 1.5.10 together with Community Builder 1.1   Answer: Locate the following file in the root directory of...

How to link one content item to another using Joomla! 1.5

H

Open the Joomla! Administrator backend section Click on Content->Article Manager Create a new Article Type anything in the article and click on apply not save Highlight a selection of text or images and click on the link button A dialog box will appear, within the Link URL textfield type in the following index.php?option=com_content&view=article&id= Type the article ID at the end of...

Getting error “File type not supported” when trying to upload a file in Joomla! via Media Manager

G

Joomla! 1.0 In order to apply this solution, you need to have modifying access to your Joomla! 1.0 core files Locate the following file within your Joomla! installation and open it in a text editor. FILE: /administrator/components/com_media/admin.media.php Round about lines 170 and 200 you’ll find something like:   'bmp', 'csv', 'doc', 'epg', 'gif', 'ico', 'jpg', 'odg', 'odp', 'ods', 'odt'...

How to remove the sitename text/link from your Joomla! 1.5 template, so that it does not display

H

This text usually appears in the header of your webpage. NOTE: Before applying any changes, always remember to take a backup of the previous state. Answer: Click on Extensions->Template Manager The Template Manager page will now open, click on the name of the relevant template “The template that is selected for your site“ Click on the Edit Html button Search and Remove for the...

Getting JavaScript errors or no response with Virtue Mart when clicking on Add, Apply or Cancel button

G

The error is similar to the below and it has to do with the readfile php function. Error: invalid regular expression flag v Source File: [0]=/themes/default&file[0]=theme.js&subdir[1]=/js&file[1]=functions.js&subdir[2]=/js/admin_menu/js&file[2]=virtuemart_menu.js&subdir[3]=/js/admin_menu/js&file[3]=nifty.js&subdir[4]=/js/admin_menu/js&file[4]=fat...

How to add a CSS styled tooltip to your Joomla! 1.5 website

H

In your code add the following code to activate the tooltip behavior JHTML::_('behavior.tooltip'); This only needs to be added once per file. A good place to put it is just underneath the defined(‘_JEXEC’) or die(‘Restricted access’); at the top of the page. The tooltip behavior will put the following code automatically in the head section of your HTML page <script...

Getting JavaScript error el.set is not a function Line: 23 in Joomla!

G

I’ve noticed this error when I installed VirtueMart and in the checkout process where it asks if you are a returning visitor or new user I noticed that the radio buttons did not work. This error occurs since Joomla! uses mootools and I used JQuery in my template. Thus causing the two to conflict since both mootools and JQuery make use of the $-function. Please check the answer to see how...

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

H

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 = &...

How to use sessions in Joomla! 1.5 using the Joomla! API

H

This can be obtained using the JFactory/getSession object Instantiate the getSession object $session =& JFactory::getSession(); There are a couple of parameters that you can pass with this object. They are name – The session name id – Unique ID of the session expire – Expiry date and time security – Comma separated security options, have a look at JSession Now we set...

Ext not defined VirtueMart

E

I’ve installed VirtueMart on one of my websites, when I opened the VirtueMart Control Panel in my Joomla! Administration Panel I noticed that when the view is set to Simple Layout all the tabs “Accordion Menu” are extended and I get the following JavaScript error: Ext not defined and most functionality that includes JavaScript is disabled. When I click on Extended Layout the...

Getting error Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /libraries/joomla/cache/handler/callback.php on line 99

G

This error happens because the version of Joomla! you are running is not compatible with PHP 5.3.0 . You could get this error for the reason being that your host upgraded to PHP 5.3.0 A quick solution will be is to open the file modules/mod_mainmenu/helper.php in your root folder and change the following line from function buildXML(&$params) to function buildXML($params) at the top of helper...

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me