Board index PBase Feature Requests New tool - RSS feed generator for user's recent gallery

Feature Requests

New tool - RSS feed generator for user's recent gallery

Request changes or modifications.
srijith
Moderator
 
Posts: 2321
Location: Amsterdam


Post Tue Jul 26, 2005 7:31 am


Oh well, can't help there. Beyond my reach :) Anyway the new format 'username.rss' looks more tidy hence I am sticking to it. Maybe at some point PBase guys may decide to help in this and add the ref inside the headers.

robert
 
Posts: 114

Comments/question

Post Tue Jul 26, 2005 8:17 pm


Hello Srijith:

Again, thanks for sharing this. I have implemented it on two PBase sites already. A couple of things......

1) It would be nice if the feed contained a few sentences of the gallery description. Perhaps, this not possible because the description tag is being used for the 'Last Update' info.

2) When the code is displayed in Firefox, you a get the warning: "This XML file does not appear to have any style information associated with it...." This appears to be a common error with RSS feeds... but not sure what it means? If I run my feed through a validator (http://feedvalidator.org/), it validates perfectly.

Robert

srijith
Moderator
 
Posts: 2321
Location: Amsterdam

Re: Comments/question

Post Wed Jul 27, 2005 1:26 am


r53lanc wrote:1) It would be nice if the feed contained a few sentences of the gallery description. Perhaps, this not possible because the description tag is being used for the 'Last Update' info.

I could reuse the description tag for what you want, the problem being that I need to fetch each gallery's individual main page and parse that page to get the description. That would mean additional burden on the servers, but then since the script is run maybe once a day for each user, it should be ok. Will get back on this to see how far I can work on this.
2) When the code is displayed in Firefox, you a get the warning: "This XML file does not appear to have any style information associated with it...." This appears to be a common error with RSS feeds... but not sure what it means? If I run my feed through a validator (http://feedvalidator.org/), it validates perfectly.

That is not a problem as such because theoretically an RSS feed is indeed an XML feed and since it is meant for syndication and not for display in the raw format, no style is associated with the xml file and hence the "warning" from FF. That is the way RSS/XML and browsers work.

srijith
Moderator
 
Posts: 2321
Location: Amsterdam

Re: Comments/question

Post Wed Jul 27, 2005 3:42 am


srijith wrote:I could reuse the description tag for what you want, the problem being that I need to fetch each gallery's individual main page and parse that page to get the description. That would mean additional burden on the servers, but then since the script is run maybe once a day for each user, it should be ok. Will get back on this to see how far I can work on this.


I have managed to code it in, but this is going to mess badly with people who have put more than just text descriptions inside their descriptions sections. Arjun, for example, has put in an image of PBase logo. So for now I am not adding this functionality in.

robert
 
Posts: 114

description tag

Post Wed Jul 27, 2005 5:47 am


OK Srijith... thanks for trying. Just an idea as the feed looks a bit sparse.

Robert

mike5
 
Posts: 1

Re: Comments/question

Post Thu Aug 04, 2005 3:27 am


srijith wrote:
2) When the code is displayed in Firefox, you a get the warning: "This XML file does not appear to have any style information associated with it...." This appears to be a common error with RSS feeds... but not sure what it means? If I run my feed through a validator (http://feedvalidator.org/), it validates perfectly.

That is not a problem as such because theoretically an RSS feed is indeed an XML feed and since it is meant for syndication and not for display in the raw format, no style is associated with the xml file and hence the "warning" from FF. That is the way RSS/XML and browsers work.


Have you tried modifying your script so it returns

Code: Select all
Content-Type: application/rss+xml


in the http header? I think that would help browser identify the contents as an RSS feed.

Cheers, Mike5

srijith
Moderator
 
Posts: 2321
Location: Amsterdam

Re: Comments/question

Post Thu Aug 04, 2005 3:38 am


mike5 wrote:Have you tried modifying your script so it returns

Code: Select all
Content-Type: application/rss+xml


in the http header? I think that would help browser identify the contents as an RSS feed.

You are right, I should have done that. Done now.

michaelsv
 
Posts: 802

RSS feeds

Post Fri Sep 16, 2005 12:14 am


Srijith, Thanks a lot for this great feature. I've added provided HTML code to my galleries and it works great. Very cool.

Michael.

PS. The only thing that can make us even happier is a slideshow :)

luc_vn
 
Posts: 283


Post Mon Oct 17, 2005 6:49 pm


Srijith, fantastic feature and nice workaround... Thanks!

Could this be reproduced regarding the comment management part?

I mean, would it be possible to be "fed" when I get a new comment?


Kind Regards,

Luc VN

hmetal
 
Posts: 246


Post Wed Oct 19, 2005 7:32 am


Nice job!

How about a nice little JavaScript version that can be embedded into blogs such as those at blogspot.com? Just something simplethat outputs the gallery and # of photos, one gallery per line.

Would be sweet for sure. :)
Ray A. Akey
http://luminescentmemories.com - Luminescent Memories Photography
http://www.flickr.com/photos/hmetal - My Flickr
http://www.pbase.com/hmetal/pad - My PAD
http://codemain.com - A small portfolio

srijith
Moderator
 
Posts: 2321
Location: Amsterdam


Post Wed Oct 19, 2005 8:57 am


hmetal wrote:Nice job!

How about a nice little JavaScript version that can be embedded into blogs such as those at blogspot.com? Just something simplethat outputs the gallery and # of photos, one gallery per line.

Would be sweet for sure. :)

You could use http://www.rss-to-javascript.com/ and get it working like what Rober has done at http://www.pbase.com/robert

srijith
Moderator
 
Posts: 2321
Location: Amsterdam


Post Wed Oct 19, 2005 9:02 am


luc_vn wrote:Could this be reproduced regarding the comment management part?
I mean, would it be possible to be "fed" when I get a new comment?

That could be difficult because you need to be logged in to see the comment count that is visible in the profile. I don't want to mess with things like password and RSS at the same time. Not good for anyone's health :)

charleswilliam3
 
Posts: 320


Post Wed Oct 19, 2005 7:05 pm


Can someone please pm me and explain what an rss feed is? I would really appreciate it.
Helpful links and stuff - http://cwlawrencephoto.blogspot.com/
Submit your Photos to Microstock and make $, try it out, you won't be sorry - http://submit.shutterstock.com/?ref=64747 or http://istockphoto.com/index.php?refnum=CWLawrence

jin_chiuan
 
Posts: 1

Re: New tool - RSS feed generator for user's recent gallery

Post Thu Oct 27, 2005 10:06 am


Great job!!

Thanks srijith :-)

srijith
Moderator
 
Posts: 2321
Location: Amsterdam


Post Thu Oct 27, 2005 1:45 pm


charleswilliam3 wrote:Can someone please pm me and explain what an rss feed is? I would really appreciate it.

http://en.wikipedia.org/wiki/RSS_%28file_format%29

PreviousNext

Board index PBase Feature Requests New tool - RSS feed generator for user's recent gallery

Who is online

Users browsing this forum: ClaudeBot and 2 guests