HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


RSS Feeds (Managing RSS Feeds)

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#107824 (In Topic #21028)
Avatar

Fan in action

Importing/Deleting

I went to allafrica.com and imported a news feed (http://allafrica.com/misc/tools/rss.html)to my "news" block on the front page. I chose to get the feed on Kenya.

http://allafrica.com/tools/headlines/rdf/kenya/headlines.rdf



I imported it into: my "personal blog" and "General" <- I think this is the General blog. Anyways,

mistake:(  Formatting sucked.

My main News block on the front page was plasterd with unformatted rss feeds....lol

So, upon freaking out I deleted the Main_News block. Checked my blog, and all feeds are still there. I check the General blog and all feeds are still there. Great!

Here is my questions:

What exactly Happens in the background when I place the link: http://allafrica.com/tools/headlines/rdf/kenya/headlines.rdf into the IMPORT and hit proceed?
  1. Does it copy the file "headlines.rdf" into the MySql database?
  2. Is it a continuous feed, that osPortal will auto update at certain time intervals?
  3. If So, How do I stop this particular news feed from allafrica.com?
  4. Is there a central place to manage all imported news feeds in one place?
  5. How do delete this news feed all together along with all the feeds that was imported into my "Personal Blog" & "General Blog"? ( going thru one news article at a time would be a pain!
Thanks,

vynum


Last edit: by vynum
Back to the top
 
Posted
Rating:
#107825
Avatar

Hi,

Short answer is that import is a one-off thing, not an ongoing process.

But I'll take a closer look at this specific feed and your scenario. Bear with me…


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#107826
Avatar

I imported it into: my "personal blog" and "General" <- I think this is the General blog.

A blog is a news category owned by a member, you in this case. General is a news category but is not owned (i.e. not a blog).

It would have gone into your blog or General based on the state of the "Import to personal blogs" checkbox.
(Actually it would have gone into a named category if "Import to personal blogs" was unchecked and it got a category name match to an existing category on your site)

mistake:(  Formatting sucked.

I tested and it looked okay, but this feed doesn't have full articles, only summaries, so it's not appropriate for importing.

Does it copy the file "headlines.rdf" into the MySql database?

Each item in the feed will be auto-added as a new news article.

Is it a continuous feed, that osPortal will auto update at certain time intervals?

No.

If you wanted to display a combination of your own news and news from feeds, you'd use the main_rss block with multiple news feeds, including your own feed URL. That would merge it all visually together.

How do delete this news feed all together along with all the feeds that was imported into my "Personal Blog" & "General Blog"? ( going thru one news article at a time would be a pain!

You could write some quick OcCLE code to do it, but otherwise it would be manual.
Let's say you need to delete all news in ID #13.

Code

:require_code('news'); $ids=$GLOBALS['SITE_DB']->query_select('news',array('id'),array('news_category'=>13)); foreach ($ids as $id) delete_news($id['id']);


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#107827
Avatar

Fan in action

Great response Chris, thanks,

If I go into myblog I see all the RSS news articles imported. Over a period of time i'm sure myblog would get big and would need purging. And news would get old and out of date.

Sure would be nice if there was option as Admin for me to manually go down the list and place a  check-in-a-boxes pick which RSS feeds I don't want being reported.

Or perform a quick Purge of all articles not selected in my blog or from multiple stored locations.

Believe it or not, but I haven't delt with RSS feeds at all until last night.  I thought RSS feeds are syndicated feeds that a script like OS Portal would have interval settings to have it suck the feed at certain configured time intervals and purge old news articles automatically at certain configured time intervals. Keeping the RSS feeds new and fresh all the time.

Example: suck latest X amount of articles from RSS URL feed and keep for X amount of days, then delete articles X days old. Reapeat process until hair turns gray :)



 
Back to the top
 
Posted
Rating:
#107828
Avatar

Well, news typically goes back in time. When you browse the archive it's not going to show everything ever, it'll have pagination.

As for RSS, the main_rss block does similar to what you want. It doesn't import anything into the database on an individual basis (no need), it just updates the display regularly. It has various options to control how things are read/displayed.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#107830

Non-joined user

:thumbs: Got it!
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: