1
Installazione, migrazione e aggiornamento / Re:Template e upgrade da 1.5 a 2.5
« il: 28 Nov 2013, 00:06:03 »
ragazzi... a quanto pare.. sta migrazione si sta rilevando nu bagno di sangue
ho seguito una guida...
http://magazine.joomla.org/issues/Issue-May-2012/item/740-How-to-convert-Joomla-15-template-to-Joomla-25
ma ho [size=78%] pagina bianca,,,[/size]
poi debuggando, commentando un po a pezzi l'index.php, mi sono accorto che è questo il pezzo incriminato...
se lo commento il sito si vede ma a tutto schermo, in piu mancano i menu top e laterale,,,
$live_site = $mainframe->getCfg('live_site');
$side_column = $this->params->get("sideColumn", "25%");
$template_width = $this->params->get("templateWidth", "950");
$menu_name = $this->params->get("menuName", "mainmenu");
$menu_type = $this->params->get("menuType", "splitmenu");
$default_font = $this->params->get("defaultFont", "default");
$show_breadcrumbs = ($this->params->get("showBreadcrumbs", 0) == 0)?"false":"true";
$iepng_fix = ($this->params->get("iepngFix", 0) == 0)?"false":"true";
e questo è il xml
e questa la mia index.php
qualsiasi aiutoè ben acceto!!
ciao Giuseppe
ho seguito una guida...
http://magazine.joomla.org/issues/Issue-May-2012/item/740-How-to-convert-Joomla-15-template-to-Joomla-25
ma ho [size=78%] pagina bianca,,,[/size]
poi debuggando, commentando un po a pezzi l'index.php, mi sono accorto che è questo il pezzo incriminato...
se lo commento il sito si vede ma a tutto schermo, in piu mancano i menu top e laterale,,,
$live_site = $mainframe->getCfg('live_site');
$side_column = $this->params->get("sideColumn", "25%");
$template_width = $this->params->get("templateWidth", "950");
$menu_name = $this->params->get("menuName", "mainmenu");
$menu_type = $this->params->get("menuType", "splitmenu");
$default_font = $this->params->get("defaultFont", "default");
$show_breadcrumbs = ($this->params->get("showBreadcrumbs", 0) == 0)?"false":"true";
$iepng_fix = ($this->params->get("iepngFix", 0) == 0)?"false":"true";
e questo è il xml
Codice: [Seleziona]
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/2.5/template-install.dtd">
<extension version="2.5" type="template" method="install">
<name>Rhuk_Milkyway_Ext_25</name>
<creationDate>11/20/06</creationDate>
<author>Andy Miller</author>
<authorEmail>rhuk@--- SPAM ---.com</authorEmail>
<authorUrl>http://www.--- SPAM ---.com</authorUrl>
<copyright>Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>2.5.0</version>
<description>
<![CDATA[
<h1>--- SPAM --- Novus</h1>
<img src="../templates/rt_novus_j15/template_thumbnail.png" align="left" hspace="10" />Novus is a clean and professional GPL template, featuring a fast loading design that is perfect for many applications.
<h3>Changelog</h3>
1.0.0[br /]
<ul>
<li>Initial Release</li>
</ul>
]]>
</description>
<files>
<folder>html</folder>
<folder>images</folder>
<folder>css</folder>
<filename>index.php</filename>
<filename>index.html</filename>
<filename>component.php</filename>
<filename>favicon.ico</filename>
<filename>templateDetails.xml</filename>
<filename>template_thumbnail.png</filename>
</files>
<positions>
<position>toolbar</position>
<position>top</position>
<position>banner</position>
<position>left</position>
<position>user1</position>
<position>user2</position>
<position>user3</position>
<position>user4</position>
<position>user5</position>
<position>user6</position>
<position>user7</position>
</positions>
<config>
<fields name="params">
<fieldset name="basic">
<field name="sideColumn" type="text" default="25%" label="Side Column Width" description="with in px or %" />
<field name="templateWidth" type="text" default="950" label="Template Width" description="Width in px for Fixed Template Width Style" />
<field name="@spacer" type="spacer" default="" label="" description="" />
<field name="menuType" type="list" default="splitmenu" label="Menu Type" description="Type of menu for main navigation">
<option value="splitmenu">SplitMenu</option>
<option value="module">Toolbar Module Position</option>
</field>
<field name="menuName" type="text" default="mainmenu" label="Menu Name" description="Name of Joomla! menu for the main navigation" />
<field name="@spacer" type="spacer" default="" label="" description="" />
<field name="defaultFont" type="list" default="default" label="Font Size" description="Font size variation to use">
<option value="smaller">Smaller</option>
<option value="default">Default</option>
<option value="larger">Larger</option>
</field>
<field name="showBreadcrumbs" type="radio" default="0" label="Show Breadcrumbs" description="Show/Hide the Breadcrumbs">
<option value="0">No</option>
<option value="1">Yes</option>
</field>
<field name="iepngFix" type="radio" default="0" label="IE PNG Fix" description="Enable / Disable the IE PNG Fix">
<option value="0">No</option>
<option value="1">Yes</option>
</field>
</fieldset>
</fields>
</config>
</extension>
e questa la mia index.php
Codice: [Seleziona]
<?php
// no direct access
defined('_JEXEC') or die;
define( 'YOURBASEPATH', dirname(__FILE__) );
require( YOURBASEPATH.DS."rt_styleswitcher.php");
JHTML::_( 'behavior.mootools' );
?>
<!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" />
<?php
$live_site = $mainframe->getCfg('live_site');
$side_column = $this->params->get("sideColumn", "25%");
$template_width = $this->params->get("templateWidth", "950");
$menu_name = $this->params->get("menuName", "mainmenu");
$menu_type = $this->params->get("menuType", "splitmenu");
$default_font = $this->params->get("defaultFont", "default");
$show_breadcrumbs = ($this->params->get("showBreadcrumbs", 0) == 0)?"false":"true";
$iepng_fix = ($this->params->get("iepngFix", 0) == 0)?"false":"true";
require(YOURBASEPATH .DS."rt_styleloader.php");
require(YOURBASEPATH .DS."rt_utils.php");
?>
<link rel="shortcut icon" href="<?php echo $this->baseurl; ?>/images/favicon.ico" />
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/template_css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
div.wrapper { <?php echo $template_width; ?>}
#sidecol { width: <?php echo $side_column; ?>;}
#main-column { margin-left: <?php echo $side_column; ?>;}
</style>
<?php if (isIe6()) :?>
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/template_ie6.css" rel="stylesheet" type="text/css" />
<?php if($iepng_fix == "true") : ?>
<style type="text/css">
img { behavior: url(<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/iepngfix.htc); }
</style>
<?php endif; ?>
<![endif]-->
<?php endif; ?>
<?php if($mtype=="splitmenu") :
echo "<!--[if IE]>\n";
require( YOURBASEPATH.DS."js/ie_splitmenu.js");
echo "<![endif]-->\n";
endif; ?>
</head>
<body class="<?php echo $fontstyle; ?> <?php echo $tstyle; ?>">
<div id="menu-bar">
<div class="wrapper">
<div id="horiz-menu" class="<?php echo $mtype; ?>">
<?php if($mtype != "module") :
echo $mainnav;
else: ?>
<jdoc:include type="modules" name="toolbar" style="none" />
<?php endif; ?>
<>
<>
<>
<?php
$config = &JFactory::getConfig();
$lang = $config->getValue('language');
//print ($lang);
if($lang=="it-IT")
$banner="inset-banner.jpg";
elseif($lang=="en-GB")
$banner="inset-banner-eng.jpg";
?>
<div id="inset" style="background: #C7DCE1 url(<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/<?php echo $banner?>) 50% 0 no-repeat;">
<div class="wrapper">
<a href="<?php echo $this->baseurl; ?>" class="nounder"><img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/blank.gif" style="border:0;" alt="" id="logo" />[/url]
<div class="content">
<!-- <jdoc:include type="modules" name="banner" style="none" />-->
<>
<>
<>
<div id="content">
<div class="wrapper">
<?php if ($this->countModules('left') or $subnav) : ?>
<div id="sidecol">
<div id="side-column">
<div class="padding">
<div class="inner">
<?php if($subnav) : ?>
<div id="sub-menu">
<?php //echo $subnav; ?>
<>
<?php endif; ?>
<jdoc:include type="modules" name="left" style="xhtml" />
<>
<>
<>
<>
<?php endif; ?>
<div id="main-column">
<div class="padding">
<div class="inner">
<?php if ($show_breadcrumbs == "true") : ?>
<jdoc:include type="module" name="breadcrumbs" style="none" />
<?php endif; ?>
<div id="top">
<jdoc:include type="modules" name="top" style="xhtml" />
<>
<?php if ($this->countModules('user1') or $this->countModules('user2')) : ?>
<div id="topmodules" class="spacer<?php echo $topmod_width; ?>">
<?php if ($this->countModules('user1')) : ?>
<div class="block">
<jdoc:include type="modules" name="user1" style="xhtml" />
<>
<?php endif; ?>
<?php if ($this->countModules('user2')) : ?>
<div class="block">
<jdoc:include type="modules" name="user2" style="xhtml" />
<>
<?php endif; ?>
<>
<?php endif; ?>
<div class="contentpadding">
<jdoc:include type="component" />
<>
<?php if ($this->countModules('user3') or $this->countModules('user4')) : ?>
<div id="bottommodules" class="spacer<?php echo $bottommod_width; ?>">
<?php if ($this->countModules('user3')) : ?>
<div class="block">
<jdoc:include type="modules" name="user3" style="xhtml" />
<>
<?php endif; ?>
<?php if ($this->countModules('user4')) : ?>
<div class="block">
<jdoc:include type="modules" name="user4" style="xhtml" />
<>
<?php endif; ?>
<>
<?php endif; ?>
<div class="clr"><>
<>
<>
<>
<>
<>
<div class="clr"><>
<div id="bottom">
<div class="wrapper">
<?php if ($this->countModules('user5') or $this->countModules('user6') or $this->countModules('user7')) : ?>
<div id="footermodules" class="spacer<?php echo $footermod_width; ?>">
<?php if ($this->countModules('user5')) : ?>
<div class="block">
<jdoc:include type="modules" name="user5" style="xhtml" />
<>
<?php endif; ?>
<?php if ($this->countModules('user6')) : ?>
<div class="block">
<jdoc:include type="modules" name="user6" style="xhtml" />
<>
<?php endif; ?>
<?php if ($this->countModules('user7')) : ?>
<div class="block">
<jdoc:include type="modules" name="user7" style="xhtml" />
<>
<?php endif; ?>
<>
<?php endif; ?>
<div align="center">
<a href="http://www.--- SPAM ---.com/" title="--- SPAM --- Joomla Template Club" class="nounder"><img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/blank.gif" alt="--- SPAM --- Joomla Templates" id="rocket" />[/url]
<>
<>
<>
</body>
</html>
qualsiasi aiutoè ben acceto!!
ciao Giuseppe