Joomla.it Forum
Joomla! 1.0.x (versione con supporto terminato) => Le voci di Joomla.it (solo per versione Joomla 1.0.x) => I Template di Joomla 1.0.x => : antonio 10 Dec 2006, 12:48:44
-
ciao sto abbozzando un sito: http://www.acmontesardo.it ma non sto riuscendo ad allargare la colonna centrale in modo che la colonna laterale arriva alla fine del banner di sopra.
questo è il codice
.........
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}
$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$colspan = 0;
$right = 0;
// banner combos
//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
$user1 = 2;
$user2 = 2;
$colspan = 3;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
$user1 = 1;
$colspan = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
$user2 = 1;
$colspan = 1;
}
//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$right = 1;
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<link href="<?php echo $mosConfig_live_site;?>/templates/if24/css/template_css.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div>
<table border="0" cellpadding="0" cellspacing="0" width="1001">
<tr>
<td width="1001"><img border="0" src="<?php echo $mosConfig_live_site;?>/templates/if24/images/logo.jpg" width="1000" height="151"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="toplink">
<tr>
<td width="1">
<img border="0" src="<?php echo $mosConfig_live_site;?>/templates/if24/images/left_top.png" width="1" height="18"></td>
<td><?php mosLoadModules ( 'user3', -1); ?></td>
<td width="1">
<img border="0" src="<?php echo $mosConfig_live_site;?>/templates/if24/images/right_top.png" width="1" height="18"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="172" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="left">
<tr>
<td><?php mosLoadModules ( 'left', -2 ); ?></td>
</tr>
</table>
</td>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding-left: 5px;">
<tr>
<td> <div id="pathway_text">
<?php mosPathWay(); ?>
</div>
</td>
</tr>
<tr>
<td><?php mosMainBody(); ?></td>
</tr>
</table>
</td>
<?php
if ( $right > 0 ) {
?>
<td width="172" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="right">
<tr>
<td><?php mosLoadModules ( 'right', -2 ); ?></td>
</tr>
<tr>
</tr>
</table>
</td>
<?php
}
?>
<?php
if (mosCountModules( "banner" )) {
?>
<td width="170" valign="top" class="banner">
<?php mosLoadModules( 'banner', -1 ); ?></td> <?php
}
?>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center"><?php mosLoadModules( 'user4', -1 ); ?></td>
</tr>
<tr>
<td align="center"><?php mosLoadModules( 'copyright', -1 ); ?></td>
</tr>
</table>
.......
-
risolto, sulla destra c'erano due tabelle per i moduli right e banner. Ho eliminato la tabella banner!