/* Plugin Name: Feed List Plugin URI: http://rawlinson.us/blog/articles/feedlist-plugin/ Description: Displays any ATOM or RSS feed in your blog. Author: Bill Rawlinson Author URI: http://blog.rawlinson.us/ Version: 2.2 */ // include files $relroot = dirname(__FILE__).'/../../'; // get the magpie libary if (file_exists($relroot . 'wp-includes/rss.php')) { require_once($relroot . 'wp-includes/rss.php'); } else if(file_exists($relroot . 'wp-includes/rss-functions.php')){ require_once($relroot . 'wp-includes/rss-functions.php'); } else { function FeedListInitError(){ ?>
');
print_r($val);
print('');
}
/* end utility functions */
}
function rssLinkListFilter($text)
{
return preg_replace_callback("//", "feedListFilter", $text);
}
/* Templates can call any of these functions */
function rssLinkList($args){
if(!is_array($args)){
$args = func_get_args();
}
return feedList($args);
}
function feedList($args){
if(!is_array($args)){
$args = func_get_args();
}
$feed = new FeedList($args);
return $feed->FeedListFeed();
}
function randomFeedList($args){
if(!is_array($args)){
$this->args = parse_str($args,$a);
$this->args = $a;
}
$feed = new FeedList($args);
return $feed->FeedListFile();
}
function feedListFilter($args){
$args = explode(",",$args[1]);
if(count($args) == 1 && !strpos($args[0],":=")){
$a = array();
$a["rss_feed_url"] = $args[0];
$args = $a;
} else {
$a = array();
foreach($args as $arg){
$arg = explode(":=",$arg);
$a[$arg[0]] = $arg[1];
}
$args = $a;
}
$feed = new FeedList($args);
return $feed->FeedListFilter();
}
/* end template functions */
if (function_exists('add_filter'))
{
add_filter('the_content', 'rssLinkListFilter');
}
if(function_exists('FeedListInitError')){
add_action('admin_head','FeedListInitError');
}
?>
$theTitle=wp_title(" - ", false);
if($theTitle != "") {
?>
10 Jul // php the_time('Y') ?>
Trying to get RMagick Gem installed can be a pain in the butt on any system including Ubuntu Feisty. Thankfully Sur figured out how to do it 3 easy steps.
RMagick requires ImageMagick and all of its crazy dependencies. Luckily Sur found a way to install these ImageMagick dependencies with one step on Ubuntu - libmagick9-dev… and it works on Feisty.
So here’s how you install RMagick gem on Ubuntu Feisty in 3 easy steps:
9 Responses
Appreciate that !
I was googling the web for a simple solution. In previous try I got compile error.
This is the simplest, yet most useful stuff…
Thanks
-Yeameen
I just tried this on Hardy Heron. It works like a charm. Make sure you have installed ruby1.8-dev or you will get the mkmf error.
Thanks a million!
I had to do “sudo apt-get update” first before I can run these 3 steps. Otherwise I get some “buffer error”. Worked great. Thanks.
珠宝联盟网
中国珠宝联盟网(zblmw.com)是一家服务于中国大陆及全球华人社群的领先在线珠宝媒体及增值资讯服务提供商。中国珠宝网站拥有多家地区性网站,以服务大中华地区与海外华人以及珠宝企业为己任,通过为广大网民和政府企业用户提供网络媒体及娱乐、在线用户付费增值/无线增值服务和电子政务解决方案等在内的一系列服务。
专业珠宝门户——中国珠宝网站预计2008年在全球范围内注册用户超过500万,日浏览量能最高突破8000万次,将成为中国大陆及全球华人社群中最受推崇的行业互联网品牌。
高效的整合营销服务——凭借领先的技术和优质的服务,中国珠宝网站会深受广大网民的欢迎并能享有极高的声誉。
http://www.zblmw.com
珍珠珠宝网,你的珍珠珠宝网。http://blog.pearlmall.cn
Hi,
I did that 3 steps, but I’m getting this error:
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require’: no such file to load — RMagick (MissingSourceFile)
Who knows what may it be?
i have done the first and second step without any problem
# sudo apt-get install imagemagick
# sudo apt-get install libmagick9-dev
but when i tried to run
sudo gem install rmagick
i get the following output
Building native extensions. This could take a while…
Successfully installed rmagick-2.9.2
1 gem installed
Installing ri documentation for rmagick-2.9.2…
No definition for Image_border_bang
No definition for Image_change_geometry
No definition for Image_change_geometry
No definition for Image_changed_q
No definition for Image_channel
No definition for Image_compare_channel
No definition for Image_check_destroyed
No definition for Image_compare_channel
No definition for Image_channel_depth
No definition for Image_channel_extrema
No definition for Image_channel_mean
No definition for Image_charcoal
No definition for Image_chop
No definition for Image_clut_channel
No definition for Image_clone
No definition for Image_color_flood_fill
No definition for Image_color_histogram
No definition for Image_colorize
No definition for Image_colormap
No definition for Image_composite
No definition for Image_composite_bang
No definition for Image_composite_affine
No definition for Image_composite_channel
No definition for Image_composite_channel_bang
No definition for Image_composite_tiled
No definition for Image_composite_tiled_bang
No definition for Image_compress_colormap_bang
No definition for Image_contrast
No definition for Image_contrast_stretch_channel
No definition for Image_convolve
No definition for Image_convolve_channel
No definition for Image_copy
No definition for Image_crop
No definition for Image_crop_bang
No definition for Image_cycle_colormap
No definition for Image_decipher
No definition for Image_define
………………………………
why i get this no definitions stuffs? it is normal?
????
Leave a reply