Back to top

Autore Topic: [help] header & banner  (Letto 2003 volte)

Offline And914

  • Nuovo arrivato
  • *
  • Post: 3
    • Mostra profilo
[help] header & banner
« il: 06 Apr 2007, 15:42:56 »
ciao a tutti.
ho installato il template plattform sul mio sito.

ma volevo mettere un banner come header, al posto della scritta di questa immagine



che però vada dal lato sinistro a quello destro.
come posso fare??
c'è da modificare il codice del template???

grazie 1000 in anticipo
bye

Offline maria.p

  • Abituale
  • ****
  • Post: 1045
    • Mostra profilo
Re: [help] header & banner
« Risposta #1 il: 06 Apr 2007, 15:58:52 »
controlla con l'anteprima che posizioni per i moduli ci sono in quella zona,
se c'è puoi sfruttare quella.
se è + piccola si può allargare da lato a lato
se non c'è una posizione si può sempre inserire,
le ultime 2 soluzioni comportano una modifica dell'index.

Offline And914

  • Nuovo arrivato
  • *
  • Post: 3
    • Mostra profilo
Re: [help] header & banner
« Risposta #2 il: 06 Apr 2007, 18:01:39 »
ciao...di banner in quella zona nn ce ne sono..come posso fare??
mi potresti dire come posso modificare il codice x fare in modo di avere il banner da parte a parte?
Codice: [Seleziona]
<?php
defined
'_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso explode'='_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 mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}
$collspan_offset = ( mosCountModules'right''left' ) + mosCountModules'user2' ) ) ? 1;
//script to determine which div setup for layout to use based on module configuration
$user1 0;
$user2 0;
$colspan 0;
$right 0;
$left 0;
$banner 0;
// banner combos

//user1 combos
if ( mosCountModules'user1' ) + mosCountModules'user2' ) == 2) {
$user1 2;
$user2 2;
$colspan 3;
} elseif ( 
mosCountModules'user1' ) == ) {
$user1 1;
$colspan 1;
} elseif ( 
mosCountModules'user2' ) == ) {
$user2 1;
$colspan 1;
}
//banner based combos
if ( mosCountModules'banner' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$banner 1;

}

//right based combos
if ( mosCountModules'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$right 1;

}
//left based combos
if ( mosCountModules'left' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
      
$left 1;

}
?>

<?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\" />" ?>
<link href="css/template_css.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript">
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
       <tr>
         <td id="top_menu">
  <div id="top_menu_inner"><?php mosLoadModules 'user3' ); ?></div></td></tr>
       <tr>
   <td id="header">
   <div class="maintitle"><?php echo $mosConfig_sitename?></div></td>
   </tr>
    <tr>
      <td id="content_outer" valign="top">
  <table  align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="content_table">
<tr valign="top">
<?php
if ( $left ) {
   ?>

  <td>
  <div id="left_outer">
  <div id="left_inner">
  <?php mosLoadModules 'left', -); ?>
  </div><div id="left_footer"></div>
  </div>   </td>
  <?php
   }
   ?>

<td width="100%">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="content_table">
<tr><div id="pathway"> <div id="pathway_text">
<?php mosPathWay(); ?>
  </div> </div>

<td colspan="<?php echo $colspan?>" class="body_outer">
  <div id="main_content"><?php mosMainBody(); ?></div> </td>
<td></div></td>
</tr>

<?php
if ($colspan 0) {
?>

<tr valign="top">

<?php
   if ( $user1 ) {
   ?>

  <td width="50%">
  <div id="user1_outer"><div class="user1_inner">
  <?php mosLoadModules 'user1', -); ?>
  </div> <div id="center_footer"></div> </div>   </td>
  <?php
   }
   if ( $colspan == 3) {
 ?>


<?php
}
   if ( $user2 ) {
   ?>

  <td width="50%">
  <div id="user2_outer">
<div class="user2_inner">
  <?php mosLoadModules 'user2', -); ?>
  </div> <div id="center_footer"></div> </div>   </td>
  <?php
   }
?>

</tr>
<tr>
<td colspan="<?php echo $colspan?>">   </td>
</tr>
<?php
}
?>

  </table> </td>
<?php
if ( $right ) {
   ?>

  <td><div id="right_outer">
  <div id="right_inner">
  <?php mosLoadModules 'right', -); ?>
  </div><div id="left_footer"></div>
    </div> </td>
  <?php
   }
   ?>

</tr>
  </table> </td>
    </tr>
    <tr><?php
if ( $banner ) {
   ?>

  <td id="user"><div id="banner"><div id="banner_inner"><?php mosLoadModules"banner", -); ?></div></div></td>
  <?php
   }
   ?>

  </tr>
<tr>
     <td id="footer"><?php include_once('includes/footer.php'); ?><div id="logo"></div></td>
   </tr>
</table>
<?php mosLoadModules'debug', -);?>
</body>
</html>

Offline maria.p

  • Abituale
  • ****
  • Post: 1045
    • Mostra profilo
Re: [help] header & banner
« Risposta #3 il: 06 Apr 2007, 21:11:55 »
fai sempre una copia dell'index e poi sostituiscilo con questo, ho inserito una posizione header dove puoi pubblicare un modulo banner o anche immagini statiche ecc....

<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _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 mosShowHead(); ?>
<?php
if ( $my->id ) {
   initEditor();
}
$collspan_offset = ( mosCountModules( 'right', 'left' ) + 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;
$left = 0;
$banner = 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;
}
//banner based combos
if ( mosCountModules( 'banner' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
   $banner = 1;
   
}

//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
   $right = 1;
   
}
//left based combos
if ( mosCountModules( 'left' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
      $left = 1;

}
?>
<?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\" />" ; ?>
<link href="css/template_css.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript">
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
//-->
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
       <tr>
         <td id="top_menu">
  <div id="top_menu_inner"><?php mosLoadModules ( 'user3' ); ?></div></td></tr>         
                  <tr>
               <td id="header">
               <?php mosLoadModules ( 'header' ); ?></div></td>
               </tr>
                   <tr>
                     <td id="content_outer" valign="top">
                 <table  align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="content_table">
                  <tr valign="top">
                  <?php
                     if ( $left > 0 ) {
                    ?>
                    <td>
                       <div id="left_outer">
                          <div id="left_inner">
                          <?php mosLoadModules ( 'left', -2 ); ?>
                          </div><div id="left_footer"></div>
                       </div>                    </td>
                    <?php
                 }
                 ?>
                     <td width="100%">
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="content_table">
                        <tr><div id="pathway">   <div id="pathway_text">
                              <?php mosPathWay(); ?>
                          </div>   </div></tr>
                        
<tr valign="top">
                           
                              <?php
                             if ( $user1 > 0 ) {
                                ?>
                                <td width="50%">
                                   <div id="user1_outer"><div class="user1_inner">
                                   <?php mosLoadModules ( 'user1', -2 ); ?>
                                   </div>   <div id="center_footer"></div>   </div>                          </td>
                                <?php
                             }
                             if ( $colspan == 3) {
                               ?>
                                 
                              <?php
                              }
                             if ( $user2 > 0 ) {
                                ?>
                                <td width="50%">
                                   <div id="user2_outer">
                                 <div class="user2_inner">
                                   <?php mosLoadModules ( 'user2', -2 ); ?>
                                   </div>      <div id="center_footer"></div>   </div>                       </td>
                                <?php
                             }
                              ?>
                           </tr>
      <tr>                     

<td colspan="<?php echo $colspan; ?>" class="body_outer">
                              <div id="main_content"><?php mosMainBody(); ?></div>                           </td>
                           <td></div></td>
                        </tr>
                              
                                          <?php
                        if ($colspan > 0) {
                        ?>
                           









                           <tr>
                              <td colspan="<?php echo $colspan; ?>">                             </td>
                           </tr>
                           <?php
                           }
                        ?>
                       </table>                     </td>
                     <?php
                     if ( $right > 0 ) {
                    ?>
                    <td><div id="right_outer">
                          <div id="right_inner">
                          <?php mosLoadModules ( 'right', -2 ); ?>
                          </div><div id="left_footer"></div>
                      </div>       </td>
                    <?php
                 }
                 ?>
                  </tr>
        </table>                  </td>
    </tr>
    <tr><?php
                     if ( $banner > 0 ) {
                    ?>
  <td id="user"><div id="banner"><div id="banner_inner"><?php mosLoadModules( "banner", -1 ); ?></div></div></td>
     <?php
                 }
                 ?>
  </tr>
                     <tr>                     
                 <td id="footer"><?php include_once('includes/footer.php'); ?><div id="logo">| Design by <a href="http://www.ah-68.de" target="_blank">ah-68[/url] |</div></td>
               </tr>
</table>
<?php mosLoadModules( 'debug', -1 );?>
</body>
</html>

Offline And914

  • Nuovo arrivato
  • *
  • Post: 3
    • Mostra profilo
Re: [help] header & banner
« Risposta #4 il: 07 Apr 2007, 13:17:34 »
grazie mille!!! ;D ;D

 



Web Design Bolzano Kreatif