Joomla.it Forum

Joomla! 2.5 (versione con supporto terminato) => Joomla! 1.6/1.7/2.5 => : Divieto 29 May 2012, 15:17:47

: (RISOLTO) immagini in RSS
: Divieto 29 May 2012, 15:17:47
Salve a tutti ragazzi, dunque vi espongo un problema, quando vado a creare un modulo di lettura rss, funziona reglare e via dicendo, dalla serie.. m legge le notizie prese dall'rss del sito di informazione alla quale ho fatto riferimenti, il problema è che vorrei far vedere anche le immagini inserite nella news, e il modulo di joomla 2.5 non me le fa visualizzare, come se non ci fossero quindi, mostra soltanto la news,   :o  QUALCHE IDEA?


GRAZIE MILLE!
: Re:immagini in RSS
: lady r 29 May 2012, 15:36:06
non sapevo J2.5 avesse un syndacation....


comunque prova a cercarne un'altro nella JED, non so ^.^"
: Re:immagini in RSS
: Divieto 29 May 2012, 15:40:23
non ce altro, solo un componente che gestisce gli rss ma non gira su 2.5, ho fatto dei test con una vecchia versione 1.5.22 e lo stesso modulo gira perfettamente... che qualcuno sappia, sono stati impostati dei parametri diversi per i privilegi moduli? che magari ce solo da cambiare una CHMOD
: Re:immagini in RSS
: Divieto 29 May 2012, 15:41:40
non sapevo J2.5 avesse un syndacation....


comunque prova a cercarne un'altro nella JED, non so ^.^"


Il modulo in fase di creazione è visualizzazione feed
: Re:immagini in RSS
: Divieto 29 May 2012, 16:15:14
dunque... basta andare nel modulo all'indirizzo www.dominio.ext/module/mod_feed/tmp/defalt.php


e sostituire

<?php
         $words = $params->def('word_count', 0);
         for ($j = 0; $j < $totalItems; $j ++)
         {
            $currItem = & $feed->items[$j];
            // item title
            ?>
            <li class="newsfeed-item">
               <?php   if (!is_null($currItem->get_link())) {
               ?>
            <?php if (!is_null($feed->title) && $params->get('rsstitle', 1))

               { echo '<h5 class="feed-link">';}
            else
            {
            echo '<h4 class="feed-link">';
            }
            ?>

            <a href="<?php echo $currItem->get_link(); ?>" target="_blank">
               <?php echo $currItem->get_title(); ?>[/url]
               <?php if (!is_null($feed->title) && $params->get('rsstitle', 1))

               { echo '</h5>';}
                  else
                  { echo '</h4>';}
            ?>
            <?php
            }

            // item description
            if ($params->get('rssitemdesc', 1))
            {
               // item description
               $text = $currItem->get_description();
               $text = str_replace('&apos;', "'", $text);
               $text=strip_tags($text);
               // word limit check
               if ($words)
               {
                  $texts = explode(' ', $text);
                  $count = count($texts);
                  if ($count > $words)
                  {
                     $text = '';
                     for ($i = 0; $i < $words; $i ++) {
                        $text .= ' '.$texts[$i];
                     }
                     $text .= '...';
                  }
               }
               ?>

                  <p><?php echo $text; ?></p>

               <?php
            }
            ?>
            </li>
            <?php
         }
         ?>






con









<?php
         $words = $params->def('word_count', 0);
         for ($j = 0; $j < $totalItems; $j ++)
         {
            $currItem = & $feed->items[$j];
            // item title
            ?>
              <li>
                <?php
            if ( !is_null( $currItem->get_link() ) ) {
            ?>
                <a href="<?php echo $currItem->get_link(); ?>" target="_blank"> <?php echo $currItem->get_title(); ?>[/url]
                <?php
            }

            // item description
            if ($params->get('rssitemdesc', 1))
            {
               // item description
               $text = $currItem->get_description();
               $text = str_replace('&apos;', "'", $text);

               // word limit check
               if ($words)
               {
                  $texts = explode(' ', $text);
                  $count = count($texts);
                  if ($count > $words)
                  {
                     $text = '';
                     for ($i = 0; $i < $words; $i ++) {
                        $text .= ' '.$texts[$i];
                     }
                     $text .= '...';
                  }
               }
               ?>
                <div style="text-align: <?php echo $params->get('rssrtl', 0) ? 'right': 'left'; ?> ! important" class="newsfeed_item<?php echo $params->get( 'moduleclass_sfx'); ?>"  > <?php echo $text; ?> <>
                <?php
            }
            ?>
              </li>
           <?php
         }
         ?>


funziona, e mostra le immagini...


CIAO A TUTTI