on your blog sidebar or anywhere on your website.

I’ve been receiving a lot of emails as regards to how I made those ‘chicklet’ images on my sidebar, is it comes natively from Wordpress or something? Well, I figured it worth a writeup [a five minutes walk-through] to sharing the good things, isn’t it?
Before we’re going to accomplished something like I did, you’ll need to download Asaph and make it work, it’s no hassle to set it up, give it a try.
Please note that Asaph isn’t a plugin for wordpress in anyway, it actually is a micro-blogging system but mainly focus on images like I introduced it before, they’re running separately on your server and never share a single database… which means that we need to figure another way out to cooking them. Originally, I was inspired by this recipe, it allows you to add display any rss feed on your blog by using Wordpress native function - wp_rss. Yeah!
Call It!
I assumed that your asaph is up and running, and you already bookmarked a few images, now you need to edit your wordpress theme template. The tricky part is that we’re going to use wp_rss to call asaph’s feed, here is the complete codes, you can add where you want the rss content to be displayed (your sidebar or any other page template):
<?php // Get RSS Feed
include_once(ABSPATH . WPINC . '/rss.php');
$rss = fetch_rss('your-asaph-feed‘);
$maxitems = 24;
$items = array_slice($rss->items, 0, $maxitems);
?>
<ul>
<?php if (empty($items)) echo ‘<li>No items</li>’;
else
foreach ( $items as $item ) : ?>
<li><a href=’<?php echo $item['link']; ?>’>
<?php echo $item['description']; ?></a></li>
<?php endforeach; ?></ul>
where fetch_rss replace it with your actual feed url and $maxitems means how many items that you wanted to show, you can change the value you like. That’s it. yeah, it’s that simple.
More tweaks
since it works now it’s time for styling it, within CSS tweaks you can give it a nice looking, show your magic. It will be great if use some lightboxed effect, personally I use fancybox to visualized it in a better way. good luck!
I’d like to give a big thank you to my friend benhero who is an amazing ruby code ninja, he helped me on the codes and took me out of the fire




8:46 pm
。。图片秀。。
8:46 pm
呵呵写出来了
过些时间我也把这个加进博客里
8:46 pm
实在不擅于写东西,你写好后,我加link给你,呵
8:46 pm
您这文字阴影真是帅呆了
8:46 pm
哈哈,内容部分换成淡灰色的纹理就是为了文字阴影,可惜目前FF不支持text-shadow属性。
8:46 pm
[...] on your blog sidebar or anywhere on your website. I’ve been receiving a lot of emails as regards to how I made those ‘chicklet’ images on my sidebar, is it. Continued here: Wordpress Image Roll | Vikiworks™ Studio [...]
8:46 pm
Great plugin. I will try.. Thanks!
8:46 pm
Hello,
I tried using the code above on the right side panel and it doesn’t seem to work. I am using your infinity theme modified. Love your theme and thanks for letting us use it for free. I just would love to get the asaph working on the right side. Can you help me. Thanks.
8:46 pm
any errors? normally it will just work with the codes.
8:46 pm
yeah, the error I get is….
Parse error: syntax error, unexpected ‘>’ in /home/gummywerd/public_html/gummywerds.com/wp-content/themes/theme/right.php on line 32
8:46 pm
I’ll let you know once I have feedback from my friend
I’m not a coder
8:46 pm
Hey, in order to running this micro blogging platform, you need to upgrade to PHP5 on your hosting server.
8:46 pm
I checked. I am using PHP5. Thanks for your help so far…
8:46 pm
And, is there any solution for syntax error?
8:46 pm
你好,很喜欢你的这个教程,可我有一点困扰,我的feed输出标题和图片,您的只是输出图片吗?您怎么做到的呢?期待您的回复。
8:46 pm
你好,上面的代码是已修改过的,目的就是取消标题,原始代码在wordpress codex中可以查到,是利用wp自己的函数来调用RSS输出。如果只调用asaph的,代码应该是没有问题的。可以看一下你报错的网站吗?
8:46 pm
Interesting approach. I like the way fancybox looks and works.
8:46 pm
WOW~!上次看了您的关于Asaph的介绍之后也在本地搭建了一个,非常好玩的图片搜集程式,只是没有想到还可以像这么玩。等会儿玩一玩去。
谢谢yichi的教程!
8:46 pm
要玩玩,我很喜欢这个微博:)
8:46 pm
Asaph我到现在还没安装好,老是出现设置问题,本地测试没问题,传上去安装就老装不上,郁闷。
8:46 pm
什么问题?先看看是不是PHP5
8:46 pm
必须要PHP5才能装吗?
8:46 pm
代碼部分的文字陰影果然很酷,我當時也想問怎麼加圖片rss到博客來著呵呵,現在去試試!
8:46 pm
呵,正计划全部都engrave一下(本地测试中)
8:46 pm
[...] 在这里,首先要感觉Asaph作者,再者感谢vikiworks的yichi大哥的文章.才让你我有机会认识与使用到如此优秀的功能. [...]
8:46 pm
啥时也去整整玩玩!
8:46 pm
Pure Awesomeness! hehheheh
8:46 pm
初次来,很漂亮的站,我喜欢
还以为是老外的呢,呵呵
8:46 pm
It is a cool plugin. Thanks for sharing the code very generous of you.
8:46 pm
YICHI 为了这个调用,我全新安装了博客,全新安装了ASAPH,都装好了,可是插入你说的代码就报错,是什么问题哦.我用自己的皮肤报错,用默认的皮肤也是报错,很郁闷,your-asaph-feed这个地方应该怎么写吗>我是去http://feedburner.google.com/弄的 单独使用这个相册完全好用,就是侧栏这里调用不了,很郁闷
8:46 pm
怪了,好多人似乎都安装失败了,你用contact form留给我email,我把我的sidebar代码发给你试试看
8:46 pm
YICHI大哥,提个请求哦,我一直在模仿你的评论,我装了wp-thread-comment
,可是看了你的CSS样式去插件的后台写HTML格式,老是写的不对,如果不介意的话可以提供你的代码给我看看嘛,再就是图片调用的问题,一直等到你的sidebar代码,已经给你发了2封邮件了,期待中!
8:46 pm
您好,我使用的是您的Infinity皮肤,按照您写的image roll调用,总是提示错误,说wordpress Parse error: syntax error, unexpected ‘>’,这段代码应该放到这皮肤的哪个文件呢?能借用您的sidebar代码参考学习一下么?
很喜欢您做的皮肤,谢谢!
8:46 pm
The pictures initially worked on a wordpress page, but after I add more pictures to asaph it won’t get sent to wordpress. how do you have it get sent to wordpress automatically? thanks so much.
8:46 pm
hello yichi, may i know how do u create thumbnails for the asaph feeds? i can get the rss to work but the thumbnails are really big, unlike yours there. thanks!=)
8:46 pm
[...] Wordpress Image Roll | Vikiworks™ Studio. [...]
8:46 pm
I will be very happy if you copied the code that you’re included in the template.
Thanks
8:46 pm
这么黑啊,看不清啊
8:46 pm
我不明白这是一个重播?
8:46 pm
文字阴影真酷,可惜支持上。。。哎!谢谢分享,一定把这个加进去!:)
8:46 pm
的麻烦,我开始写中文,菜单不redi人,如果有人想解释什么没有具体的工作…
8:46 pm
Thanks fo this
8:46 pm
唉 可怜我不懂英文
8:46 pm
我已经安装了,但是好象翻页不了,只能显示一面!翻页到第二也就找不到该页了!!!
顺便问一下,你的颜色是怎么设置成黑色的
8:46 pm
Its great stuff ,increase the looks of your site.
8:46 pm
We are waiting for your next free wordpress theme!!!!
8:46 pm
Anyone figure out where exactly is the resize function is for Fancybox, so i may apply it like Yichi’s?
8:46 pm
Thanks LZ ^_^
8:46 pm
really great it is! I will try it*
8:46 pm
Ok, in case that the code issue is still a problem here is the solution:
just replace the line
<?php if (empty($items)) echo ‘No items’;
with
<?php if (empty($items)) echo ‘No items’;
the problem comes from the single quote signs (don’t know their english names, sorry). Make sure that the echo tag uses single quotes and not an apostroph.
8:46 pm
It’s great but wow can I put it in v5 theme because there are no widgets?
Thanks a lot
8:46 pm
我一切都OK了,可是就是插入代码总是失败 feed原 应该填写什么?可能是这里有问题
8:46 pm
我很喜欢这个程序,可是最后一步展示却怎么也实现不了,能帮我解决一下吗?或者发你的代码到我的邮箱,谢谢
8:46 pm
呵呵,我搞定了,原来是直接复制的代码里面’号 全角半角的问题
8:46 pm
What ist the way to put little thumbnails in the imageroll?
Thank you. And I would like to use fancy for mouse over and shyning pics like you.
8:46 pm
[...] I really want to do right now, is add an img roll and maybe try and move my photo bar to the bottom.. -____-; Or something. I’m still [...]
8:46 pm
我很喜欢这个程序,可是最后一步展示却怎么也实现不了,能帮我解决一下吗?或者发你的代码到我的邮箱,谢谢