How to Set Up the RSS Feed Importer

This tutorial explains how to import news from RSS sources straight into Drigg.

  • Go to Admin>Build>Modules
    • Enable the Drupal module News Aggregator.
    • Enable the Drigg RSS Feed Importer.
  • Go to Administer>By Module>Drigg RSS Feeder>Drigg RSS Module General Settings.
  • Set the time in seconds which will be used to randomly place scoops into your content.
  • Add any keywords which will be used to match to imported RSS feed stories, comma seperated, with NO SPACES.

  • Go to Administer>By Module>Aggregator>News Aggregator. You will see List, Add Category, Add Feed, Settings tabs.

NOTE: The Settings tab is for the actual News Aggregator menu item, and has little to do with Drigg-only sites, UNLESS you wish to have a page with aggregated feeds (which will show up as pages rather than scoops) when users click on the News Aggregator menu link, which you will see has been added to your Navigation Menu. If you DO NOT wish for your users to be able to acces this page through the menu (in other words, hide it from your users) then you will need to Administer Menus and disable News Aggregator in Menus.

NOTE: The Category Tab is for setting up various categories that will be listed under the News Aggregator menu link (if you leave that link enabled). In other words, you DO NOT have to set up any categories, as this is not necessary for using the Drigg RSS Feed module.

  • Add Feed tab: This is the heart and soul of the setup. Clicking on the tab will open a form with the following fields

    • Drigg RSS feeder drop down menu - Ignore for now, as clicking it will inform you to test your feed first.

    • Title Field - this information will not show up anywhere in your autofed Drigg scoops, so basically this can be used for referencing your various Drigg feeds.

    • URL Field - You will need to paste the actual RSS Feed link from the site you are pulling from, and can usually be found on any website that uses them. An example would be http://arstechnica.com/gaming.rssx, although different sites use different feeds, so the url ending may have something like .feed# or .rss, etc.

    • Update Interval - This drop down menu allows you to set how often you wish to recheck the site you are pulling a feed from. Popular sites with frequent updates will require a lower time. Blogs that are updated every so often… you’ll want a higher time.

  • Once you’ve filled in these fields, click SUBMIT.

  • The feed will now show up in your Aggregator list. Here’s an example:

Ars Technica Gaming 20 items 1 hour 32 min ago 22 hours 27 min left edit remove items update items

  • Click on the “update items” link in your newly created field, and your items count should be added to (as the example shows above, I now have 20 items (potential auto-scoops) pulled from that feed. This shows that you set up the feed correctly.

  • Now click on the “edit” link, and you will now notice that the Drigg RSS feeder drop down menu is functional. Click it and you’ll get a whole new form. This form contains:

Checkbox - Enable this feed in Drigg

  • Submit as UIDs - you will input the user ID numbers, and not usernames in this field, comma separated. You may wish to set up several “fake” accounts, making note of thier User ID Numbers, and then enter those into this field.

  • Category - Drop down menu of all the categories you set up when you first installed and configured your drigg site. Choose the category you wish to have scoops fed into from this feed.

  • Automatic Tags - Field where you can place tags that will automatically be added to EVERY SCOOP generated from this feed.

  • Once you have set up these fields, click SUBMIT again.

  • Now, excitedly click on your home page and click on upcoming to see…

  • No new scoops? Run cron.php on your server!

  • Now check your upcoming, and see how very, very cool this addition is!

Promote to front page

Nevermind... I am an idiot. :)

nation-x

Published?

How do I have imported RSS items show up under Published scoops?

Thanks,
nation-x

Upcoming vs. Published

So, I am working on a drig site and the RSS importer works great, but is there anyway to get them promoted to the front page? or do people need to check upcoming to see them?

Brendan

Brendan Piper :: Producer
Basement, Inc. :: www.Basement-inc.com

Category Issue

Hi, I am following everything step by step.. I have a fresh install... I am able to add the feed with the news aggregator but when I am trying to Enable this feed in Drigg I get an error message at the top of the contect page.

warning: Invalid argument supplied for foreach() in /home/buffalo/public_html/includes/form.inc on line 949

I noticed my Category Drop down is empty... but i did create categories in Drupal>Categories..

Can somebody help me out.

Thanks

---------------------------------

Never mind my bad.. didn't add any terms under the cat..

Thanks again

K

Same errors/problems

I'm also having this problem / getting the same error. I've setup a category, with terms, and still there's no category to select in the drop down. Is there a specific category config that I need to setup? I fact I don't need the drigg rss imported items to be put in any category...
---
After some experimenting I figured it out. Created a ton of categories of each different kind. Eventually one of them worked. :)

few bugs

Your Drigg module and Drigg RSS are just awesome and that's why, it's my duty to report some bugs I have discovered ))

1. This one was really hard to find.. On line 210 in drigg_rss.module, drigg_rss_form_submit():

- if($form_values['op'] == 'Submit')){
+ if($form_values['op'] == t('Submit')){

It works well until you translate "Submit" on your local language... I'm developing Ukrainian site, so this was the bug.

2. Another one - line 248 in drigg_rss.module, drigg_rss_cron():

- $last_iid=6;

I think this just should be commented

3. And there is one more tip for local languages (if site uses utf-8encoding)
Regexps like:

'/[^a-zA-Z0-9]/'

should be rewritten, according to used language. In my example that was:

/[^a-zA-Z0-9АаБбВвГ㥴ДдЕеЄєЖжЗзИиІіЇїЙйКкЛлМмНнОоПпРрСсТтУуФфХхЦцЧчШшЩщЮюЯяЪъЫыЬьЭэ]/

This includes Ukrainian and Russian symbols, and you can't just write А-Я, because the symbol codes aren't ordered in te utf-8.

This can be useful for URLs rewriting or for tags...

p.s.: there is a bug with this AJAX form, in which I'm typing (try to resize it..). Maybe you should check your jQuery version

Ouch!

Hi,

Hey, I didn't see this post...!
I fixed the first two bugs -- in fact, I had fixed them already :-D
About the last one... I am not sure what I should do about it. Please write in the forum (not in the article's comment section! :-D ) to see if we can work a solution out... but I think it might be nasty!

Merc,

Hi Babblin/Merc When I

Hi Babblin/Merc

When I import feeds from feedburner.com using Feed Importers - it shows the feedburner.com URLs in place of direct URLs. Is there a way I can display only the final URLs but not the feedbruner.com URLs.

Thank you so much for the great tool - very impressed.

-Vijay

Can you clarify?

I'm not certain what you mean by direct URLs or final URLs.... can you give an example?

Thanks! =)

Example of Feedburner URLS

To give an example: When I enter a feedburner feed (the feed being http://feeds.feedburner.com/wolterskluwer/aids/toccurrentrss), the URL in the scoop ends up showing http://feeds.feedburner.com, but it should show www.aidsonline.com.

How to fix feedburner

How I fixed this, a quick hack to the aggregator module:

On line 877 of drupal/modules/aggregator/aggregator.module I added the folowing code:

if ($item['FEEDBURNER:ORIGLINK']) {
$link = $item['FEEDBURNER:ORIGLINK'];
}

Eh, almost fixed feedburner

Further information on feedburner fix here:

http://www.drigg-code.org/node/158