Custom Ajax file in Joomla

    define('_JEXEC', 1);
    define('JPATH_BASE', realpath(dirname(__FILE__) . '/../../'));  
    require_once JPATH_BASE . '/includes/defines.php';
    require_once JPATH_BASE . '/includes/framework.php';

    $mainframe = JFactory::getApplication('site');
$db = JFactory::getDBO();
 $query = "SELECT distinct `customfield_value` FROM `jos_virtuemart_product_customfields` WHERE `virtuemart_custom_id` = '17'";
 //echo $query;
 $result = $db->loadObjectList();
 echo '<pre>';
 echo '</pre>';
Read More
Joomla, PHP

Upgraded to Joomla 3.7 And Component Menu Items Disapeared

Steps to reproduce the issue

Upgraded manually to Joomla 3.7
Discovered upgrades and updated database
Cleared cache and made all Joomla components active
Was replicated on three different joomla upgrade websites

Expected result

Admin menu for components should not have changed

Actual result

Components menu made certain items like contacts and joomla upgrade disappear. Inconsistent menu items disappeared across the three websites – If I manually go to the url of the missing components, they still work, but they’re just gone in the admin menu.

Was that solved in 3.7.3? I just upgraded multiple sites (25 in total) from 3.7.2 to 3.7.3 and found out that some entries in the menu where missing...
Read More
Joomla, PHP

Adding Google Adsense ads to Joomla 3.x

Advertising on your site using Google Adsense is a simple way to earn money from your site visitors. This tutorial will describe how to place a Google Adsense ad on your Joomla! 3.1 site.

You will need the following:

  • The location on your site where you will be placing your ad. This depends entirely on how you want the ad to look (tall and skinny, short and wide, a box, etc.) and where the template you are using for your content pages has room.
  • A Google Adsense account ( In this account you should have created an ad of the size you want. I have several ads I use, the one I’m using in this tutorial is 120 pixels wide by 620 high.

In this example, the template I am using (Pixeldot fromĀ has a position labeled as “right” on the template...

Read More
Joomla, PHP