bug with printZenpageRSSLink() (2) ?

vincent3569 Member, Translator
hello

in the footer of my website, i have this line
`
<?php printZenpageRSSLink('Comments','',' | ',gettext('Comments'),'', true); ?>
`
with zenphoto 1.3.0, this rss feed shows only the news comments but not the pictures comments.

by exemple : follow the generated link by the code: http://vincent.bourganel.free.fr/zenphotoNB/rss-news-comments.php?lang=fr_FR
you should see that the pictures comments are not shown.

it seems to be a bug ?

Comments

  • acrylian Administrator, Developer
    No, this time not a bug but as intended. Notice the "Zenpage" in the function name? So it is of course only for news (and also pages). If you want image/album comments you have to use the normal rss link function.
  • vincent3569 Member, Translator
    hello

    in the user guide we could see this text :
    "Comments" for all news articles and latest images

    so, i understood that we could have a rss feed both with the comments on picture and the comments on news.

    it's not possible ?
    in this cas, it would be i nice improvement of zenphoto.
  • acrylian Administrator, Developer
    Well, you found a mistake in the description. Zenphoto' printRSSLink can print all comments of all albums and images and Zenpage's one only all of all articles and pages. Once Zenpage was independently release thus it is separate.

    I guess just one comments feed would indeed be enough. I'll put it on the list...
  • vincent3569 Member, Translator
    "I guess just one comments feed would indeed be enough. I'll put it on the list.."

    i'm sure it would be a good idea.
    should i create a ticket in bugtracker ?
  • acrylian Administrator, Developer
    No real need this time as I have it on my list already.
  • vincent3569 Member, Translator
    hello

    with zenphoto 1.3.1.2, could you explain what is the result of this rss link :

    `<?php printZenpageRSSLink('Comments','',' | ',gettext('Comments'),'', true); ?>`

    all the lastest comments on news, pages, albums and images ?

    thanks for your explanation
  • acrylian Administrator, Developer
    All explained here: http://www.zenphoto.org/documentation/plugins/zenpage/_zp-extensions---zenpage---zenpage-template-functions.php.html#functionprintZenpageRSSLink

    Sorry, the doc is indeed not complete, The correct explaination is in the file itself:
    @param string $option type of RSS:
    "News" feed for all news articles
    "Category" for only the news articles of the category that is currently selected
    "NewsWithImages" for all news articles and latest images
    "Comments" for all news articles and pages
    "Comments-news" for comments of only the news article it is called from
    "Comments-all" for comments from all albums, images, news articels and pages
    The rest of the doc is still correct
  • vincent3569 Member, Translator
    thanks for the explanation
    I presume that the doc will be completed in the future ?
  • acrylian Administrator, Developer
    Sure, last update was for 1.3.1 as we thought that for the sub release 1.3.1.x it was not necessary... did not remember it was changed!
  • Hello,

    I am using # Zenphoto version 1.3.1.1 [5816] (Official Build)
    Current gallery theme: zpFocus13.

    When I am logged in as admin my rss links will work for news, albums and comments, but when I log out I get this message:

    XML Parsing Error: junk after document element
    Location: http://www.advertisement-gallery.com/rss-news.php?lang=en_US
    Line Number 2, Column 1:
    <b>Warning</b>: fopen(/home6/advertk3/public_html/cache_html/rss/rss-news_en_us.xml)
    [function.fopen]: failed to open stream: No such file or directory in <b>/home6/advertk3/public_html/zp-core/functions-rss.php</b> on line <b>337</b>.

    I'm not sure exactly what to do to fix this. Any suggestions would be appreciated.

    Thank-you - Renee
  • acrylian Administrator, Developer
    Try to disable the rss cache option. You might also want to consider to upgrade to the latest version.
  • Thank-you! acrylian, that solved the problem.
    Renee
Sign In or Register to comment.