Ever since I started to explore WordPress, I like to implement all sort of JQuery plugin. Testing and experimenting it to work the way I would like to. The best thing about WordPress is because the ease of include any kind of plugin with it and make it work the way you want!

Recently I find a great JQuery plugin – ContentFlow. The effect is simply awesome, and not to mention the small file size it has to enable me to implement a lot more JQuery altogether with it.
The best thing I find about ContentFlow is that it doesn’t really has external style sheet as it will get from its own directory. Been spending nights looking for a better and easier slider, bet the best eye cream couldn’t help me anymore, but it all worth it!
Now the idea of this implementation is, list the attachment of a post in ContentFlow style. Basically you’ll upload all the necessary images when publishing a post, those images will automatically shows in CoverFlow (ContentFlow plugin) style.
First, show the attachment. Not by gallery shortcode, but hand code it. I got this hack from Digging into WP, it shows a list of great recipes on image and attachment:
<?php
$args = array(
‘post_type’ => ‘attachment’,
‘numberposts’ => 0,
‘post_status’ => null,
‘post_parent’ => $post->ID
);
$images = get_posts($args);
if ($images) {
foreach ($images as $image) {
$attlink = wp_get_attachment_url($image->ID);
echo ‘<a href=”‘.$attlink.’” class=”item”><img class=”content” src=”‘.$attlink.’” alt=”Flow” title=”Flow” /></a>’;
}
}
?>
Do take a short trip to ContentFlow documentation for more information about the required classes like .item and .content.
Add in the plugin on header:
<script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/contentflow.js” charset=”utf-8″></script>
So the overall code on the loop should look like this:
<div id=”contentFlow” class=”ContentFlow”>
<div class=”loadIndicator”><div class=”indicator”></div></div>
<div class=”flow”>
<?php
$args = array(
‘post_type’ => ‘attachment’,
‘numberposts’ => 0,
‘post_status’ => null,
‘post_parent’ => $post->ID
);
$images = get_posts($args);
if ($images) {
foreach ($images as $image) {
$attlink = wp_get_attachment_url($image->ID);
echo ‘<a href=”‘.$attlink.’” rel=”lightbox-cats” class=”item”><img class=”content” src=”‘.$attlink.’” alt=”Advertiser” title=”Advertiser” /></a>’;
}
}
?>
</div>
<div class=”globalCaption”> </div>
<div class=”scrollbar”>
<div class=”slider”><div class=”position”></div></div>
</div>
</div>

I placed it as the feature slider on top of the page. I’ve placed lightbox together with it too. Looks alright don’t it?
P/S: That is how dull my framework look like 
It happen so quick that no one has the time to get ready for this!

Last weekend, I went to Kuchning to find some dealer on post card printing and signboard to be made. Saturday morning, with all kind of excitement, I went back Sibu by boat, I was surprise to see the river level when the boat entering Sibu coast.

The whole Sibu is like an underwater World now. Roundabout became an island, you wouldn’t know where is the corner, unless you drive around daily to know the routine.
I am, finally stucked at home again. The last time I encounter flood in Sibu was 2007, after that I did not go back that frequent, and now I thought of permanently staying in Sibu, it happen again!
Well, like usual, people started to complaint about government this and government that… I hope the newly elected MP of Sibu can handle those complaints, as it is now become he who did not work but not the previous one
Get some education you moron Sibuan, stop dumping and logging to make a living…

Still remembering the good old days, when everyone talking without boundries, everyone playing tricks to everybody, gets to have a good barbeque with or without an outdoor electric grill.
That, is the good old days, which I think I can’t or impossible to even find one in the near future.

When people gets together, it’s like a chemical happening in between and resulting more thinking behind an idea. A good idea can be very very bad. But hell, who made the decision that “Greed” is a bad thing? “Mean” is bad? What? “Selfishness” also a bad thing? Who decide that and why?
Well, those can be nicely handle if win-win situation could happen. If that happen, you are on the luck my friend. Of course, more often than none, the win-win situation always involve money, the devil

That what break a human…
I need a good rest, that’s it!
- 19th August 2010 at 11:54 pm
- Lifelog
Tomorrow morning I will be heading off to Kuching for a few days and back on Wednesday. Just a short trip to make sure things are in control after putting some thought on it.

Now the question came in as how I’m going to find my way in Kuching? A year ago, I bought the beloved Nokia E71 and now it has become something like PDA or SMC (super mini computer) for me. Currently it operate as a broadband tool and GPS for me only.
After reading so much of gps reviews, I decided to install Garmin Mobile with it and it has been working damn well for me for the past few months while I was in KL. But my trouble arised when I did not install Sarawak and Sabah map.
That’s why I always tell people I prefer small town over city. But hey, the oppoturnities in city worth all the trouble, don’t they?
- 15th August 2010 at 1:38 am
- Lifelog
Recent month, joining another field, making sure everything runs well and good, from all big things to small details, like a receipt printer or even, a small pat lock, I finally giving up with it and started to putting thought on it as well. Like many others’ experience, I got shoot down quite a lot of times.

My friend told me “You know where you strong at, where your confident goes, and how to make money with your passion, but the choice is up to you. Taking care of a person can be a lot of ways, and this is just one of the way“. My wife told the same, and started to also input her thought onto it. Probably I am trying to cover bigger circle, though without the ability to do so, I have been forcing myself to.
However, I do foreseen something, that is not comfortable may happen if things keep going down the drain without much communication. I reckon I did not behave and/or act badly for what and who I am, so things probably going to be just fine.
“Trouble goes right past the LORD’s people and strikes the wicked”
Proverbs 11:8
- 14th August 2010 at 1:31 am
- Lifelog