Programatically Adding A Blog and Forum To Mirrored Feed

rated by 0 users
This post has 4 Replies | 2 Followers

Not Ranked
Posts 36
Points 565
Jeff Stull Posted: Wed, Apr 16 2008 12:41 AM

 HI,

Could someone steer me in the right direction?

What control and or method would I use to programatically add Blog and Forum content to a mirrored feed?

Thank a lot.

Jeff

 

Top 25 Contributor
Posts 1,879
Points 37,940
CS Developers
Jose Lema replied on Sun, Apr 20 2008 3:06 AM

Hi Jeff,

Can you clarify a bit? I'm not sure what you mean by adding content to a mirrored feed.

One is glad to be of service...

Jose Lema

  • | Post Points: 35
Not Ranked
Posts 36
Points 565

 Good Day Jose,

I have successfully used the below code snippets to add the Content supplied by my Consultant Members in their Blog to a Rolled up Blog that has no content but that added by the Mirror set up for it (i.e. http://www.exceptionalconsultants.com/blogs/computer_consultant_supplier_and_educator_content/rss.aspx).

This method seems to work well and gives me 95% of the desired effect except for one thing.  I do not want the content in the mirrored Blog to appear anywhere else in my site except on the feed as shown above.  If you use this URL http://www.exceptionalconsultants.com/search/SearchResults.aspx?q=nichols you will see that the search results show the Consultant Profile for Mike Nichols appears in his own Weblog, as well as, in the Computer Consultant, Supplier and Educator Content (Weblog) posted by Anonymous, which of course is the Mirrored Blog. 

Is there anyway that you know of to keep the Mirrored Content from showing up in Search Results and Tags (like Computer).  The trouble with this is the duplicity.  Or alternatively, some other method you can recommend to aggregate all Member Blog Content who are say ‘Computer Consultants’ into a feed I can pass along to Feed burner?  You see, when a Consultant signs up I control the whole process programmatically once he or she selects the Consulting Group (like Computer) that they will belong to.  Point is, I have already built the entire infrastructure to do this and just need to extend the rollup capability.

Thanks much for taking the time to get back to me on this and I hope you like my site.

Jeff

Name = CommonFunctions.GetFirstName(RegID) & " " & CommonFunctions.GetLastName(RegID) (Member First and Last Names)

UniqueName = RegID.ToString (Registration ID for My Site Members)

RollerUrlStringFirst = "http://www.exceptionalconsultants.com/blogs/"

RollerUrlStringLast = "/rss.aspx"

 

Dim Mirror As New RollerBlogFeed

Mirror.SectionId = CommonFunctions.GetCategoryRSSSectionID(RegID) (Used to get the Section ID of one of 60 different pre-established Mirrored Feeds)

            Mirror.Url = RollerUrlStringFirst & UniqueName & RollerUrlStringLast

            Mirror.SiteUrl = "Exceptional Consultants"

            Mirror.Title = Name & " Blog"

            Mirror.IntervalMinutes = 60

            Mirror.ExerptSize = 350

            Mirror.PostFullText = True

            Mirror.IsBlogAggregated = True

            Mirror.IsBlogRollAggregated = True

            Mirror.Enabled = True

            RollerBlogFeeds.AddFeed(Mirror)

 

 

  • | Post Points: 5
Not Ranked
Posts 36
Points 565
Jeff Stull replied on Mon, Apr 21 2008 12:43 PM

Jose,

I have successfully used the below code snippets to add the Content supplied by my Consultant Members in their Blog to a Rolled up Blog that has no content but that added by the Mirror set up for it (i.e. http://www.exceptionalconsultants.com/blogs/computer_consultant_supplier_and_educator_content/rss.aspx).

This method seems to work well and gives me 95% of the desired effect except for one thing.  I do not want the content in the mirrored Blog to appear anywhere else in my site except on the feed as shown above.  If you use this URL http://www.exceptionalconsultants.com/search/SearchResults.aspx?q=nichols you will see that the search results show the Consultant Profile for Mike Nichols appears in his own Weblog, as well as, in the Computer Consultant, Supplier and Educator Content (Weblog) posted by Anonymous, which of course is the Mirrored Blog. 

Is there anyway that you know of to keep the Mirrored Content from showing up in Search Results and Tags (like Computer).  The trouble with this is the duplicity.  Or alternatively, some other method you can recommend to aggregate all Member Blog Content who are say ‘Computer Consultants’ into a feed I can pass along to Feed burner? 

Thanks so much for taking the time to get back to me on this.

Code Snippets Used

Name = CommonFunctions.GetFirstName(RegID) & " " & CommonFunctions.GetLastName(RegID) (Member First and Last Names)

UniqueName = RegID.ToString (Registration ID for My Site Members)

RollerUrlStringFirst = "http://www.exceptionalconsultants.com/blogs/"

RollerUrlStringLast = "/rss.aspx"

 

Dim Mirror As New RollerBlogFeed

Mirror.SectionId = CommonFunctions.GetCategoryRSSSectionID(RegID) (Used to get the Section ID of one of 60 different pre-established Mirrored Feeds)

            Mirror.Url = RollerUrlStringFirst & UniqueName & RollerUrlStringLast

            Mirror.SiteUrl = "Exceptional Consultants"

            Mirror.Title = Name & " Blog"

            Mirror.IntervalMinutes = 60

            Mirror.ExerptSize = 350

            Mirror.PostFullText = True

            Mirror.IsBlogAggregated = True

            Mirror.IsBlogRollAggregated = True

            Mirror.Enabled = True

            RollerBlogFeeds.AddFeed(Mirror)

 

  • | Post Points: 5
Not Ranked
Posts 36
Points 565

Jose,

I have actually solved half of this issue myself by adjusting the Mirror.IsBlogRollaggregated in the above code to "False", as well as, a similar adjustment "Include in community aggregate" to "NO" in the Blog that contains the Mirrored feeds.  This has solved the problem of the double result retured when you search the site via the search input box.

I still have the double result 'one from the original posters blog and one from the mirrored Blog' when I use TAGS (i.e. computer) to pull results.  Is there any way to adjust settings so that TAGS are not inherited from the orginal post?  Or can you suggest which database tables and which events I might use to remove the TAGS from the Mirrored Content.?

One other issue has cropped up.  The code mentioned above worked fine for one of the two consultants in the computer category in terms of the mirrored blog updating.  But not for the other one.  The data in the tables RollerBlogFeeds, RollerBlogPosts and RollerBlogUrls looks amost identical when comparing both consultants.

How can you force a mirrored feed to 'recycle"?  What 'triggers' a post to be included in the feed?  Does it have someting to do with Subscribe Date, LastUpdate Date, LastModifiedDate?  It seems that once a post that is included in the feed is edited/updated, that the feed does not reflect the changes in the syndicated excerpt.  I cannot figure out why.

What does ETTag and State do in the RollerBlogFeeds table?

Thanks.  Any thoughts would be really appreciated.

 

 

  • Filed under:
  • | Post Points: 5
Page 1 of 1 (5 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com