Skip to content

How to convert joomla 1.0 templates to 1.5 template

Open index.php of you remplate:

1. Check the top of your index.php file, it should be changed like this one or just use this code:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “”>
<html xmlns=”” xml:lang=”<?php echo $this->language; ?>” lang=”<?php echo $this->language; ?>” dir=”<?php echo $this->direction; ?>” >

<jdoc:include type=”head” />
<link rel=”stylesheet” href=”<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css” type=”text/css” />

2. Replace all php codes relating to modules.
This is an example of an old code <?php mosLoadModules ( ‘header’, -3 ); ?>
Replace with this <jdoc:include type=”modules” name=”header” style=”xhtml” />

3. Replace the mainbody code from <?php mosMainBody(); ?> to <jdoc:include type=”component” style=”xhtml” />

4. Rename the template_css.css file in your /css folder to template.css

5. If there is stuff like this one on yout code:

<?php if (mosCountModules(‘user1’)) : ?>

Chenge ot to look like this: <?php if($this->countModules(‘user1’)) : ?>

6. Check if there are anouther external files like footer.php for example. If there are just open and remove some source code starting with MOS

This should be it 🙂

Published inCodingJoomla

One Comment

  1. mito

    I’ve done all what I have found on sites giving details on how to convert,, but i keep getting this error on the admin panel: XML Parsing Error at 94:14. Error 76: Mismatched tag and on the site page i get this: Parse error: syntax error, unexpected ‘<' in C:\xampp\…\…\…\…\index.php on line 27. any idea why I'm getting those errors?

Comments are closed.