Web Development

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

How to add a new module position in a Joomla! 1.5 template

H

Open your template file where you would like to place the module position  Add the following code to the template file <?php if ($this->countModules('customPosition')) : ?> <div id="customPosition" > <jdoc:include type="modules" name="customPosition" style="xhtml" /> </div> <?php endif; ?> NOTE: customPosition is the name/identifier for the new module position Now...

Deprecated: Assigning the return value of new by reference is deprecated in components/com_fireboard/template/default/view.php

D

I get the error Deprecated: Assigning the return value of new by reference is deprecated in components/com_fireboard/template/default/view.php on line 509 and Deprecated: Assigning the return value of new by reference is deprecated in components/com_fireboard/template/default/view.php on line 1037 after I’ve upgraded to PHP 5.3 within my Fireboard Joomla! component when viewing a forum...

PDF button opening HTML page in popup when AceSEF has been enabled

P

When I installed the AceSEF component, and enabled it all of a sudden the PDF linksdid not work anymore, it opens a new window but instead of displaying the PDF version it displays the HTML version of the page, when I disabled the AceSEF component it works again. Luckily I managed to solve this problem. Please see the Answer Open the AceSEF configuration page and click on the URLs tab. Under...

How to change your favicon in Joomla! 1.6

H

Create you 16px in width and 16px in height .ico file using Gimp or any other image editing software Name the .ico file favicon.ico Copy your newly create favicon to the template directory of your Joomla! 1.6template where you would want the favicon to change via FTP or any other File Managing Application Refresh your Joomla! 1.6 webpage and you will see that the favicon has changed to...

Allowing visitors to only submit a form once using Chronoforms 3

A

Click on the form name under the Forms Management tab and ensure that Data storage is enabled Next click on the Validation Tab Scroll down to the Server Side Validation and set Enable Server Side Validationto yes In the text area Server Side Validation Code add the following code <?php   $db =& JFactory::getDBO();   $query = "     SELECT count(*)       FROM `jos_chronoforms_table`      ...

“Cannot delete last style of template” when trying to delete a template in Joomla! 1.6

&

To remove a template you will have to click on Extensions and then Extention Manager Click on the Manage tab Search for your template “Filter by Type and select Template to make things easier“ Check the checkbox next to your Template and click on the Uninstall button at the top right corner The Template will now uninstall NOTE: If it says that the template has been uninstalled and you...

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