ZenphotoCMS Forum
how can i return an RSS feed based on tags? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: how can i return an RSS feed based on tags? (/thread-5385.html)



how can i return an RSS feed based on tags? - tagquestion - 2009-06-24

for the life of me i can't figure this out.

i want to get an RSS feed from my zenphoto that is based on a query for any tag. like lets say i have 20 random images all tagged with the word "monster". I want to return an RSS feed for all images with that tag monster.

i know you can generate an RSS feed for any specific photo album, which is nice, so is there a way to do it by tags? this is incredibly important for me.

the reason is, i have 4 categories.. and each category is going to have photo albums in it. i need a way to categorize all my photo albums, so I'm using 4 tags, but i have no way to get the RSS feed using the tags..




how can i return an RSS feed based on tags? - acrylian - 2009-06-25

Our rss feeds simply do not use tags. You would have to write your own rss feed for that.




how can i return an RSS feed based on tags? - tagquestion - 2009-06-30

I'm looking at the RSS.php but this is way over my head. Is this a little script someone could whip up for me? Basically just allowing me to supply like

rsstag.php?tag=SomeWord

and get all albums with that tag?




how can i return an RSS feed based on tags? - tagquestion - 2009-06-30

in fact, i'm using phpAdmin and browsing through the SQL database, and even though I added tags to my photo albums... I'm looking at the zp_albums structure and results and theres not a single mention of tags anywhere.. so how are tags being associated with albums in the database and where?




how can i return an RSS feed based on tags? - acrylian - 2009-06-30

Tags are stored in the "tags" table and their relation to albums/images in the "obj_to_tag" table.

You still need to make your own rss feed.




how can i return an RSS feed based on tags? - tagquestion - 2009-06-30

okay. I just lack the PHP knowledge to pull this off, that is.. looping through obj_to_tag to find every album ID attached to a tagID and then returning those albums in an rss feed.

so if theres anyone out there who can help with this.. i'd be indebted to you.