PDA

Zobacz pełną wersję : [Moduły i tło] Edycja templatki



babik
02-12-2006, 10:47
Witam,
mam takie pytanka, bo już szukałem chyba wszystkich możliwośći i zawsze cośdziało sięz templatką nie tak...
jak dodać pozycję menu w miejscu, gdzie jest z reguły "witamy Cię w serwisie xxx..", czyli w środkowej kolumnie (templatka jest podzielona na 3)? Może podam cały kod index.php i jakbyś ktoś mógł pomóc...
Także mam pytanie, gdzie mogę zmienić tło, ale nie tych kolumn, tylko to co jest po lewej i prawej stronie, czyli ten czarny?
a oto ten kod:

<?php echo "<?xml version=\"1.0\" encoding=\"ISO-8859-2\"?".">"; ?><?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );?>
<head>
<?php if ( $my->id ) { initEditor(); } ?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<?php mosShowHead(); ?>
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ; ?><?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/images/favicon.ico\" />" ; ?>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="page_bg">
<div align="center"><br>
<table width="760" border="0" cellspacing="0" cellpadding="0" class="bodytable">
<tr>
<td><a href="http://www.chiquita.ovh.org"><img src="<?php echo $mosConfig_live_site; ?>/templates/master_skyline/images/logo.jpg" width="758" height="190"> </a>
<img src="<?php echo $mosConfig_live_site; ?>/templates/master_skyline/images/topfade.jpg" width="758" height="47">
<table width="758" border="0" align="center" cellpadding="5" cellspacing="0" class="contenttable">
<tr>
<td width="150" height="30" valign="top">
<?php mosLoadModules ( 'left' ); ?>
<br> </td>
<td valign="top" style="border-left: 1px dotted; border-color: #333333;">
<?php mosMainBody(); ?>
<br> </td>
<td width="150" valign="top" style="border-left: 1px dotted; border-color: #333333;">
<?php mosLoadModules ( 'right' ); ?>
<br>
<?php mosLoadModules ( 'user4' ); ?>
<br>
<?php mosLoadModules ( 'user5' ); ?>
<br>
<?php mosLoadModules ( 'user6' ); ?>
</td>
</tr>
</table>

</td>
</tr>
</table>
<table width="760" height="47" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="<?php echo $mosConfig_live_site; ?>/templates/master_skyline/images/bottomfade.jpg" width="760" height="47" border="0" usemap="#MapMapMap">
</td>
</tr>
</table>
<map name="MapMapMap">
<area shape="rect" coords="15494,0,15811,1" href="http://www.masterhomepage.ch" target="_blank" alt="webdesign by masterhomepage">
<area shape="rect" coords="12666,2,15937,3" href="#">
<area shape="rect" coords="714,28,739,47" href="http://www.masterhomepage.ch" target="_blank">
</map>
</div>
<map name="Map">
<area shape="rect" coords="15494,0,15811,1" href="http://www.masterhomepage.ch" target="_blank" alt="webdesign by masterhomepage">
<area shape="rect" coords="12666,2,15937,3" href="#">
</map>
<div align="center"></font></a>
© 2006 Zespół Chiquita ze Śremu </font></a> <br>
<br>
</div>
</body>
</html>

zwiastun
02-12-2006, 18:49
A to pozycję menu dodaje się w templatce? Jakaś nowa szkoła zarządzania treścią?

babik
03-12-2006, 01:28
No raczej w templatce, a gdzie indziej można dodać kod dla nowej pozycji modułu, bo chyba nie da się inaczej tego zrobić...

Viking
03-12-2006, 02:16
tam gdzie masz <?php mosMainBody(); ?>
przejęzyczyłeś się w pierwszym poście (menu-modułu) popraw i zgłoś Zwiastunowi :)