Joomla.it Forum
Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => I Template di Joomla 1.5.x => : Neths 27 Sep 2009, 14:34:16
-
Salve Ragazzi,
Ho trovato un tempalte che mi piace (link al mio sito http://www.lzcorporation.com/home/ ) perà nella parte "Header" (dove ci sono scritti i vari hosting..) vorrei mettere un'unica immagine , sono riuscito a elimentare i tre box ma è possibile modificare il tempalte in modo da mettere un unica immagine (che dovrebbe ssere di 715x200 pixel)
Grazie
[allegato vecchio più di un anno eliminato automaticamente]
-
Se, come penso, hai eliminato i tre box togliendo il codice che li generava dalla index.php credo sia sufficiente che tu sostituisca questa immagine
http://www.lzcorporation.com/home/templates/themza_j15_15/images/hosting-server-box-banner1.jpg
con la tua ;)
-
Se, come penso, hai eliminato i tre box togliendo il codice che li generava dalla index.php credo sia sufficiente che tu sostituisca questa immagine
http://www.lzcorporation.com/home/templates/themza_j15_15/images/hosting-server-box-banner1.jpg
con la tua ;)
Ho disattivato i box dalla gestione template ma se poi metto un'immagine al posto di quella di dimensioni più grandi incasina tutto il template
-
Allora mi sono guardato il template e la cosa è un pochino più complessa di come immaginavo.
Quel template consente di visualizzare quei tre box e di scegliere anche una fra le tre immagini a fianco dei box. Consente poi di inserire o meno il logo e il nome del sito. Tutte cose molto utili, a mio avviso. Ovviamente diventa più difficile fare una modifica come quella che vuoi tu e non avrai dopo queste possibilità. Io mi chiedo perchè scegliere un template con questi parametri personalizzabili da pannello per poi toglierli? ;D
Ad ogni modo se vuoi procedere devi aprire la index.php del template e cercare questo codice:
<div id="h_area"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/hosting-server-box-banner<?php echo $this->params->get('bannerVariation'); ?>.jpg" alt="hosting servers box banner" align="right" id="server-banner" />
<?php if($this->params->get('hideLogo') == 0) : ?><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo<?php echo $this->params->get('logoVariation'); ?>.png" alt="web hosting logo" align="left" /><?php endif; ?><a href="index.php" class="logo" title="Web Hosting Home"><?php echo $mainframe->getCfg('sitename') ;?></a>
<div id="hosting_boxes">
<?php if($this->params->get('box1Display') == 1) : ?><div class="box<?php echo $this->params->get('box1Variation'); ?>"><span class="boxIn">
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/ico<?php echo $this->params->get('box1Ico'); ?>.png" alt="hosting plan ico 1" align="left" />
<span class="boxTitle"><?php echo $this->params->get('box1Title'); ?></span><br clear="all" />
<ul>
<?php if($this->params->get('box1Line1') != '') : ?><li><?php echo $this->params->get('box1Line1'); ?></li><?php endif; ?>
<?php if($this->params->get('box1Line2') != '') : ?><li><?php echo $this->params->get('box1Line2'); ?></li><?php endif; ?>
<?php if($this->params->get('box1Line3') != '') : ?><li><?php echo $this->params->get('box1Line3'); ?></li><?php endif; ?>
<?php if($this->params->get('box1Line4') != '') : ?><li><?php echo $this->params->get('box1Line4'); ?></li><?php endif; ?>
<?php if($this->params->get('box1Line5') != '') : ?><li><?php echo $this->params->get('box1Line5'); ?></li><?php endif; ?>
<?php if($this->params->get('box1Line6') != '') : ?><li><?php echo $this->params->get('box1Line6'); ?></li><?php endif; ?>
</ul>
</span></div><?php endif; ?>
<?php if($this->params->get('box2Display') == 1) : ?><div class="box<?php echo $this->params->get('box2Variation'); ?>"><span class="boxIn">
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/ico<?php echo $this->params->get('box2Ico'); ?>.png" alt="hosting plan ico 2" align="left" />
<span class="boxTitle"><?php echo $this->params->get('box2Title'); ?></span><br clear="all" />
<ul>
<?php if($this->params->get('box2Line1') != '') : ?><li><?php echo $this->params->get('box2Line1'); ?></li><?php endif; ?>
<?php if($this->params->get('box2Line2') != '') : ?><li><?php echo $this->params->get('box2Line2'); ?></li><?php endif; ?>
<?php if($this->params->get('box2Line3') != '') : ?><li><?php echo $this->params->get('box2Line3'); ?></li><?php endif; ?>
<?php if($this->params->get('box2Line4') != '') : ?><li><?php echo $this->params->get('box2Line4'); ?></li><?php endif; ?>
<?php if($this->params->get('box2Line5') != '') : ?><li><?php echo $this->params->get('box2Line5'); ?></li><?php endif; ?>
<?php if($this->params->get('box2Line6') != '') : ?><li><?php echo $this->params->get('box2Line6'); ?></li><?php endif; ?>
</ul>
</span></div><?php endif; ?>
<?php if($this->params->get('box3Display') == 1) : ?><div class="box<?php echo $this->params->get('box3Variation'); ?>"><span class="boxIn">
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/ico<?php echo $this->params->get('box3Ico'); ?>.png" alt="hosting plan ico 3" align="left" />
<span class="boxTitle"><?php echo $this->params->get('box3Title'); ?></span><br clear="all" />
<ul>
<?php if($this->params->get('box3Line1') != '') : ?><li><?php echo $this->params->get('box3Line1'); ?></li><?php endif; ?>
<?php if($this->params->get('box3Line2') != '') : ?><li><?php echo $this->params->get('box3Line2'); ?></li><?php endif; ?>
<?php if($this->params->get('box3Line3') != '') : ?><li><?php echo $this->params->get('box3Line3'); ?></li><?php endif; ?>
<?php if($this->params->get('box3Line4') != '') : ?><li><?php echo $this->params->get('box3Line4'); ?></li><?php endif; ?>
<?php if($this->params->get('box3Line5') != '') : ?><li><?php echo $this->params->get('box3Line5'); ?></li><?php endif; ?>
<?php if($this->params->get('box3Line6') != '') : ?><li><?php echo $this->params->get('box3Line6'); ?></li><?php endif; ?>
</ul>
</span></div><?php endif; ?>
<br clear="all" />
</div>
Che devi cancellare quasi per intero facendolo diventare così:
<div id="h_area"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/hosting-server-box-banner<?php echo $this->params->get('bannerVariation'); ?>.jpg" alt="hosting servers box banner" align="right" id="server-banner" />
[Nota di tonicopi: Qui c'era il codice cancellato ]
<br clear="all" />
</div>
A questo punto modificherai a piacere una di queste tre immagini
hosting-server-box-banner1.jpg
hosting-server-box-banner2.jpg
hosting-server-box-banner3.jpg
mettendole della larghezza che ti serve.
Le puoi anche tenere tutte e tre a potrai cambiarle dai parametri del template ;)