Joomla.it Forum

Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => I Template di Joomla 1.5.x => : randomind 14 Mar 2009, 03:57:54

: RISOLTO: Modificare larghezza user 1 e user 2 in bizrule_ii
: randomind 14 Mar 2009, 03:57:54
Ciao a tutti.
Ecco il mio problema: vorrei modificare la larghezza dei blocchi user1 e user2 nel tempplate bizrule II, impostandoli rispettivamente a 75% e 25%, quando presenti insieme. So che bisogna agire sul file index.php del template, ma non sono un programmatore e non so come fare. Potreste aiutarmi, per favore? Il codice da modificare dovrebbe essere questo:

:
                                          <?php 

if ($this->countModules"user1" )>&& $this->countModules"user2" )>0){
$modtopwidth 50;
}

                                          else if (
$this->countModules"user1","user2" )) {
$modtopwidth 100;
}

?>



<?php if ($this->countModules"user1" )>or $this->countModules"user2" )>0) : ?>
 <tr>
<?php if($this->countModules('user1')) : ?>
                        <td valign="top" class="contentmod" width="<?php echo $modtopwidth?>%">
                        <div>
                        <jdoc:include type="modules" name="user1" style="table"/>
                        </div>
                        </td>
<?php endif; ?>
<?php if ($this->countModules"user1" )>&& $this->countModules"user2" )>0) : ?>

                       <td><div class="mod"></div></td>
<?php endif; ?>

<?php if($this->countModules('user2')) : ?>
                    <td valign="top" class="contentmod" width="<?php echo $modtopwidth?>%">
                    <div>
                    <jdoc:include type="modules" name="user2" style="table"/>
                    </div></td>
<?php endif; ?>
        </tr>
                   
                   <tr><td colspan="3"></td></tr>
<?php endif; ?>


: Re: Modificare larghezza user 1 e user 2 in bizrule_ii
: tonicopi 14 Mar 2009, 13:32:30
Ecco fatto :D
:
<?php 

if ($this->countModules"user1" )>&& $this->countModules"user2" )>0){
$modtopwidth 50;
}

                                          else if (
$this->countModules"user1","user2" )) {
$modtopwidth 100;
}

?>



<?php if ($this->countModules"user1" )>or $this->countModules"user2" )>0) : ?>
 <tr>
<?php if($this->countModules('user1')) : ?>
                        <td valign="top" class="contentmod" width="75%">
                        <div>
                        <jdoc:include type="modules" name="user1" style="table"/>
                        </div>
                        </td>
<?php endif; ?>
<?php if ($this->countModules"user1" )>&& $this->countModules"user2" )>0) : ?>

                       <td><div class="mod"></div></td>
<?php endif; ?>

<?php if($this->countModules('user2')) : ?>
                    <td valign="top" class="contentmod" width="<?php echo $modtopwidth?>%">
                    <div>
                    <jdoc:include type="modules" name="user2" style="table"/>
                    </div></td>
<?php endif; ?>
        </tr>
                   
                   <tr><td colspan="3"></td></tr>
<?php endif; ?>
PS: ho cambiato solo questo:
<td valign="top" class="contentmod" width="75%">
Non occorre essere programmatori...  ;D
: Re: Modificare larghezza user 1 e user 2 in bizrule_ii
: randomind 14 Mar 2009, 20:34:42
GRazie sei stato gentilissimo! ho imparato una cosa nuova:-)

PS:Se vi serve qualche traduzione di componenti, fatemi sapere: me la cavo bene con l'inglese:-)
: Re: Risolto: Modificare larghezza user 1 e user 2 in bizrule_ii
: tonicopi 14 Mar 2009, 22:19:54
Altro che se ci serve! Ci sono montagne di roba da tradurre!
E ci coordina ste, una deliziosa fanciulla  ;D
Vai qui, e manifesta la tua disponibilità. Vedrai come vieni arruolato...:
http://forum.joomla.it/index.php/topic,1314.0.html#lastPost