Page 2 of 4

PostPosted: Tue Jul 26, 2005 7:31 am
by srijith
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.

Comments/question

PostPosted: Tue Jul 26, 2005 8:17 pm
by robert
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

Re: Comments/question

PostPosted: Wed Jul 27, 2005 1:26 am
by srijith
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.

Re: Comments/question

PostPosted: Wed Jul 27, 2005 3:42 am
by srijith
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.

description tag

PostPosted: Wed Jul 27, 2005 5:47 am
by robert
OK Srijith... thanks for trying. Just an idea as the feed looks a bit sparse.

Robert

Re: Comments/question

PostPosted: Thu Aug 04, 2005 3:27 am
by mike5
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

Re: Comments/question

PostPosted: Thu Aug 04, 2005 3:38 am
by srijith
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.

RSS feeds

PostPosted: Fri Sep 16, 2005 12:14 am
by michaelsv
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 :)

PostPosted: Mon Oct 17, 2005 6:49 pm
by luc_vn
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

PostPosted: Wed Oct 19, 2005 7:32 am
by hmetal
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. :)

PostPosted: Wed Oct 19, 2005 8:57 am
by srijith
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

PostPosted: Wed Oct 19, 2005 9:02 am
by srijith
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 :)

PostPosted: Wed Oct 19, 2005 7:05 pm
by charleswilliam3
Can someone please pm me and explain what an rss feed is? I would really appreciate it.

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

PostPosted: Thu Oct 27, 2005 10:06 am
by jin_chiuan
Great job!!

Thanks srijith :-)

PostPosted: Thu Oct 27, 2005 1:45 pm
by srijith
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