MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Any RSS feed for user activity stream ?  (Mono Support )

Viewed 10617 time(s), 7 post(s) 3/27/2014 2:04:22 PMby super
super

super

3/27/2014 2:04:22 PM
Is there any RSS feed for User Activity steam which is "Let's socialize" ?
This content has not been rated yet. 
6018 Reputation 709 Total posts
super

super

3/27/2014 5:31:00 PM
anyone ?
This content has not been rated yet. 
6018 Reputation 709 Total posts
vzakanj

vzakanj

3/28/2014 4:19:09 PM
Hi Super,
currently there is no RSS feed for the "Let's socialize" page.

Let me know if you'd want to implement it yourself and you need some pointers.

Regards,
Vedran
This content has not been rated yet. 
345 Reputation 61 Total posts
super

super

3/28/2014 5:05:53 PM
Yes, I want to implement this and I need help with  the coding. could you please help ?
This content has not been rated yet. 
6018 Reputation 709 Total posts
vzakanj

vzakanj

3/31/2014 10:49:41 AM
Hi Super, 
what you need to do is create your own control which inherits the MonoX control in question (for Let's Socialize that's usually Events.ascx) and you need to implement the IRssWebPart interface.

First you need to implement the GetRssChannel() method to return a RssChannel and register the page with rss engine:

Easiest way to do this is setting the underlying RssChannel property on the init event with something like this:

RssEngine.RssEngine.RegisterProviderModule(this.Page, this);
Then setup the Rss channel:

if (RssChannel == null)
{
    RssChannel = new RssChannel();
    RssChannel.Link = Request.RawUrl;
    RssChannel.Items = new System.Collections.Generic.List<RssChannelItem>();
}
Now when the RSS channel is created you need to add some items to it. This is usually best done when binding the entities to the control (ItemDataBound event of the repeating control, in case of Events.ascx that's a ListView control). 
In the OnItemDataBound event create create a new RssChanneltem and assign it's properties to what you want to have in the feed (Title, Description, Link etc.) and add it to the previously created RssChannel.

RssChannelItem rssItem = new RssChannelItem();
// here set the properties of rssItem to what you need  in the feed, then add to the RssChannel
RssChannel.Items.Add(rssItem);

One more thing you need to do is set the RssEnabled property to true.

Let me know if this helps.

Regards,










Rated 5.00, 1 vote(s). 
345 Reputation 61 Total posts
super

super

4/1/2014 1:35:43 PM
Is this method good for 4.9 version or 5.1 beta ?
This content has not been rated yet. 
6018 Reputation 709 Total posts
vzakanj

vzakanj

4/1/2014 2:28:18 PM
This should be working for both 4.9 and 5.1 since there weren't any changes which affect the RSS engine.

Regards,
Vedran
This content has not been rated yet. 
345 Reputation 61 Total posts