PDA

Zobacz pełną wersję : Konwersja szablonu z joomla 1.0 do 1.5, pomoże ktoś ?



mitas
12-10-2010, 10:32
Witam, mam taki szablon w joomla 1.0 chciałbym przerobić to na joomle 1.5, bawiłem się z jdoc: itd. ale nie wychodzi dokładnie to co bym chciał, obrazki się nie pojawiają i moduły również źle pracują, nakierujecie mnie co z ważniejszych rzeczy muszę zmienić ? i czy w ogóle jest szansa żeby to chodziło na joomli 1.5 ?

Oto mój kod index.php


<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = split( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!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">
<head>
<?php
if ( $my->id ) {
initEditor();
}
mosShowHead();

?>
<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/templates/slimlive/images/favicon.ico" />

<!-- Begin Table -->
<style type="text/css">
<!--
body,td,th {
font-family: Arial Narrow;
font-size: 10px;
color: #000000;
}
a {
font-family: Arial Narrow;
font-size: 10px;
color: #333333;
}
a:visited {
color: #666666;
}
-->
</style><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="894" HEIGHT="720">

<TR>
<TD ROWSPAN="5" COLSPAN="1" WIDTH="65" HEIGHT="720">
<IMG NAME="a0" SRC="templates/slimlive/images/2_1x1.jpg" WIDTH="65" HEIGHT="720" BORDER="0" ALT="slimlive"></TD>
<TD ROWSPAN="1" COLSPAN="1" WIDTH="89" HEIGHT="106">
<IMG NAME="a1" SRC="templates/slimlive/images/2_1x2.jpg" WIDTH="89" HEIGHT="106" BORDER="0"></TD>
<TD COLSPAN="2" WIDTH="308" HEIGHT="106" background="templates/slimlive/images/2_1x3.jpg">&nbsp; </TD>
<TD WIDTH="432" HEIGHT="221" ROWSPAN="2" align="center" valign="middle" background="templates/slimlive/images/2_1x4.jpg"><span class="mainmenu_bg">
<?php mosLoadModules ( 'user2' ); ?>
</span> </TD>
<TD WIDTH="1" HEIGHT="106">
<IMG NAME="blank" SRC="templates/slimlive/images/blank.gif" WIDTH="1" HEIGHT="106" BORDER="0"></TD>
</TR>

<TR>
<TD ROWSPAN="1" COLSPAN="1" WIDTH="89" HEIGHT="115">
<IMG NAME="a4" SRC="templates/slimlive/images/2_2x1.jpg" WIDTH="89" HEIGHT="115" BORDER="0"></TD>
<TD WIDTH="308" HEIGHT="115" COLSPAN="2" align="center" valign="middle" bgcolor="#FFFFFF"><img src="templates/slimlive/images/logo.jpg" alt="slimlive" width="300" height="76"> </TD>
<TD WIDTH="1" HEIGHT="115">
<IMG NAME="blank" SRC="templates/slimlive/images/blank.gif" WIDTH="1" HEIGHT="115" BORDER="0"></TD>
</TR>

<TR>
<TD ROWSPAN="1" COLSPAN="1" WIDTH="89" HEIGHT="65">
<IMG NAME="a6" SRC="templates/slimlive/images/2_3x1.jpg" WIDTH="89" HEIGHT="65" BORDER="0"></TD>
<TD WIDTH="232" HEIGHT="65" align="center" valign="middle" background="templates/slimlive/images/2_3x2.jpg"><div align="center"><span class="mainmenu_bg">
<?php mosLoadModules ( 'user5' ); ?>
</span> </div></TD>
<TD WIDTH="76" HEIGHT="65" align="center" valign="middle" background="templates/slimlive/images/2_3x2.jpg">&nbsp;</TD>
<TD ROWSPAN="1" COLSPAN="1" WIDTH="432" HEIGHT="65">
<IMG NAME="a8" SRC="templates/slimlive/images/2_3x3.jpg" WIDTH="432" HEIGHT="65" BORDER="0"></TD>
<TD WIDTH="1" HEIGHT="65">
<IMG NAME="blank" SRC="templates/slimlive/images/blank.gif" WIDTH="1" HEIGHT="65" BORDER="0"></TD>
</TR>

<TR>
<TD ROWSPAN="2" COLSPAN="1" WIDTH="89" HEIGHT="434">
<IMG NAME="a9" SRC="templates/slimlive/images/2_4x1.jpg" WIDTH="89" HEIGHT="434" BORDER="0"></TD>
<TD WIDTH="232" HEIGHT="434" ROWSPAN="2" align="center" valign="top" bgcolor="#FFFFFF"><span class="mainmenu_bg">
<?php mosLoadModules ( 'user1' ); ?>
</span> </TD>
<TD WIDTH="508" HEIGHT="405" COLSPAN="2" align="left" valign="top" background="templates/slimlive/images/2_4x3.jpg"><?php mosMainBody(); ?></TD>
<TD WIDTH="1" HEIGHT="405">
<IMG NAME="blank" SRC="templates/slimlive/images/blank.gif" WIDTH="1" HEIGHT="405" BORDER="0"></TD>
</TR>

<TR>
<TD WIDTH="76" HEIGHT="29" bgcolor="#FFFFFF">&nbsp; </TD>
<TD WIDTH="432" HEIGHT="29" align="right" valign="middle" bgcolor="#FFFFFF"><span class="mainmenu_bg">
<?php mosLoadModules ( 'user3' ); ?>
</span> </TD>
<TD WIDTH="1" HEIGHT="29">
<IMG NAME="blank" SRC="templates/slimlive/images/blank.gif" WIDTH="1" HEIGHT="29" BORDER="0"></TD>
</TR>

<TR>
<TD WIDTH="65" HEIGHT="1">
<IMG NAME="blank" SRC="templates/slimlive/images/blank.gif" WIDTH="65" HEIGHT="1" BORDER="0"></TD>
<TD WIDTH="89" HEIGHT="1">
<IMG NAME="blank" SRC="templates/slimlive/images/blank.gif" WIDTH="89" HEIGHT="1" BORDER="0"></TD>
<TD WIDTH="232" HEIGHT="1">
<IMG NAME="blank" SRC="templates/slimlive/images/blank.gif" WIDTH="232" HEIGHT="1" BORDER="0"></TD>
<TD WIDTH="76" HEIGHT="1">
<IMG NAME="blank" SRC="templates/slimlive/images/blank.gif" WIDTH="76" HEIGHT="1" BORDER="0"></TD>
<TD WIDTH="432" HEIGHT="1">
<IMG NAME="blank" SRC="templates/slimlive/images/blank.gif" WIDTH="432" HEIGHT="1" BORDER="0"></TD>
</TR>
</TABLE>
<!-- End Table -->

</BODY>
</HTML>

Bazyl
12-10-2010, 12:15
Witam,

A to: http://www.wiki.joomla.pl/index.php/Kategoria:Szablony ?

mitas
13-10-2010, 10:54
tak zmieniłem większość rzeczy w pliku index.php, ale nie wyświetla się poprawnie, może by ktoś mógłbym mi powiedzieć jak powinien wyglądać index.php, dla was to pewnie pikuś a ja się uczę i na pewno nie obraziłbym się jakby ktoś mi pomógł nie odsyłają z miejsca w miejsce, a powiedział konkretnie co należy zmienić, ponieważ jest to szablon na tabelach :)

PeFik
13-10-2010, 12:40
Pomijając szablon na tabelkach, rzuć okiem na rozdział książki (link księgarnia (http://helion.pl/view/3926o/joobus.htm)) , myślę że większość rzeczy tam zawarłem, patrz str. od 109.