UNSW Engineering
CSE
CSE Forums
Working together at CSE
 
 Watched TopicsWatched Topics   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  DigestsDigests   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Enhancements to the CSE Forum RSS feed
Post new topic   Reply to topic    CSE Forums Forum Index -> New Services Goto page 1, 2  Next
View previous topic :: View next topic  
Author Message
crh
Craig Howie
CSG
CSG


Joined: 26 Apr 2006
Location: Intersection of Sparkwood and 21

PostPosted: Thu Jun 01, 2006 12:13 pm    Post subject: Enhancements to the CSE Forum RSS feed Reply with quote

Hello all

If you didn't already know, the CSE Forum allows you to monitor new posts using an RSS feed. By using an RSS reader or the Live Bookmarks feature of Firefox, you can quickly see new posts on the forums without having to visit the page. The URL for the RSS feed is : https://cgi.cse.unsw.edu.au/~forums/support/rss.php

I have recently added some new features to the RSS feed which you may be interested in.

Change the number of posts returned (existing feature)
    The default number of posts that is returned in the RSS feed is 15. You can change this to any number between 1 and 50. The querystring option for this is c=

    rss.php?c=30 will return 30 posts

Choose the forums you wish to monitor (changed feature)
    You can change the RSS feed to only include the forums that you are interested in. The querystring option for this is f=. You can now include more than one forum ID if required if you separate them with commas.

    You can find a forum's ID by looking at its URL. For example, the URL for the New Services forum is https://cgi.cse.unsw.edu.au/~forums/support/viewforum.php?f=2. This would mean that the forum ID is 2.

    rss.php?f=2 would only show posts from the New Services forum
    rss.php?f=1,2,12 would show posts from forums 1,2 and 12 (CSE Service Notices, New Services and Requests&Suggestions)

Exclude certain categories (new feature)
    You can exclude certain categories from the RSS feed. The querystring option for this is x=. You can include more than one category ID if required if you separate them with commas.

    A category is a 'main heading' on the main page, such as Announcements or CSE Courses. The category ID can be found by looking at its URL. For example, the URL for the CSE Courses category is https://cgi.cse.unsw.edu.au/~forums/support/index.php?c=6. This would mean that the category ID is 6.

    rss.php?x=6 would exclude any post from the CSE Courses category
    rss.php?x=5,6 would exclude any posts from the Other/Miscellaneous and the CSE Courses categories

Combining querystring options


Last edited by crh on Sat Jun 03, 2006 2:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
mjsh141
Matthew Jason Sharp



Joined: 07 Mar 2006

PostPosted: Sat Jun 03, 2006 1:40 pm    Post subject: Reply with quote

Don't suppose it is possible to add an option to only return 1 result per thread?
Back to top
View user's profile Send private message
wirelessduck
Tomas Cassidy



Joined: 10 Mar 2006
Location: Tk::Exit

PostPosted: Sat Jun 03, 2006 2:30 pm    Post subject: Reply with quote

i tried to view the RSS feed using the Vienna (http://vienna-rss.sourceforge.net/) feedreader, but it doesn't accept the feed. anyone know what might be the problem?
_________________
tcas194/Tomas Cassidy/[fsm]wirelessduck
Back to top
View user's profile Send private message
mjsh141
Matthew Jason Sharp



Joined: 07 Mar 2006

PostPosted: Sat Jun 03, 2006 2:41 pm    Post subject: Reply with quote

You borked the URL?

Vienna is broken?

You aren't giving us much to go on. All I can say is it works for me(TM) using Firefox.
Back to top
View user's profile Send private message
crh
Craig Howie
CSG
CSG


Joined: 26 Apr 2006
Location: Intersection of Sparkwood and 21

PostPosted: Sat Jun 03, 2006 3:06 pm    Post subject: Reply with quote

You will have to install the CSE SSL Root certificate into the OS X system keychain. The feed is sent with SSL using a 'hand-rolled' key.

Firefox maintains its own root certificate list and you've probably ticked 'accept this certificate permanently', which is why it works in Firefox.

I haven't got my Mac running at the moment (it's at Uni), but I had to jump through a few hoops to get it working in an external RSS aggregator. See if you can get this certificate installed into OS X (or your aggregator) http://www.cse.unsw.edu.au/cacert.pem

I'll edit this post on Monday with the necessary steps. In the meantime, see if you can adapt the instructions for Safari on this page http://wiki.cacert.org/wiki/BrowserClients (Obviously download the CSE key linked above and not the one linked on the external page)


Last edited by crh on Sat Jun 03, 2006 3:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
glam
George Chi Hon Lam



Joined: 10 Jan 2006
Location: -Wall -pedantic

PostPosted: Sat Jun 03, 2006 3:15 pm    Post subject: Reply with quote

How about forum with limited access. E.g. I am part of ENGG1811 group but firefox rss can't tell...

How to I tell firefox RSS I am part of that group?
Back to top
View user's profile Send private message
crh
Craig Howie
CSG
CSG


Joined: 26 Apr 2006
Location: Intersection of Sparkwood and 21

PostPosted: Sat Jun 03, 2006 3:18 pm    Post subject: Reply with quote

Sorry the feed doesn't do authentication, so any restricted forums cannot be accessed by RSS. Maybe I will have a look at this over the session break (or maybe not Wink )
Back to top
View user's profile Send private message
wirelessduck
Tomas Cassidy



Joined: 10 Mar 2006
Location: Tk::Exit

PostPosted: Sat Jun 03, 2006 5:00 pm    Post subject: Reply with quote

crh wrote:
I'll edit this post on Monday with the necessary steps. In the meantime, see if you can adapt the instructions for Safari on this page http://wiki.cacert.org/wiki/BrowserClients (Obviously download the CSE key linked above and not the one linked on the external page)

worked perfectly...

just double-click on the certificate file to open the keychain manager, and add the certificate to 'X509Anchors'.
_________________
tcas194/Tomas Cassidy/[fsm]wirelessduck
Back to top
View user's profile Send private message
Jayen
Jayen Dhirendra Ashar



Joined: 28 Jul 2007
Location: Kingsford

PostPosted: Sun Jul 29, 2007 12:28 am    Post subject: Reply with quote

Is it possible to add a switch to the rss feed to not print the "Topic Replies" count? This doesn't seem to play very well with liferea or akregator (though it does seem okay with sage).
_________________
PhD Student
Back to top
View user's profile Send private message
crh
Craig Howie
CSG
CSG


Joined: 26 Apr 2006
Location: Intersection of Sparkwood and 21

PostPosted: Wed Aug 29, 2007 10:38 pm    Post subject: Reply with quote

Topic replies aren't part of the XML sent out. It must be in your client.

Here is a bit of the output for example :

Code:
<rss version="0.92">
<channel>
<docs>http://backend.userland.com/rss092</docs>
<title>CSE Forums</title>
<link>https://cgi.cse.unsw.edu.au:443/~forums/support/</link>
<description>Working together at CSE</description>
<managingEditor>ss@cse.unsw.edu.au</managingEditor>
<webMaster>ss@cse.unsw.edu.au</webMaster>
<lastBuildDate>Wed, 29 Aug 2007 12:35:54 GMT</lastBuildDate>
<item>
<title>General Questions :: RE: Login screen query</title>
<link>
https://cgi.cse.unsw.edu.au:443/~forums/support/viewtopic.php?p=35363#35363
</link>
<pubDate>Wed, 29 Aug 2007 12:26:19 GMT</pubDate>
<description>
Author: <a href="https://cgi.cse.unsw.edu.au:443/~forums/support/profile.php?mode=viewprofile&u=284" target="_blank">Jon</a><br />

Posted: Wed Aug 29, 2007 10:26 pm (GMT 10)<br />
Topic Replies: 1<br /><br />
<span class="postbody">why would you want that?
</span><br />
</description>
</item>

<item>
<title>
Service Problems :: RE: SSL certificate fingerprint mismatch
</title>
<link>
https://cgi.cse.unsw.edu.au:443/~forums/support/viewtopic.php?p=35362#35362
</link>
<pubDate>Wed, 29 Aug 2007 11:58:50 GMT</pubDate>
<description>
Author: <a href="https://cgi.cse.unsw.edu.au:443/~forums/support/profile.php?mode=viewprofile&u=1407" target="_blank">crh</a><br />

Posted: Wed Aug 29, 2007 9:58 pm (GMT 10)<br />
Topic Replies: 1<br /><br />
<span class="postbody">Looks like Robert has just updated the TWiki page. The certificates were renewed today.
</span><br />
</description>
</item>
Back to top
View user's profile Send private message
Jon
Jonathon James Boyd Hughes



Joined: 28 Feb 2006

PostPosted: Wed Aug 29, 2007 10:50 pm    Post subject: Reply with quote

would hate to accuse you of having problems with vision Craig, but I've added some bold to the code you posted...

not that I understand why it's a problem, though I do only use live bookmarks in firefox.
crh wrote:
Topic replies aren't part of the XML sent out. It must be in your client.

Here is a bit of the output for example :

Code:
<rss version="0.92">
<channel>
<docs>http://backend.userland.com/rss092</docs>
<title>CSE Forums</title>
<link>https://cgi.cse.unsw.edu.au:443/~forums/support/</link>
<description>Working together at CSE</description>
<managingEditor>ss@cse.unsw.edu.au</managingEditor>
<webMaster>ss@cse.unsw.edu.au</webMaster>
<lastBuildDate>Wed, 29 Aug 2007 12:35:54 GMT</lastBuildDate>
<item>
<title>General Questions :: RE: Login screen query</title>
<link>
https://cgi.cse.unsw.edu.au:443/~forums/support/viewtopic.php?p=35363#35363
</link>
<pubDate>Wed, 29 Aug 2007 12:26:19 GMT</pubDate>
<description>
Author: <a href="https://cgi.cse.unsw.edu.au:443/~forums/support/profile.php?mode=viewprofile&u=284" target="_blank">Jon</a><br />

Posted: Wed Aug 29, 2007 10:26 pm (GMT 10)<br />
[b]Topic Replies: 1[/b]<br /><br />
<span class="postbody">why would you want that?
</span><br />
</description>
</item>

<item>
<title>
Service Problems :: RE: SSL certificate fingerprint mismatch
</title>
<link>
https://cgi.cse.unsw.edu.au:443/~forums/support/viewtopic.php?p=35362#35362
</link>
<pubDate>Wed, 29 Aug 2007 11:58:50 GMT</pubDate>
<description>
Author: <a href="https://cgi.cse.unsw.edu.au:443/~forums/support/profile.php?mode=viewprofile&u=1407" target="_blank">crh</a><br />

Posted: Wed Aug 29, 2007 9:58 pm (GMT 10)<br />
[b]Topic Replies: 1[/b]<br /><br />
<span class="postbody">Looks like Robert has just updated the TWiki page. The certificates were renewed today.
</span><br />
</description>
</item>
Back to top
View user's profile Send private message
Jon
Jonathon James Boyd Hughes



Joined: 28 Feb 2006

PostPosted: Wed Aug 29, 2007 10:53 pm    Post subject: Reply with quote

hmm, can't edit posts in this forum...

the bolding didn't work because it's in a code tag (a vBulletin forum I visit quite frequently would still make it bold.......), but look at the 6th line from the bottom.
Back to top
View user's profile Send private message
crh
Craig Howie
CSG
CSG


Joined: 26 Apr 2006
Location: Intersection of Sparkwood and 21

PostPosted: Wed Aug 29, 2007 11:29 pm    Post subject: Reply with quote

Thanks. I can see it now, but I was originally looking for a field and missed it.

It is only in the description field which is a free text field as far as I am aware. I can't see how it would cause any problems for a reader, and I am pretty sure that it shouldn't either.

UPDATE : just tested on akregator 1.2.5 installed on CSE computers - no problem at all
Back to top
View user's profile Send private message
Jayen
Jayen Dhirendra Ashar



Joined: 28 Jul 2007
Location: Kingsford

PostPosted: Thu Aug 30, 2007 7:23 am    Post subject: Reply with quote

How did you test it? You need the topic replies count to change to actually see the problem (like you will with this post.) I'm also using akregator 1.2.5, so maybe there is a setting I'm missing.
_________________
PhD Student
Back to top
View user's profile Send private message
crh
Craig Howie
CSG
CSG


Joined: 26 Apr 2006
Location: Intersection of Sparkwood and 21

PostPosted: Thu Aug 30, 2007 7:43 am    Post subject: Reply with quote

Perhaps you could explain the nature of your problem.

My testing involved loading the feed.

UPDATE : I think I know what you are referring to. Akregator is displaying a duplicate copy of each post, as the description has changed to reflect the number of replies. I haven't seen this happen on any of the readers I have though.

This behaviour seems odd. Why would you want duplicate posts every time an article/post is changed in some way ? NetNewsWire on the Mac has successfully identified each edit of this post and updated the post - no duplicates.


Last edited by crh on Thu Aug 30, 2007 8:12 am; edited 3 times in total
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CSE Forums Forum Index -> New Services All times are GMT + 10 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group