adding channel image on rss flux

To adding in script rss*.php, a channel image, i've writing another script, nammed 'rss-image.php'.

This use this code :

[code]
<?php
$img_rss_theme_name = getCurrentTheme();
$img_rss_name = 'Logo_fleur_B5AF92_289x350px.png';
$img_rss_root = '/themes/'.$img_rss_theme_name.'/images/'.$img_rss_name;
$img_rss_width = '289';
$img_rss_height = '350';
?>
<image>
<title><?php echo get_language_string(getOption('gallery_title'), $locale)." - News "; ?><?php if(!empty($cattitle)) { echo $cattitle ; } ?></title>
<url><?php echo FULLWEBPATH.$img_rss_root;?></url>
<link><?php echo $serverprotocol."://".$host.WEBPATH; ?></link>
<width><?php echo $img_rss_width;?></width>
<height><?php echo $img_rss_height;?></height>
</image>
[/code]

this file is include by php calling in others scripts rss*.php : include('rss-image.php');

Certainly, it's possible to improve this ;-)
Certainly, it's possible to include in native code of zengallery, isn't-it ?!

Comments

  • acrylian Administrator, Developer
    I know it is a optional element for feeds but I don't understand for what is this optional <image> needed actually? Maybe you could explain that?
  • example: this permit to include your logo's website on your flux rss ...

    as http://valerie-jaubert.com/rss.php?lang=fr_FR
  • acrylian Administrator, Developer
    You mean as a kind of favicon? I see the normal site favicon of our site on our normal feed even without that <image>? Sorry, maybe I have a long line on this...;-)
  • open-it with browser web, as firefox !...
  • Ahh, I see it in Firefox. The code adds an image to the right side of the feed linking back to the gallery home page. It does look quite nice.
  • yes, this image is for the reader capable to see this optional code. (as browser web, or others readers ...)
  • acrylian Administrator, Developer
    Sorry, I never use browsers for rss feed but a specific feed reader client, so I don't see that at all. Just tried in Firefox but that makes just a dynamic bookmark from it that does not show any specific image, too. Maybe post a screenshots so even I understand what it is about...;-)

    You could open ticket for this so we might consider this later and it does not get forgotten. Thanks.
Sign In or Register to comment.