♦ Since March, 2005 - 19368 Total Words Manufactured ♦


Aug
30

WordPress Plug-in – Slashdot.org Headlines

by Dave on August 30, 2005 · 21 comments

Feeling sensitive and creative, I decided to try my hand at writing a plug-in for WordPress. I wrote a small, simple plug-in to parse Slashdot’s RSS feed and return the top headlines. You can specify the number of headlines to return and whether or not to return the headline description with each headline. The headlines are returned as links, so you can click into them to link to Slashdot’s full stories. It’s a nice plug-in to throw into your sidebar (or wherever) — after all, news for nerds is stuff that matters! Here’s a sample of plug-in in action:

Slashdot.org Headlines

You can download the thing here. My PHP skillz are what you would call – slim to none! So, if the code is messy and not very logical, don’t blame me. I’m working on it. At least the thing works. Hope some of you find the plug-in useful.

{ 8 trackbacks }

Adrian’s Blog » RSS feed plugin for WordPress
January 15, 2007 at 9:06 am
WP Plugins DB » Blog Archive » Slashdot Headlines
May 20, 2007 at 3:46 am
WORDPRESS GOD:300+ Tools for Running Your WordPress Blog
August 16, 2007 at 11:31 pm
Tools to make wordpress more personal. | Techmartini.com
September 1, 2007 at 8:29 am
300+ Popular Plugins for Running Your WordPress Blog
September 26, 2007 at 10:01 am
ARHI » Blog Archive » Pluginuri de baza pentru un blogger
December 9, 2007 at 9:49 am
dyohanan.com » Great Tools To Use With Your Wordpress Blog
December 13, 2007 at 12:14 pm
The Ultimate WordPress Plugin Library : Get More Reviews
April 22, 2008 at 9:39 am

{ 13 comments… read them below or add one }

1 Orlando August 31, 2005 at 7:45 am

Very nice plugin. Works fine. Thank you.

2 The Kid August 31, 2005 at 8:27 am

Thanks, Orlando. Glad it worked out for ya.

3 Dan September 1, 2005 at 2:15 pm

Thanks man. ive been looking for something like this. I was just going to include external scripts but if there is a plugin made already… why not. thanks for your generousity

4 Barry November 8, 2005 at 8:42 pm

Thanks, this saves me a lot of work. I’m just setting up a blog for my girlfriend, who is a trainee teacher. I’ve amended your module so that I can display the BBc education News headlines on her site. Brilliant!

5 cyn December 17, 2005 at 1:45 am

I installed it and activated it and am stuck.. can’t get anythin… help!

6 Matrix Mole February 11, 2006 at 6:41 pm

Works great. Now I can let others see the headlines I’m currently checking out.

7 Erick Schluter July 20, 2006 at 7:46 pm

My website is in dutch and I would like to use this (if I can find a dutch website that has some support for this). But…Is it easy to change the content it displays?

My WordPress & PHP skills are evolving, but….

8 Lynx February 24, 2007 at 4:56 pm

good one plugin !

p.s. there flags of commenters are bug, and display for all a flag of the man who now see it page (from it’s IP, location) – check it ;)

9 The Kid March 2, 2007 at 10:32 pm

Lynx, thanks for the finding the bug with the flags. I never gave them much attention, but it did seem strange that everyone seemed to be coming from the United States! ;)

10 Lynx March 5, 2007 at 7:43 am

np ;) it’s good now ;) !

11 tom June 1, 2007 at 11:25 am

I’ve figured out a way to tweak the file to display other feeds. How can I get two instances of this plugin running on one site? I want to display the RSS from two sites. Thanks in advance.

12 Mike Long June 6, 2007 at 5:56 am

Thanks man, it works great. I have it running on my site (vdsl2.se). Nice one.

@tom
It might work (haven’t tried this myself) if you make a copy of the one you got (SlashdotHeadlines.php) and change the name (of the php file) to something apropriate. Then open it and change:

on line 4
“Plugin Name: Slashdot.org Headlines” to e.g. “Plugin Name: Google Headlines”
on line 24
“function SlashdotHeadlines” to e.g. “function GoogleHeadlines”

And of course change the feed url.

Then upload and install/activate it.
and to call that new scripts function on your site use… instead of “SlashdotHeadlines(5)” use “GoogleHeadlines(5)”.

Cheers,
Mike

13 werutzb October 7, 2008 at 9:18 pm

Hi!

I would like extend my SQL knowledge.
I red really many SQL resources and would like to
get more about SQL for my occupation as mysql database manager.

What can you recommend?

Thanks,
Werutz

Leave a Comment

Previous post:

Next post:

Dave's Eclectic Ramblings is built using WordPress 2.9.2
All work by Dave Wolf, licensed under a Creative Common License



40 queries. 5.045 seconds.
User Count: 7 online / 441313 total
Hits Last Week: 9208 | Hits Today: 564 | Unique Hits Today: 63 | Hits from You: 3
Googlebot visited this page Tuesday, March 9, 2010
Wednesday 10th March, 2010 4:45:42 PM EST