[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4363: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3542)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3542)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3542)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4367: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3542)
Vignettes dans le flux RSS

Vignettes dans le flux RSS

Trouvez ici tout l'aide dont vous avez besoin concernant le script d'annuaire Arfooo.
Merci de reporter les éventuels bugs trouvés.

Vignettes dans le flux RSS

Messagede chadon » Mer 6 Mai 2009 20:08

Bonjour,

Voici une demande sur le :

Quelqu'un saurait-il comment inclure les vignettes/thumbs des sites dans le flux RSS?
chadon
 
Messages: 320
Inscription: Jeu 23 Oct 2008 14:26
Localisation: Canada NB


Re: Vignettes dans le flux RSS

Messagede effi » Ven 13 Nov 2009 22:09

bonsoir,
je suis tombée par hasard sur cet article

apres il faut l'adapter au fichier qui genere le flux et retrouver la référence du thumb :
je vais chercher un peu plus : des idées les copains ?
v 202 et
effi
 
Messages: 324
Inscription: Sam 25 Avr 2009 11:47
Localisation: Paris

Re: Vignettes dans le flux RSS

Messagede perle » Ven 28 Oct 2011 09:28

bonjour,
Personne a une idéé
cordialement
Avatar de l’utilisateur
perle
 
Messages: 213
Inscription: Ven 14 Mar 2008 15:25

Re: Vignettes dans le flux RSS

Messagede RVS001 » Dim 13 Nov 2011 00:10

Bonsoir,

Ca c'est pas de derrière les fagots, je viens de le terminer

Affichage des images dans les flux rss de Arfooo (2.0.2)

#####################################################################################

Fichiers à modifier (Si vous n'avez pas modifié ces fichier vous pouvez les remplacer par les fichiers joints)


Sinon faire les modifications suivantes

1 - Modifier le fichier /components/magpierss/rss_parse.php (vers la ligne 208 pour Arfooo 2.0.2)
elseif (
$this->feed_type == RSS and
$this->current_namespace == '' and
$el == 'image' )
{
$this->inimage = true;
}
// ---------- Add rss enclosure ----------------
elseif (
$this->feed_type == RSS and
$el == 'enclosure' )
{
$this->current_item[$el] = $attrs;
$this->incontent = $el;
}
// ---------- End rss enclosure ----------------

# handle atom content constructs
elseif ( $this->feed_type == ATOM and in_array($el, $this->_CONTENT_CONSTRUCTS) )
{
// avoid clashing w/ RSS mod_content
if ($el == 'content' ) {
$el = 'atom_content';
}

$this->incontent = $el;


}



2 - (vers la ligne 410 pour Arfooo 2.0.2)

elseif ( $this->is_rss() ) {
$this->channel['tagline'] = $this->channel['description'];
for ( $i = 0; $i < count($this->items); $i++) {
$item = $this->items[$i];
// ------------- Add rss enclosure -------------------
if ( isset($item['description'])) {
$item['summary'] = $item['description'];
if ($item['enclosure']['type'] == 'image/jpeg') { // if enclosure - "image/jpeg", "audio/mpeg", "application/pdf"
$item['img_enclosure'] = $item['enclosure']['url'];
} elseif(strstr($item['description'],'<img')) { // if non-standard img in description
$valid_img = '/.gif|.jpg|.jpeg|.png/i';
$exp_img = explode('"',$item['description']);
if(preg_match($valid_img, $exp_img[1])) {
$item['img_enclosure'] = $exp_img[1];
}
}
}
if($i == 0) {
$item['imgheader_url'] = $this->image['url']; // For header image
}
// ------------- End rss enclosure -------------------
if ( isset($item['content']['encoded'] ) )
$item['atom_content'] = $item['content']['encoded'];

if ( $this->is_rss() == '1.0' and isset($item['dc']['date']) ) {
$epoch = @parse_w3cdtf($item['dc']['date']);
if ($epoch and $epoch > 0) {
$item['date_timestamp'] = $epoch;
}
}

#####################################################################################

3 - Modifier /templates/your template/site/details.tpl

Rechercher

{if $setting.remoteRssParsingEnabled && ($site.rssFeedOfSite != '' && $site.rssTitle != '')}
<div class="title_h_2">
<h2>{'siteDetails_rss_feed'|lang} {$site.siteTitle}: <a href="{$site.rssFeedOfSite}" title="{$site.rssTitle}" class="link_black_blue_b_u">{$site.rssTitle}</a></h2>
</div>
<div class="column_in">
{if !empty($remoteRss)}
{foreach from=$remoteRss.items value=item}
<a href="{$item.link}" class="link_black_blue_b_u" target="_blank">{$item.title|truncate:$setting.numberOfCharactersForRssParsing}</a><br />
{if isset($item.description)}{$item.description|truncate:$setting.numberOfCharactersForRssParsing}<br />{/if}<br />
{/foreach}
{/if}
</div>
{/if}


Remplacer par:

<!-- img rss enclosure -->
{if $setting.remoteRssParsingEnabled && ($site.rssFeedOfSite != '' && $site.rssTitle != '')}

<div class="title_h_2">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
{if !empty($remoteRss.items[0].imgheader_url)}
<div><img src="{$remoteRss.items[0].imgheader_url}" height="50px" align="left" border="0" alt="{$site.rssTitle}" title="{$site.rssTitle}"></div>
{/if}
</td>
<td>
<h2>{'siteDetails_rss_feed'|lang} {$site.siteTitle}:</h2><br />
<a href="{$site.rssFeedOfSite}" title="{$site.rssTitle}" class="link_black_blue_b_u">{$site.rssTitle}</a>
</td>
</tr>
</table>
</div>

<div class="column_in">

{if !empty($remoteRss)}
<table cellpadding="2" cellspacing="0">
{foreach from=$remoteRss.items value=item}
<tr>
<td valign="top">
{if isset($item.img_enclosure)}
<img src="{$item.img_enclosure}" width="95" align="left" border="0" alt="{$item.title|truncate:$setting.numberOfCharactersForRssParsing}" title="{$item.title|truncate:$setting.numberOfCharactersForRssParsing}">
{/if}
</td>
<td valign="top">
<a href="{$item.link}" class="link_black_blue_b_u" target="_blank">{$item.title|truncate:$setting.numberOfCharactersForRssParsing}</a><br />
{if isset($item.description)}
{$item.description|truncate:$setting.numberOfCharactersForRssParsing}<br />
{/if}
</td>
</tr>
{/foreach}
</table>
{/if}

</div>
{/if}
<!-- End img rss enclosure -->

############################################################################


Ensuite vider le cache ! pour la prise en compte des modifications

Exemple de l'affichage pour le flux rss de
http://www.lachainemeteo.com/meteo-rss/ ... e=20111112

Image


Cordialement

Hervé
RVS001
 
Messages: 17
Inscription: Jeu 12 Mai 2011 14:09

Re: Vignettes dans le flux RSS

Messagede RVS001 » Dim 4 Déc 2011 21:40

RVS001
 
Messages: 17
Inscription: Jeu 12 Mai 2011 14:09

Re: Vignettes dans le flux RSS

Messagede Erhan » Lun 9 Avr 2012 13:11

bonjour j'ai pourtant bien suivi mais je ne vois pas de changement, manque t-il quelques choses
Erhan
 
Messages: 37
Inscription: Sam 13 Nov 2010 15:48


Retourner vers Installation, aide et report de bugs

 


  • Articles en relation
    Réponses
    Vus
    Dernier message

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 0 invités

 
Copyright © arfooo.com  2007 - 2011  -  Tous droits réservés  -  Partenaires de confiance
Sites du groupe: petites annonces gratuites   voyance en direct - tirage tarot   Consultant en référencement
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group | phpBB SEO Traduction par: phpBB-fr.com
cron