Updated 1st Mar: content modified to remove the use of registered trademarked “p*purls”

OneNews Wordpress Theme

P*purls is, as described by its founder, the ultimate source for the latest web buzz and news and a daily must-read for me. I thought maybe I can do something based on that model to keep track of the buzz in Singapore and thus OneNews was born. Of course it’s not as grand as P*purls, just a simpler version. This also showcase the power of Wordpress being more than a blog software.

This theme requires using a single blog and single post. Some knowledge on PHP/XML/RSS is required. Minimal support will be provided.

Recipe

Engine: Wordpress 2.0 and above

Theme: Modified Simplr

Javascript
BoxOver
Digg Style Videos
Document Text Sizer
Style Sheet Switcher

Plugins:
Adsense 0.1
Exec-PHP 3.2
flickrRSS 3.1

Post: Edit the default “Hello World” post and replace the content with text in post.txt (remember to switch from Visual to Code view first)

Changelog

[25 Jun 07]: flickrrss plugin updated to remove double title on mouseover.
[20 Aug 07]: clean up code to make it easier to modify

License

Commons Creative 3.0

Demo

Fonehubber
OneNews

Download

Name: OneNews Theme
Size: 51,41 kBytes
FileType: .zip-File
Downloads: 1589
[Download Now]

Tips & Tricks

How to change the adsense code to my own?
In line 27 of the Adsense plugin (adsense.php), replace my adsense with your own.

I pasted the post.txt into the post content but I only see codes, not the feeds. How?
Switch from “Visual” to “Code” view before pasting the code in post.txt
Visual to Code view

How to add/modify feeds?
I can’t cover all areas but I will try to explain the basic building blocks.

In post.txt, you will notice each feed is a variation/repetition of the following code. I added comments along each line of code where you may need to edit.

<p width="280" style="float: left"> //change column
<h2><a href="http://del.icio.us">del.icio.us</a></h2> //change header
$rss = fetch_rss('http://del.icio.us/rss/tag/singapore'); //insert your feed url
$items = array_slice($rss-&gt;items, 0, 20); //limit no of posts to 20
echo '<ul>';
foreach ($items as $item)
{
$desc = htmlspecialchars(substr(strip_tags($item['description']),0,300));
echo '<li><a target="_blank" href="'. $item['link'] .'" title="header=[] body=[' . $desc . ']">' . $item['title'] . '</a></li>';
}
echo '</ul>';
?>

Need Help?

Much as I want to provide free support, there are only 24 hours a day.
So if you need a chunk of my time, I’m available for hire.


What's Next?

» Share This (Social Bookmarks/Email)
» Subscribe to Feed
» Subscribe to Email
» Leave a Comment

Related Posts:
» Beta Launch: OneNews Singapore
» Easier and Faster Ways to Upgrade to Wordpress 2.5.1
» Wordpress Themes

» Newer Post: Linkbacks from High PR Blogs
« Previous Post: Theme Bugfix: Artificial Intelligence