Problema na modificação Template 1.0 para 1.5

  • Skedar
  • Avatar de Skedar Autor do Tópico
  • Offline
  • JCB! Novato
  • JCB! Novato
Mais
15 anos 9 meses atrás #23125 por Skedar
Skedar created the topic: Problema na modificação Template 1.0 para 1.5
Olá, segui alguns tutoriais, de como proceder para efetuar a migração de template 1.0 para joomla 1.5

Estou meio confuso pois a index do meu template é bem pequena e alguns códigos estão me confundindo seriamente...

Ativei o Legacy e o template sem modificações em seu código supostamente funcionou, mas todo embaralhado e sem algumas imagens.

Ao tentar modificar os códigos usando os tutoriais, apareceu o seguinte erro:

arse error: syntax error, unexpected '<' in /home/site/templates/temp_1.0/index.php on line 19

Acredito que estou modificando os códigos de maneira incorreta, e se alguem disposto a me ajudar der uma olhada no meu index.php e falar oq devo modificar corretamente estarei eternamente agradecido.

Segue abaixo o Index.php original:
<?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&#91;1&#93; .'"?' .'>';
    ?>
    <!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">
       <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/scripts/prototype.lite.js"></script>
       <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/scripts/moo.fx.js"></script>
       <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/scripts/moo.fx.pack.js"></script>
       <script type="text/javascript">
       window.onload = function() {
          fadesize = new fx.FadeSize('left_outer', {duration: 500});
       }
       </script>
    <head>
    <?php mosShowHead(); ?>
    <?php
    if ( $my->id ) {
       initEditor();
    }

    ?>
    <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
    <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;?>/images/favicon.ico" />
    </head>
    <body>

    <table border="0" cellpadding="0" cellspacing="0" width="908" align="center">
    <tr>
    <td class="outline">
    <table width="902" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>
       <div id="buttons_outer">
          <div id="buttons_inner">
             <div id="buttons">
             <?php mosLoadModules ( 'user3', -1); ?>
             </div>
          </div>
       </div>
       <div id="search_outer">
          <div id="search_inner">
          <?php mosLoadModules ( 'user4', -1 ); ?>
          </div>
       </div>
       </td>
      </tr>
      <tr>
       <td>
          <div id="header_outer">
             <div id="header">
                <div id="pathway_text">
                   <a href="#" onclick="opacity.toggle();"></a>
       <a href="#" onclick="fadesize.toggle('width');"><img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/showhide.png" id="showhide" border="0"></a><?php mosPathWay(); ?>
                </div>
             </div>
             <div id="top_outer">
                <div id="top_inner">
                <?php
                if ( mosCountModules( 'top' ) ) {
                   mosLoadModules ( 'top', -2 );
                } else {
                   ?>
                   <span class="error">Top Module Empty</span>
                   <?php
                }
                ?>
                 </div>
             </div>
          </div>
       </td>
      </tr>
      <tr>
        <td id="main_area">
          <table width="902" cellpadding="0" cellspacing="0">
                  <tr>
               <td id="left_side">
                <div id="left_outer">
                  <div id="left_inner">
                   <?php mosLoadModules ( 'left', -2 ); ?>
                  </div>
                </div>
             </td>
            <td id="main_body">
             <?php
             if ( mosCountModules ('banner') ) {
             ?>
                <div id="banner_inner">
                   <?php mosLoadModules( 'banner', -1 ); ?>
                </div><?php } ?>   

    <?php if (mosCountModules('user1') || mosCountModules('user2')) { ?>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" >
      <tr>
        <td width="50%">
          <div class="user1_inner">
             <?php mosLoadModules ( 'user1', -2 ); ?>
          </div>
       </td>
        <td width="50%">
          <div class="user2_inner">
             <?php mosLoadModules ( 'user2', -2 ); ?>
          </div>
       </td>
      </tr>
    </table>
    <?php } ?>   
             <div id="body_outer">
                <?php mosMainBody(); ?>
                <div class="clr"></div>
             </div>
            </td>
            <?php if ( mosCountModules( 'right' ) and ( empty( $_REQUEST&#91;'task'&#93; ) || $_REQUEST&#91;'task'&#93; != 'edit' ) ) { ?>
            <td id="right_side">
             <div id="right_outer">
               <div id="right_inner">
                <?php mosLoadModules ( 'right', -2 ); ?>
               </div>
             </div>
            </td>
            <?php } ?>
          </tr>
          </table>
         </td>
      </tr>
    </table>
        </td>
      </tr>
    </table>
    <div align="center" class="dd">Design by  <a href="http://www.skedarcorp.com/">Skedar Corporation</a><br />
    </div>
    <br />
    <?php mosLoadModules( 'debug', -1 );?>
    </body>
    </html>

Este já é um template trabalhado e perfeito para o meu site, então procurar outro e modificar para as minhas necessidades vai dar muito mais trabalho.

Se não for pedir muito e alguem mudar as linhas de códigos necessarias pra mim eu ficaria mt agradecido.

Abraços <!-- s:ugeek: --><img src="{SMILIES_PATH}/icon_e_ugeek.gif" alt=":ugeek:" title="Uber Geek" /><!-- s:ugeek: -->

Please Entrar ou Registrar to join the conversation.