Announcement

#1 2010-07-08 03:17:32

blamethatkid
Guest

Adding ratings information to RSS feed

Hi All,
I'm brand new to Piwigo and looking to use it for an upcoming project. I was wondering if anyone knows a way to add the rating information of an image as an attribute in the RSS feed. So along with anything any information about the path to the image and description information, I also want the average rating to be part of the RSS feed. I will be using this information with an external client I am also building.

Ideas?

 

#2 2010-07-08 14:57:53

blamethatkid
Member
2010-07-08
2

Re: Adding ratings information to RSS feed

A little more detail ...

I've looked at the Feedcreator.class.php file and I see some optional parameters that can be used including $rating. How do I turn these on in the feed?

Last edited by blamethatkid (2010-07-08 15:08:13)

Offline

 

#3 2010-07-08 18:13:31

blamethatkid
Member
2010-07-08
2

Re: Adding ratings information to RSS feed

Can I not access an image's rating using this:


$feed.= "<rating>".htmlspecialchars(strip_tags(strtr($this->items[$i]->rating,"\n\r","  ")))."</rating>\n";

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact