JOOMLA code help - PLEASE :(

Discuss the integratoin of phpbb and Joomla! here.

Moderator: General Support Moderators

Forum rules
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Jun 14, 2012 12:57 am

JOOMLA code help - PLEASE :(

Post by kobbles11 » Thu Jun 14, 2012 1:01 am

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');


User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 235
Joined: Mon Jun 21, 2010 12:28 pm
Location: Banja Luka, Bosnia

Re: JOOMLA code help - PLEASE :(

Post by lopoBL » Fri Jun 15, 2012 7:58 pm

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)


Return to “phpbb - Joomla! Integration”