Back to top

Autore Topic: [RISOLTO] Problema element.style e News Pro GK4  (Letto 3110 volte)

Offline ruock

  • Nuovo arrivato
  • *
  • Post: 49
    • Mostra profilo
[RISOLTO] Problema element.style e News Pro GK4
« il: 29 Set 2010, 10:45:20 »
Ciao a tutti.
Sto usando il modulo News Pro GK4, per la presentazione degli articoli in Home Page. E' un modulo molto duttile e ben fatto, ma non riesco a risolvere un problema. Vorrei aumentare il margine tra i vari articoli, e cambiarne la larghezza, purtroppo con Firebug, se analizzo il pezzo che mi serve, mi da come css:

element.style {
clear:both;
width:25%;
}

e come html

<div style="width: 25%; clear: both;" class="nsp_art">

Ora ho spulciato i file php e html del modulo, ma non sono riuscito a trovare un granchè. L'unico riferimento che ho trovato all'ultimo è questo, risalente al file content.php dentro la cartella tmpl del modulo, che non sapendo cosa serve vi posto tutto.

<?php  /** * Default template * @package Gavick News Show Pro GK4 * @Copyright (C) 2009-2010 Gavick.com * @ All rights reserved * @ Joomla! is Free Software * @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html * @version $Revision: 4.0.0 $ **/  // no direct access defined('_JEXEC') or die('Restricted access');  $news_amount = $this->content['news_amount'];  if($this->config['links_position'] != 'bottom' && $this->config['news_short_pages'] > 0 && count($news_list_tab) > 0 && $this->config['news_full_pages'] > 0){    $links_width = $this->config['links_width'];    $arts_width = 100 - $this->config['links_width']; }else{    $links_width = 100;    $arts_width = 100; }  ?>  <?php if($news_amount > 0) : ?>    <div class="nsp_main<?php if($this->config['autoanim'] == TRUE) echo ' autoanim'; ?><?php if($this->config['hover_anim'] == TRUE) echo ' hover'; ?>" id="nsp-<?php echo $this->config['module_id']; ?>" style="width:<?php echo $this->config['module_width']; ?>%;">              <?php if(($this->config['news_column'] * $this->config['news_rows']) > 0) : ?>                    <div class="nsp_arts<?php echo ' '.$this->config['links_position']; ?>" style="width:<?php echo $arts_width; ?>%;">                       <?php if(                   count($news_html_tab) > ($this->config['news_column'] * $this->config['news_rows']) &&                    $this->config['news_full_pages'] > 1 &&                   $this->config['top_interface_style'] != 'none'                   ) : ?>             <div class="nsp_top_interface">                <div>                   <?php if(                            $this->config['top_interface_style'] == 'pagination' ||                             $this->config['top_interface_style'] == 'arrows_with_pagination'                         ) : ?>                   <ul class="pagination">                      <?php for($i = 0; $i < ceil(count($news_html_tab) / ($this->config['news_column'] * $this->config['news_rows'])); $i++) : ?>                      <li><?php echo $i+1; ?></li>                      <?php endfor; ?>                   </ul>                   <?php endif; ?>                                      <?php if(                            $this->config['top_interface_style'] == 'arrows' ||                             $this->config['top_interface_style'] == 'arrows_with_pagination' ||                            $this->config['top_interface_style'] == 'arrows_with_counter'                         ) : ?>                   <span class="prev"><?php echo JText::_('NSP_PREV'); ?></span>                   <span class="next"><?php echo JText::_('NSP_NEXT'); ?></span>                   <?php endif; ?>                                      <?php if(                            $this->config['top_interface_style'] == 'counter' ||                             $this->config['top_interface_style'] == 'arrows_with_counter'                         ) : ?>                   <span class="counter"><strong><?php echo JText::_('NSP_PAGE'); ?></strong><span></span></span>                   <?php endif; ?>                </div>             </div>             <?php endif; ?>                       <?php for($i = 0; $i < count($news_html_tab); $i++) : ?>                <?php                    $class = '';                    $style = '';                   if($i >= ($this->config['news_column'] * $this->config['news_rows'])) $class .= ' unvisible';                   if(($i+1) % ($this->config['news_column']) == 1) $style .= 'clear:both;';                ?>                <div class="nsp_art<?php echo $class; ?>" style="width:<?php echo 100 / $this->config['news_column']; ?>%;<?php echo $style; ?>"><div style="padding:<?php echo $this->config['art_padding']; ?>"><?php echo $news_html_tab[$i];?></div></div>             <?php endfor; ?>             </div>       <?php endif; ?>              <?php if($this->config['news_short_pages'] > 0 && count($news_list_tab) > 0 ) : ?>       <div class="nsp_links_wrap<?php echo ' '.$this->config['links_position']; ?>" style="width:<?php echo $links_width-0.1; ?>%;">          <div class="nsp_links" style="margin:<?php echo $this->config["links_margin"]; ?>;">             <?php if(count($news_list_tab) > 0) : ?>             <ul class="list">                <?php for($j = 0; $j < count($news_list_tab); $j++) : ?>                <?php echo $news_list_tab[$j]; ?>                <?php endfor; ?>             </ul>             <?php endif; ?>                                <?php if(                   count(($news_list_tab) > $this->config['links_amount']) &&                    $this->config['news_short_pages'] > 1 &&                    floor(count($news_list_tab) / $this->config['links_amount']) >= 1 &&                   $this->config['bottom_interface_style'] != 'none'                   ) : ?>             <div class="nsp_bottom_interface">                <div>                   <?php if(                            $this->config['bottom_interface_style'] == 'pagination' ||                             $this->config['bottom_interface_style'] == 'arrows_with_pagination'                         ) : ?>                   <ul class="pagination">                      <?php for($i = 0; $i < ceil(count($news_list_tab) / $this->config['links_amount']); $i++) : ?>                      <li><?php echo $i+1; ?></li>                      <?php endfor; ?>                   </ul>                   <?php endif; ?>                                      <?php if(                            $this->config['bottom_interface_style'] == 'arrows' ||                             $this->config['bottom_interface_style'] == 'arrows_with_pagination' ||                            $this->config['bottom_interface_style'] == 'arrows_with_counter'                         ) : ?>                   <span class="prev"><?php echo JText::_('NSP_PREV'); ?></span>                   <span class="next"><?php echo JText::_('NSP_NEXT'); ?></span>                   <?php endif; ?>                                      <?php if(                            $this->config['bottom_interface_style'] == 'counter' ||                             $this->config['bottom_interface_style'] == 'arrows_with_counter'                         ) : ?>                   <span class="counter"><strong><?php echo JText::_('NSP_PAGE'); ?></strong><span></span></span>                   <?php endif; ?>                </div>             </div>             <?php endif; ?>             </div>       </div>       <?php endif; ?>    </div> <?php else : ?>    <p><?php echo JText::_('NSP_ERROR'); ?></p> <?php endif; ?>


Qualcuno di voi sa se sono sulla strada giusta?
Non conosco il php, c'è un modo per cambiare la larghezza e inserire il margine a quella classe?

Grazie e scusate per la lunghezza del post, ma ho provato a mettere tutto quello che potrebbe servirvi per aiutarmi, anche se non so se ho centrato le cose utili!!
« Ultima modifica: 30 Set 2010, 04:26:07 da ruock »

Offline tonicopi

  • Global Moderator
  • Instancabile
  • ********
  • Post: 12790
  • Sesso: Maschio
    • Mostra profilo
Re:Problema element.style e News Pro GK4
« Risposta #1 il: 29 Set 2010, 11:17:08 »
Secondo me il width, la larghezza, viene stampata in base a quanti articoli fai apparire.
Per gli altri parametri tipo margin, padding, bordi, ecc non puoi scrivere regole in questa classe?
class="nsp_art"  ;)
PS se inserisci codice usa l'apposito tastino dell'editor con il simbolo del cancelletto #
Ma un link al sito aiuta più di vagonate di codice  ;D
joomlacsszengarden.com = il giardino dei css di Joomla!
L'attesa del piacere è essa stessa... piacere!

Offline ruock

  • Nuovo arrivato
  • *
  • Post: 49
    • Mostra profilo
Re:Problema element.style e News Pro GK4
« Risposta #2 il: 30 Set 2010, 04:25:15 »
Grazie mille!!
Dire che ci avevo già provato, ma evidentemente avevo sbagliato ad inserire il codice e mi sono aappoggiato a voi consapevole che avreste potuto aiutarmi, ed invece c'ero già riuscito, ma ci siete riusciti lo stesso.

Grazie ancora, anche e sopratutto per la prontezza delle risposte, non c'è abbastanza riconoscenza per la disponibilità a gratis che date. in un mondo in cui nessuno fa niente per nulla questa è la meravigliosa eccezione che purtroppo conferma la regola. Questa e poche altre!

Al prossimo aiuto! :( :(

Offline otto9due

  • Appassionato
  • ***
  • Post: 689
  • Sesso: Maschio
  • Quello che semini raccogli!!
    • Mostra profilo
Re:[RISOLTO] Problema element.style e News Pro GK4
« Risposta #3 il: 27 Mag 2011, 17:20:52 »
a me non fa mettere il bordo all'imm... :-[
con l'effetto mouseover...
« Ultima modifica: 27 Mag 2011, 18:12:03 da otto9due »
Fai agli Altri quello che desidereresti fosse fatto a TE!!

 



Web Design Bolzano Kreatif