Page 1 of 1

JOOMLA code help - PLEASE :(

Posted: Thu Jun 14, 2012 1:01 am
by kobbles11
hi, im testing an update from joomla 1.5 to 2.5 which means i need to convert my old temple. Ive done alot but there are a few errors, is anyone willing or kind enough to help me through remote access or something? ive been trying to work on it for about 12 hours and just stuck at the moment :( thanks

or if the error is obvious let me know:

this is the top half ive change so far is there any 2.5 template conflictions? especially line 29*

* @package Joomla.Site
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt

defined('_JEXEC') or die;

/* The following line loads the MooTools JavaScript Library */
JHtml::_('behavior.framework', true);

/* The following line gets the application object for things like displaying the site name */
$app = JFactory::getApplication();
<?php echo '<?'; ?>xml version="1.0" encoding="<?php echo $this->_charset ?>"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">

<html xmlns="" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<jdoc:include type="head" />
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<meta http-equiv="Content-Style-Type" content="text/css" />
if ( $my->id || $option == "com_events")
{ initEditor();

LINE29* mosShowHead();

// ********************** PRIMARY COLOR *****************************
// Change the line below to select your preferred primary color
// Available choices are: blue , red , green ,orange, or gray
// ******************************************************************
$color = mosGetParam( $_REQUEST, 'color', 'green');

// ********************* NAV STYLE ****************************
// Change the line below to select your preferred navigation system
// Available choices are: tab and bar
// ******************************************************************

$nav = mosGetParam( $_REQUEST, 'nav', 'tab');


Re: JOOMLA code help - PLEASE :(

Posted: Fri Jun 15, 2012 7:58 pm
by lopoBL
mosShowHead, mosGetParam and almost any function that starts with "mos" is from Joomla 1.0.x and it would not work on Joomla 2.5.x

you need to find replacements for those functions. instead of mosShowHead use <jdoc:include type="head" /> (this is HTML code not PHP)