[How to] Migrate code from Joomla 1.0 to Joomla 1.5

Migrating Joomla 1.0 to Joomla 1.5

One of the tasks DART Creations has been doing lately is to migrate modules / plugins and other software from Joomla 1.0 to Joomla 1.5. Here you will find a number of changes which are required to migrate Joomla software from 1.0 to 1.5. Hopefully this will save others some searching and frustration.

One of the things that has changes is in the name of global variables. The following are a few changes

Joomla 1.0.xJoomla! 1.5Example
$mosConfig_absolute_path JPATH_ROOT C:\xampp\htdocs\joomla15
$mosConfig_live_site JURI::root(); http://localhost/joomla15
  JURI::base(); http://localhost/joomla15/administrator/
  JPATH_BASE C:\xampp\htdocs\joomla15\administrator
  JPATH_COMPONENT C:\xampp\htdocs\joomla15\administrator\components\com_example
  JPATH_COMPONENT_ADMINISTRATOR C:\xampp\htdocs\joomla15\administrator\components\com_example
  dirname(__FILE__) C:\xampp\htdocs\joomla15\administrator\components\com_example
global $database $database =& JFactory::getDBO();  
mosMenuBar::startTable(); JMenuBar::startTable();  
defined('_VALID_MOS') or die('Direct Access to this location is not allowed.'); defined( '_JEXEC' ) or die( 'Go Away' );  
<mosinstall type="component" version="1.0.0"></mosinstall> <install type="component" version="1.0.0"></install>  
$myparam = mosGetParam( $_REQUEST, 'myparam'); $myparam = JRequest::getVar('myparam');  
global $my; $user = & JFactory::getUser();  

 

Links which can also aid your migration to Joomla 1.5

The following seems to be a very good forum post about the changes from 1.0 to 1.5

http://forum.joomla.org/viewtopic.php?f=304&t=177581

http://dev.joomla.org/component/option,com_jd-wiki/Itemid,32/

http://dev.joomla.org/component/option,com_jd-wiki/Itemid,/id,tips:make_your_extensions_fit/

http://www.waltercedric.com/joomla-mainmenu-247/339-joomla-15/1175-components-code-migration-to-joomla-15.html

More details will be added as we acquire it :)

One more thing...

Do you have friends or a Facebook group who you think would find this useful? Share this with them and then let me know what they think.

Want to supercharge your website?

 
Our website loads FAST ... just 1.29 seconds. We're hosted on FAST InMotion VPS servers We want YOUR website to be fast too, so we've gotten you an exclusive deal - 47% OFF for DART Creations friends + FREE domain! Check it out NOW!