There are times you need to integrate a 3rd party script into Joomla, without having the modify any core files, while still able to remain within the Joomla framework. A good example is, say, an AJAX request that points to a specific external php file that isn't part of Joomla's MVC. You can do this easy with the following code (in the beginning of the 3rd party script):
define( '_JEXEC', 1 ); //This will define the _JEXEC constant that will allow you to access the rest of the Joomla framework $joomlaPath = dirname(__FILE__)."/../.."; //The only part you have to change. Make sure the relative part points to your Joomla root define('JPATH_BASE', $joomlaPath); require_once( JPATH_BASE.'/includes/defines.php' ); require_once( JPATH_BASE.'/includes/framework.php' ); // Instantiate the application. $app = JFactory::getApplication('site'); // Initialise the application. $app->initialise(); // Now you can use all classes of Joomla $db = JFactory::getDBO(); $doc = JFactory::getDocument();
So it's that time of the year again. To celebrate the holidays, we at SIMBunch is throwing a 30% discount for all our products. From now until 31st December, simply use the coupon code
SIMXMAS during checkout to enjoy your holiday savings!
For the benefit of our users, we've compiled a list of other holiday discounts from our Joomla Friends! (list to be updated, so check back often)
SIMGallery 4.2 has just been released with 2 new featues: It is now completely integrated with EasySocial (full details of the integration can be found in the product description), and albums commenting has been added. Give the demo a try!
We have added EasySocial to the list of SIMAnswers's integrations. This includes integrating with EasySocial's notifications, activities stream, user profiles, and points system. The SIMAnswers package also comes with an EasySocial app that displays your users' Q&A summary. We'll be adding EasySocial to our demo site soon, so stay tuned!
The most popular vanity URL extension for Joomla! social websites has added an important integration. ProfileURL now works with EasySocial profiles. This integration is 2-way: if you have the "permalink" field enabled for EasySocial, changes made to that field will be managed by and reflected in ProfileURL.