Joomla.it Forum

Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => I Template di Joomla 1.5.x => : fraam 29 Oct 2008, 17:07:08

: adattare template joomla 1.0 a joomla 1.5
: fraam 29 Oct 2008, 17:07:08
Ciao

Ho un template compatibile solo con la 1.0....cosa devo modificare per adattarlo alla 1.5?


Mi avete proposto una guida che non ho trovato...ma mi sa che non sarei neanche capace...perchè sono alle prime armi....

Non esiste un programma che mi dica quali sono le cose incompatibili?


grazie


: Re: adattare template joomla 1.0 a joomla 1.5
: tonicopi 29 Oct 2008, 17:20:38
Non esiste un programma che mi dica quali sono le cose incompatibili?
No non esiste una simile scorciatoia... ;D
Ma non hai trovato questo:
http://wiki.joomla.it/index.php?title=Convertire_un_template_da_Joomla_1.0_a_Joomla_1.5
: Re: adattare template joomla 1.0 a joomla 1.5
: fraam 29 Oct 2008, 19:21:19
ho seguito il suggerimento ma correggendo il tutto ora la pagina funziona ma è senza stile....tutto bianco e nero


<?php
defined( '_JEXEC' ) 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>
<jdoc:include type="head" />
<?php
if ( $my->id ) {
   initEditor();
}
$collspan_offset = ($this->countModules( 'right' ) + $this->countModules( '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 ($this->countModules( 'user1' ) + $this->countModules( 'user2' ) == 2) {
   $user1 = 2;
   $user2 = 2;
   $colspan = 3;
} elseif ( $this->countModules( 'user1' ) == 1 ) {
   $user1 = 1;
   $colspan = 1;
} elseif ( $this->countModules( 'user2' ) == 1 ) {
   $user2 = 1;
   $colspan = 1;
}

//right based combos
if ( $this->countModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
   $right = 1;
}
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $mainframe->getCfg( 'live_site' );?>/templates/rhuk_solarflare_ii/css/template_css.css" rel="stylesheet" type="text/css"/>
</head>
<body>

<div align="center">
   <table border="0" cellpadding="0" cellspacing="0" width="808">
      <tr>
         <td class="outline">
              <div id="buttons_outer">
                <div id="buttons_inner">
                  <div id="buttons">
                  <jdoc:include type="modules" name=user3 style=-1 />
                  </div>
               </div>
              </div>
              <div id="search_outer">
                <div id="search_inner">
                <jdoc:include type="modules" name=user4 style=-1 />
                </div>
              </div>
              <div class="clr"></div>
              <div id="header_outer">
                 <div id="header">
                 &nbsp;
                 </div>
                 <div id="top_outer">
                  <div id="top_inner">
                  <?php
                    if ( $this->countModules( 'top' ) ) {
                       
                     } else {?>
                       
                       <span class="error">Top Module Empty</span>
                       <?php
                    }
                    ?>
                   </div>
              </div>
              </div>
              <div id="left_outer">
                 <div id="left_inner">
                 <jdoc:include type="modules" name=left style=-2 />
                 </div>
              </div>
              <div id="content_outer">
               <div id="content_inner">
               <?php
                 if ($this->countModules('banner') ) {
                    ?>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="content_table">
                  <tr>
                        <td>
                           <div id="banner_inner">
                           <img src="<?php echo $mainframe->getCfg( 'live_site' );?>/templates/rhuk_solarflare_ii/images/advertisement.png" alt="advertisement.png, 0 kB" title="advertisement" border="0" height="8" width="468"/>

                          <jdoc:include type="modules" name=banner style=-2 />

                           </div>
                           <div id="poweredby_inner">
                              <img src="<?php echo $mainframe->getCfg( 'live_site' );?>/templates/rhuk_solarflare_ii/images/powered_by.png" alt="powered_by.png, 1 kB" title="powered_by" border="0" height="68" width="165"/>

                           </div>
                        </td>
                     </tr>
                     </table>
                     <?php
                 }
                 ?>
                 <table border="0" cellpadding="0" cellspacing="0" width="100%" class="content_table">
                  <tr valign="top">
                     <td width="99%">
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="content_table">

                        <?php
                        if ($colspan > 0) {
                        ?>
                           <tr valign="top">
                              <?php
                             if ( $user1 > 0 ) {
                                ?>
                                <td width="50%">
                                   <div class="user1_inner">
                                   <jdoc:include type="modules" name=user1 style=-2 />
                                   </div>
                                </td>
                                <?php
                             }
                             if ( $colspan == 3) {
                               ?>
                                 <td width="2">
                                    <img src="<?php echo $mainframe->getCfg( 'live_site' );?>/templates/rhuk_solarflare_ii/images/spacer.png" alt="" title="spacer" border="0" height="10" width="2"/>
                                 </td>
                              <?php
                              }
                             if ( $user2 > 0 ) {
                                ?>
                                <td width="50%">
                                   <div class="user2_inner">
                                   <jdoc:include type="modules" name=user2 style=-2 />
                                   </div>
                                </td>
                                <?php
                             }
                              ?>
                           </tr>
                           <tr>
                              <td colspan="<?php echo $colspan; ?>">
                                 <img src="<?php echo $mainframe->getCfg( 'live_site' );?>/templates/rhuk_solarflare_ii/images/spacer.png" alt="" title="spacer" border="0" height="2" width="100"/>

                              </td>
                           </tr>
                           <?php
                           }
                        ?>
                        <tr>
                           <td colspan="<?php echo $colspan; ?>">
                              <div id="pathway_text">
                              <?php mosPathWay(); ?>
                              </div>
                           </td>
                        </tr>
                        <tr>
                           <td colspan="<?php echo $colspan; ?>" class="body_outer">
                              <jdoc:include type="component" />
                           </td>
                        </tr>
                        </table>


                     </td>
                     <?php
                     if ( $right > 0 ) {
                    ?>
                    <td>
                       <div id="right_outer">
                          <div id="right_inner">
                          <jdoc:include type="modules" name=right style=-2 />
                          </div>
                       </div>
                    </td>
                    <?php
                 }
                 ?>

                  </tr>
                  </table>
              </div>
           </div>
         <div>
         <?php JText::_( 'Copyright') ?>
         </div>
        </td>
     </tr>
  </table>
</div>
<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
<jdoc:include type="modules" name=debig style=-1 />
</body>
</html>
: Re: adattare template joomla 1.0 a joomla 1.5
: tonicopi 29 Oct 2008, 20:26:26
Bravissimo, sei a tre quarti del lavoro.
Probabilmente non richiami i css.
Vedo tra i tag head del vecchio codice...
: Re: adattare template joomla 1.0 a joomla 1.5
: fraam 29 Oct 2008, 23:17:24
come faccio?
: Re: adattare template joomla 1.0 a joomla 1.5
: m.davide82 01 Nov 2008, 11:21:52
Prova a cercarti l'estensione per Dreamweaver D-Form Joomla_15, installala, selezione il codice head vecchio e applicaci, con l'apposito bottone, l'head nuova.

Cosi sarà tutto bello e pronto.

Oppure copiati questo:

:
<!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" />
<link rel="stylesheet" href="templates/_system/css/general.css" type="text/css" />
<link rel="stylesheet" href="templates/miotemplate/css/template_css.css" type="text/css" />

</head>


Buon Lavoro!  ;D
: Re: adattare template joomla 1.0 a joomla 1.5
: m.davide82 01 Nov 2008, 11:23:33
Ok, tutto giusto.