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
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...
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
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
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"> </td>
Now the link ‘Ask a question about this product’ will disappear
Getting ‘The form could not be submitted’ in AcyMailing 1.8.4 Module when trying to subscribe to Newsletter
Make sure the acymailing_module.js is present within the /media/com_acymailing/js/ directory
<script type="text/javascript" src="/media/com_acymailing/js/acymailing_module.js"></script>
This file can be optained within the com_acymailing zip file within /media/js simply copy it from there to /media/com_acymailing/js/
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.
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
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;
PDF button opening HTML page in popup when AceSEF has been enabled
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
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
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` ...
How to get the parent menu id from the active menu id with the Joomla! 1.6 API
This can be done using the getActive() method from the JMenu class with the Application subpackage. Read More here
Anywhere in your Joomla! code use the following codeline to get the parent IDfor the active id.
$parentID = JSite::getMenu()->getActive()->tree[0];
“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...
How to remove the Virtuemart icon in the Cart
Open the file components/com_virtuemart/themes/default/templates/common/minicart.tpl.php
Comment out or remove lines 7-9
<a href="" target="_blank">
<img src="<?php echo $mm_action_url ?>components/com_virtuemart/shop_image/ps_image/menu_logo.gif" alt="VirtueMart" width="80" border="0" /></a>
<br />
Getting errors when running Joomla! 1.7 and 1.6 in XAMPP on Localhost
The error messages that I get are all Strict Standards: Accessing static property JCache::$_handler as non static which is causing an annoying working experience with Joomla! Answer: Locate your php.ini file in c:\xampp\php\php.ini Locate error_reporting = and change the value to error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED Locate locate display_errors = On and change the value...
Removing the Add To Cart text in VirtueMart
Locate the following file /administrator/components/com_virtuemart/languages/common/english.php
And replace
'PHPSHOP_CART_ADD_TO' => 'Add to Cart',
with
'PHPSHOP_CART_ADD_TO' => '',
And the text will disappear.
this.parentNode.elements is undefined when updating Quantities in Virtuemart
To solve this problem open the following file components/com_virtuemart/js/themes/default/templates/product_details/includes/quantity_box_general.tpl.php and in line 46 and 47 remove this code <input type="button" class="quantity_box_button quantity_box_button_up" onclick="var qty_el = this.parentNode.elements[\'quantity[]\']; var qty = qty_el.value; if( !isNaN( qty )) qty_el.value++;return...
Infinite loop detected in JError, how to solve
Recently I moved my Joomla! 1.7 website from one server to another, then I received this error Infinite loop detected in JError
The solution to this was that my Database details were incorrect in the configuration.php file, after correcting it the site was up and running again