struggling with use of RSS

patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Sun, 2006-02-19 22:47

I presume I am overlooking something but I cannot get the RSS option to function. How do I define RSS feeds? When I click upon the "RSS feed for this album" link on the pop up block, I get the following...and Firefox does not pop up the little RSS feed icon either.

---------snip ----------------

This XML file does not appear to have any style information associated with it. The document tree is shown below.

-
<rss version="2.0">
-
<channel>
<title>picks</title>
-
<link>
http://www.idyll.com/gallery2/main.php?g2_itemId=39
</link>
<description/>
<language>en-us</language>
<copyright>idyll.com 2006</copyright>
<generator>Gallery 2 RSS Module, version 1.0.3</generator>
<lastBuildDate>Sun, 19 Feb 2006 14:41:49 -0800</lastBuildDate>
<ttl>120</ttl>
-
<image>
-
<url>
http://www.idyll.com/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=43
</url>
<title>picks</title>
-
<link>
http://www.idyll.com/gallery2/main.php?g2_itemId=39
</link>
</image>
</channel>
</rss>

-------- snip --------------

Gallery version = 2.1-rc-1a core 1.0.28
PHP version = 4.3.9 apache2handler
Webserver = Apache/2.0.52 (Red Hat)
Database = postgres7
Toolkits = Exif, ArchiveUpload, Dcraw, Ffmpeg, ImageMagick, NetPBM, Gd
Operating system = Linux 2.6.9-11.ELsmp #1 SMP Fri May 20 18:25:30 EDT 2005 x86_64
Browser = Mozilla/5.0(Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
http://www.idyll.com/gallery2

Right now, if you talk to people
who try to run real-world systems,
it is a struggle against entropy.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2006-02-19 23:16
 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Sun, 2006-02-19 23:56

How do I define an RSS feed?

I pasted the link you reference into two different RSS readers and each reported "it is not a valid RSS feed".

I am using an RSS reader, the latest Firefox, as well as Thunderbird which opens and reads RSS feeds from four sources at this time. I am missing something insofar as how to enable the feeds for albums, etc.

Is this documented anyplace?

thanks

patrick

 
kaptainkory

Joined: 2006-02-04
Posts: 18
Posted: Mon, 2006-02-20 20:27

Same problem here, too. (Sorry I can't post a solution. I'm just letting others know this appears not to be an isolated error.)

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Tue, 2006-02-21 20:32

<Update>: I managed to clean it up but cannot get by this initial error...how wrong can this first line be???

----------snip -----------

This feed does not validate.

*

line 1, column 0: XML parsing error: <unknown>:1:0: syntax error [help]

- <rss version="2.0">

-----------snip ------------

</Update>

Here is the debug information for a failed attempt to establish an RSS feed from this URL...

http://www.idyll.com/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=46

from an online RSS validator service, ( http://feedvalidator.org ) it returned this...

----------- snip =-------------------

line 19, column 74: XML parsing error: <unknown>:19:74: not well-formed (invalid token) [help]

http://www.idyll.com/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=65

---------snip -------------

Any help?

thanks

patrick

Right now, if you talk to people
who try to run real-world systems,
it is a struggle against entropy.

 
grund

Joined: 2005-12-17
Posts: 32
Posted: Wed, 2006-02-22 09:55

Hi,

The feed does validate, it only gives a warning that the image isn't of an supported image extention.
But you get the congratulations message.
That is because in the specs the url doesn't have to be of a image extention.

Custom Feeds are defined in the Site admin, or on the page for admin/album owners.
This only if you enabled that feature.

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Wed, 2006-02-22 14:00

Thanks grund...

Question: can anyone point me to a site running this release with an RSS feed I can validate or use? I mean literally, I cannot make the connection between the clickable link which presumably shows the guts of an RSS feed for that particular album, and a live feed.

I save the output of the link to the root directory of my web site as an .xml file, and I cannot use it with any of my RSS readers. It seems to be choking upon the top most line,

- <rss version="2.0">

I know am being dumb here, but I cannot connect the dots and make any sense of it.

regards,
patrick

Right now, if you talk to people
who try to run real-world systems,
it is a struggle against entropy.

 
grund

Joined: 2005-12-17
Posts: 32
Posted: Wed, 2006-02-22 14:17

Just point your reader to the link should do the trick.
eg the http://www.idyll.com/gallery2/main.php?g2_view=rss.SimpleRender&g2_itemId=7 in you RSS reader.

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Wed, 2006-02-22 20:36

<Editorial>: I wish there were some documentation specific to the use of RSS on this release of Gallery. I have thrashed for days, and finally have a valid RSS feed. The problem is now, I cannot seem to make anything appear but a little blue squiggly arrow. I am sure I need to configure the newly appearing "Configure RSS" option, but thus far can't seem to make any changes which manifest themselves as a list. Sigh.
</Editorial>

But I shall persist...

thanks for your help grund

regards,

patrick

Right now, if you talk to people
who try to run real-world systems,
it is a struggle against entropy.

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Thu, 2006-02-23 14:42

I just uploaded the latest build using CVS, and cannot see any change in the behavior of RSS. The RSS link validates, I add a few items to test the presence of new items, the link reflects no updates. In my previous G1 installation RSS popped into place instantly with almost no fiddling. This one is challenging.

Can anyone point me to an active RSS feed using the latet build so I can try to extrpolate what I am missing?

regards,

patrick

Right now, if you talk to people
who try to run real-world systems,
it is a struggle against entropy.

 
grund

Joined: 2005-12-17
Posts: 32
Posted: Thu, 2006-02-23 19:34

Just create a small how to use RSS simplefeed settings.
It's just in draft, but it should help you on your way.

 
dc2447

Joined: 2002-09-22
Posts: 130
Posted: Thu, 2006-02-23 21:09
grund wrote:
Just create a small how to use RSS simplefeed settings.
It's just in draft, but it should help you on your way.

All I get is

Quote:
No feeds have yet been defined

Surely there needs to be a top level feed for new albums?

 
grund

Joined: 2005-12-17
Posts: 32
Posted: Thu, 2006-02-23 21:55

dc2447: in site Admin -> RSS, deselect 'Allow configurable RSS feeds to be used', select 'Allow Simple RSS Feed to be used'

 
dc2447

Joined: 2002-09-22
Posts: 130
Posted: Sun, 2006-02-26 13:13

I'm sorry I missed your post Grund - I have managed to get to the point where my RSS feed works and it contains the data I wanted. I am over the moon, I am delighted.

The steps I needed to take where:

1: Enable module (obviously)
2: Under siteamin enable "Allow RSS feeds of subalbums of an album"
3: On the top level album - define rss feed -
4: enable : Sub-albums of this album
5: enable : new items only

The feed now works great, I am now going to be able to include the latest updates on a non G2 page by parsing the feed!

Really am delighted.

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Sun, 2006-02-26 15:41

dc2447 - YOU RULE.

Thank you very much for figuring this out. I tried virtually every combination of options and this one is the one which works!

MODERATOR - please use his instructions in the online documentation.

Well done. Thank you also to grund for working with us on this issue.

regards,

patrick

http://www.idyll.com/gallery2

Right now, if you talk to people
who try to run real-world systems,
it is a struggle against entropy.

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Sun, 2006-02-26 15:41

dc2447 - YOU RULE.

Thank you very much for figuring this out. I tried virtually every combination of options and this one is the one which works!

MODERATOR - please use his instructions in the online documentation.

Well done. Thank you also to grund for working with us on this issue.

regards,

patrick

http://www.idyll.com/gallery2

Right now, if you talk to people
who try to run real-world systems,
it is a struggle against entropy.

 
dc2447

Joined: 2002-09-22
Posts: 130
Posted: Sun, 2006-02-26 16:13
patrickthickey wrote:
dc2447 - YOU RULE.

Thank you very much for figuring this out. I tried virtually every combination of options and this one is the one which works!

MODERATOR - please use his instructions in the online documentation.

Well done. Thank you also to grund for working with us on this issue.

regards,

patrick

http://www.idyll.com/gallery2

Right now, if you talk to people
who try to run real-world systems,
it is a struggle against entropy.

Glad you got there too.

I was going to add this (and some others bits) to the Wiki but despite reading the docs I am a little unclear as to what the standard is for new pages - the wiki pages seem to point to /node/whatever rather than wiki pages - maybe there is some CMS integration that isn't obvious.

 
yarivk9
yarivk9's picture

Joined: 2005-11-26
Posts: 12
Posted: Wed, 2006-03-22 16:52

Hey Patrick,
I am not sure if the following is a problem, or misunderstanding of the HOWTO. Using G2.1-rc2a, I've done:
* Installed and Activated the RSS module
* Selected Simple Feed only with following settings:
Sub-albums of the album
Comments (always)
New item only
* Saved

My problem is that I don't see the option "RSS Link to this album" among the album options. I should highlight that the module generally works and manually crafting a URL will produce a valid feed like for example: http://www.sfpsyphotos.com/gallery/main.php?g2_view=rss.SimpleRender&g2_itemId=7

How can I get the RSS feed link to appear for every album?

Thanks,
Yariv

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Wed, 2006-03-22 17:19

Yariv ...

did you go into your theme and "tell" it to show the RSS feed in the sidebar? It is an option like any other and will not appear by default. What theme are you using?

regards,
patrick

Gallery version = 2.1-rc-2 core 1.0.33
PHP version = 4.3.9 apache2handler
Webserver = Apache/2.0.52 (Red Hat)
Database = postgres7 , lock.system=flock
Toolkits = Exif, ArchiveUpload, Dcraw, Ffmpeg, ImageMagick, NetPBM, Gd
Acceleration = full/900, full/900
Operating system = Linux 2.6.9-11.ELsmp #1 SMP Fri May 20 18:25:30 EDT 2005 x86_64
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
http://www.idyll.com/gallery2

 
yarivk9
yarivk9's picture

Joined: 2005-11-26
Posts: 12
Posted: Wed, 2006-03-22 17:33

Probably not...
Via "site admin" the only option is to add the block "Show RSS Feeds", which shows that none where defined.
My site uses 3 themes. A closer look shows that:
Classic - no RSS link in albums
Matrix - no RSS link in album
Floatrix - link is there! :-)
So I guess what I really need to do is edit some templates...

Any quick advice or references to save me the trouble of reading the Floatrix code and see how it's done?

Thanks for your help. This is really a cool and IMPORTANT module!

Yariv

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Wed, 2006-03-22 17:41

I don't think you've poked deeply enough.

Site Admin/Themes/-pick your theme-/Blocks to Show in the Sidebar

Have you verified this setting in each of the problem themes? It's just like you need to tell the theme to show ANY options in the side bar like Search, Links, item Actions, etc. The RSS will NOt just appear, you must advise each theme individually where to display the RSS link.

Make sense?

patrick

Right now, if you talk to people
who try to run real-world systems,
it is a struggle against entropy.

 
yarivk9
yarivk9's picture

Joined: 2005-11-26
Posts: 12
Posted: Wed, 2006-03-22 18:00

To clarify - under "Site Admin > Themes > ... " I do see an option to add a block called "List of RSS Feeds" in every theme. If I add it, the block will appear and show that there are no defined feeds. This is not what I am looking for though. I am trying to display the appropriate RSS feed link in every album so that people can use it to get updates in each album.

Should there be another block besides "List of RSS Feeds"? It is strange because the Floatrix theme does display exactly what I need, even without adding anything to the list of blocks...

Maybe I am still missing something but I don't want to waste your time. If you feel this is a real issue I'll be happy to continue for the benefit of others, but otherwise I'm sure I can edit the Matrix and Classic templates and add this kind of link.

Yariv

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Wed, 2006-03-22 18:06

Not wasting time, at least yet ;-)

I edited a local file of my theme.tpl and inserted this inside the <head> of the page

<link rel="alternate" title="idyll RSS" href="http://www.idyll.com/gallery2/main.php?g2_view=rss.Render&g2_name=idyll.com" type="application/rss+xml">

I suspect you need to do this for the non-functoning themes?

/gallery2/themes/YOURTHEME/templates/local/theme.tpl

patrick

 
yarivk9
yarivk9's picture

Joined: 2005-11-26
Posts: 12
Posted: Wed, 2006-03-22 18:21

That will probably do it, although the link above will only work for non-simple mode, right?
I was thinking in lines of adding the following tag:

<a href="/gallery/main.php?g2_view=rss.SimpleRender&amp;g2_itemId={ $theme.item.id }">RSS Feed for this Album</a>

Patrick ROCKS!

Thx,
Yariv

 
sneeper

Joined: 2005-10-24
Posts: 20
Posted: Fri, 2006-03-24 19:38

I have two RSS related questions for Gallery 2.1 since I was struggling with this last night.

1) The RSS feeds seem to only show new items from the last X days.. I'm not sure what that time limit is, or if it's even configurable. On my album, I set this RSS module to "Subalbums" and it only shows 2 albums (the 2 most recent). It seems under Gallery1, it always showed the last n (10?) number of galleries.. I'm not sure that number was, but even if I didn't add an album in months, it would always show the last 10 in my RSS. Is there a way to get this behavior in Gallery 2?

2) I'd like to add the RSS feed to my top of my theme so that Firefox and Safari know there is a Feed there to subscribe to, but I'm using a multisite install. If I modify the central code base (Where the themes live), then the link will be wrong for the various multisite installs. Is there a good solution to this situation (besides not using multisite which is too advantageous for me to give up)? Can a multisite have a custom theme just for itself? I know that's not REALLy RSS related but it would solve this problem related with RSS.

Thanks for any help!

--Andy

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Sat, 2006-03-25 05:16

sneeper I'm not sure about #1 but I know the part you need to add.

<link rel="alternate" type="application/rss+xml" title="RSS" href="{g->url arg1="view=rss.SimpleRender" arg2="itemId=`$theme.item.id`"}" />

This will generate the Simple RSS. The thing I need to find out is how to detect if the user has the Simple part of the RSS activated and how to detect if the page is either an album or an item. I know how to do the second part, but the first part I need to think about some more.

 
Glaldhu

Joined: 2006-03-25
Posts: 1
Posted: Sat, 2006-03-25 10:46
sneeper wrote:
1) The RSS feeds seem to only show new items from the last X days..

I had the same problem. There is a cut-off time hardcoded to 20 days in /modules/rss/classes/RssHelper.class.
To get a full feed I changed

 WHERE
      [GalleryEntity::$timestamp] >= $timeCutOff
      AND
      [$table::id] = [GalleryItemAttributesMap::itemId]
      AND
      [$table::id] = [GalleryEntity::id]";

to

WHERE
      /* [GalleryEntity::$timestamp] >= $timeCutOff
      AND */
      [$table::id] = [GalleryItemAttributesMap::itemId]
      AND
      [$table::id] = [GalleryEntity::id]";
 
dsawchuk

Joined: 2005-01-22
Posts: 84
Posted: Wed, 2006-05-24 06:48

n/m

 
baldylox

Joined: 2006-05-13
Posts: 2
Posted: Wed, 2006-09-20 17:10

I dont understand how to define a feed. I have gone through the setup and have added rss in my dropdown box for album views. every album page just sayd no feeds defind. seen at the bottom http://www.baldylox.com/wp-gallery2.php

id like to add a rss link to my main sidebar using WP Andreas09 theme. I want a 3rd rss link to subscribe to using the main album rss feed which is http://www.baldylox.com/wp-gallery2.php?g2_view=rss.SimpleRender&g2_itemId=7

im not much of a coder, i just copied one of the feeds and changed the description, but using the rss feed link sends me to www.baldylox.com/baldylox.com suggestions? Do i need something more in the header?

thx

 
baldylox

Joined: 2006-05-13
Posts: 2
Posted: Mon, 2006-09-25 15:10

bump

 
NooB

Joined: 2007-02-02
Posts: 7
Posted: Fri, 2007-02-02 18:25

Howdy

New to G2, and so far so good. One thing I was REALLY keen on getting going was the RSS feed. Typically, I can't get it to work.

My gallery will be at http://www.dicksons.ca/gallery but even though I have the RSS Feeds boxes showing in the side bar (in fact I seem to have acquired two!) when I click on the feed button I get an error message:

Firefox 2:
XML Parsing Error: junk after document element
Location: http://www.dicksons.ca/gallery/main.php?g2_view=rss.SimpleRender&g2_itemId=7
Line Number 15, Column 1:<rss version="2.0">
^

IE6:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

--------------------------------------------------------------------------------

Only one top level element is allowed in an XML document. Error processing resource 'http://www.dicksons.ca/gallery/main.ph...

<rss version="2.0">
-^

If anyone can help with any ideas as to how I can get the feed to work (i.e. show in the address bar of Firefox, or simply allow a user to click it and then use Bloglines etc to store it) I'd be really grateful.

Easy now
NooB

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2007-02-02 18:50

Works fine for me in FF2 and IE7. No errors reported.
See: http://validator.w3.org/feed/
it's a valid RSS feed.

Can't test with IE6 right now. But IE6 doesn't have a built-in RSS reader anyway.

--------------
Enter the Gallery 2 Theme Contest today!

 
justinj1

Joined: 2005-11-21
Posts: 67
Posted: Sat, 2007-02-03 09:09

What services provide email notices of RSS updates, I'm signed up for Yahoo alerts and Feedblitz but they dont send the emails :(

The feed seems OK http://themot.org/gallery/srss/7

I'm using the simple feed settings in the gallery

 
NooB

Joined: 2007-02-02
Posts: 7
Posted: Sun, 2007-02-04 20:54

Hi all

Not sure what happened, but the feed is now working properly. May have been to do with me using a work PC as it works fine on my home machine.

Just wondering though - how do I get the RSS icon to appear in the address bar? And what can I do to get rid of the "No feeds have yet been defined"? How do I "define" a feed?

Muchas thanks

 
Aaaamory

Joined: 2007-05-27
Posts: 6
Posted: Tue, 2007-06-12 19:31

Is there a way to exclude a single subalbum from the feed? I like how the top album has a feed that'll update people whenever there's an upload in any of the albums, but I have one album with a user restriction (Adults only!!! Need a password to enter) that is showing up in the feed as well. They can even view the item from the url in the feed. It would be nice to have a different feed for that album and its subalbums.

I really would like to have my feed suitable for everyone, except that I have that one little problem.

 
ztampfhung

Joined: 2006-02-27
Posts: 69
Posted: Sun, 2009-04-12 04:00

I have the same problem with baldylox and NooB above: What can I do to get rid of the "No feeds have yet been defined"? How do I "define" a feed?
Can anyone help?

Thanks a lot in advance,

~fhung~

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2009-04-12 04:20
 
ztampfhung

Joined: 2006-02-27
Posts: 69
Posted: Sun, 2009-04-12 04:26

Thanks, suprsidr! I've been to that link but still couldn't find how to "Define Feeds"! What am I missing? Sorry!

~fhung~

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2009-04-12 12:49

So you read it then?

Quote:
For administrators

Enable the module in the administrator interface.

You can then set the administrator options:

* enabling or disabling simple feeds and configurable feeds
* for configurable feeds, enable or disable the various types of feeds (some may generate more load on your server)
* set the default and maximum values for feeds, including maximum items, which also has an influence on performance ....

Quote:
For item owners

If the administrator has enabled configurable feeds, you will be able to create feeds for the albums and photos (and other items) that you own.

Go to the item, and you should see Configure RSS Feeds in the Action menu. This will let you create a new feed, edit a previously created feed, or get a list of feeds for this item. ....

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
ztampfhung

Joined: 2006-02-27
Posts: 69
Posted: Sun, 2009-04-12 15:24

Hi, Yes, I did set the administrator options, I chose "Allow Simple RSS Feed to be used " but under the "List" tab, I go this:

Global list of RSS feeds
No feeds have yet been defined

The thing is, when I click the "RSS Feed for this Album" on the drop down menu of << album actions >>, it works fine. It shows the options on how to subscribe and it works. The problem is that in the Block: "List of RSS Feeds" it shows "No feed have been defined yet."

So I'm not sure how to "define" the feeds so that they will appear on the List of RSS Feeds.

Thanks!

~fhung~

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2009-04-12 16:51
 
ztampfhung

Joined: 2006-02-27
Posts: 69
Posted: Mon, 2009-04-13 03:32

Oh my screenshots look a bit different, perhaps mine is older version? My G2 is 2.2.4 - I plan to upgrade it once I have fixed this problem.

Here are my screenshots:
1. Settings
2. Simple Feed Settings
3. List

Thank you!!!

~fhung~

 
ztampfhung

Joined: 2006-02-27
Posts: 69
Posted: Mon, 2009-04-13 06:43

Hi, I have upgraded my gallery to 2.3. - but in the Admin, there is no changes on the List tab although I did get additional options under the Settings and Simple Feed Settings.

What did I miss?

Thanks,

~fhung~