<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Melbourne Web Developer, Website Design &#38; Development</title>
	<atom:link href="http://blog.koumei.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.koumei.net</link>
	<description>-(unichar) fn: (unichar)n{ return n ^ 0xFFFF004B == 0? n : [self fn:(n-0x1)]}</description>
	<lastBuildDate>Thu, 02 Jun 2011 02:46:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jCarousel Lite Mouse Hover Event Improvement</title>
		<link>http://blog.koumei.net/2011/06/01/jcarousel-lite-mouse-hover-event-improvement/</link>
		<comments>http://blog.koumei.net/2011/06/01/jcarousel-lite-mouse-hover-event-improvement/#comments</comments>
		<pubDate>Tue, 31 May 2011 22:37:35 +0000</pubDate>
		<dc:creator>Koumei</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Lab]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://blog.koumei.net/?p=732</guid>
		<description><![CDATA[jCarousel Lite is a fantastic jQuery plug-in to display photo gallery. You can have a look at the demo at: http://www.gmarwaha.com/jquery/jcarousellite/#demo
On this demo, the photo gallery will only scroll left or right when you click on the left arrow and right arrow. On jCarousel&#8217;s document, we can initialize the carousel start scrolling when the page [...]]]></description>
			<content:encoded><![CDATA[<p>jCarousel Lite is a fantastic jQuery plug-in to display photo gallery. You can have a look at the demo at: <a href="http://www.gmarwaha.com/jquery/jcarousellite/#demo" target="_blank">http://www.gmarwaha.com/jquery/jcarousellite/#demo</a></p>
<p>On this demo, the photo gallery will only scroll left or right when you click on the left arrow and right arrow. On jCarousel&#8217;s document, we can initialize the carousel start scrolling when the page finishes loading by specify the option: auto</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">$(&quot;.slider&quot;).jCarouselLite({
visible: 4,
&lt;strong&gt;auto: true&lt;/strong&gt;,
speed: 2000
});</pre></div></div>

<p>What if I want it to stop when my mouse hover on any of the images? Oh, jCarousel does not originally handle mouse hover event. Well, DIY time.</p>
<h2>Firstly, download the carousel <a href="http://www.gmarwaha.com/jquery/jcarousellite/#download" target="_blank">original source code</a> from the official website</h2>
<p>open that file (jcarousellite_1.0.1.js)</p>
<h2>Second, add a code block between line &#8220;function go(to){&#8221; (about line 292):</h2>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">//&amp;lt;!--add by koumei
var isMouseOver = false;
$(this).mouseover(function(){
isMouseOver = true;
}).mouseout(function(){
isMouseOver = false;
});
//add by koumei--&amp;gt;
function go(to) {
...
...</pre></div></div>

<h2>Third, modify function go: (around line 293)</h2>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">Change &quot;if(!running)&quot; to &quot;if(!running &amp;amp;&amp;amp; !isMouseOver)&quot;</pre></div></div>

<h2>Fourth, DONE.</h2>
<p>Quite simple, I hope the author will consider this function to the next release. <img src='http://blog.koumei.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>You can also download my modified version and the demo at:</p>
<p><a href="http://koumei.net/download/carousel-demo.zip" target="_blank">http://koumei.net/download/carousel-demo.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.koumei.net/2011/06/01/jcarousel-lite-mouse-hover-event-improvement/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>koumei.net Weather Channel</title>
		<link>http://blog.koumei.net/2011/04/21/koumei-net-weather-channel/</link>
		<comments>http://blog.koumei.net/2011/04/21/koumei-net-weather-channel/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 02:58:34 +0000</pubDate>
		<dc:creator>Koumei</dc:creator>
				<category><![CDATA[Living in Victoria]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[iDEA]]></category>

		<guid isPermaLink="false">http://blog.koumei.net/?p=718</guid>
		<description><![CDATA[Koumei.net Weather Channel is released today using koumei.net RSS 2 Json service. For now only have Melbourne, Adelaide and 3 cities in between. Just for my convenience  
If you want to make yours, just download the source code yourself: Source Code
The weather service makes use of weather RSS from Yahoo! weather channel. And change [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://weather.koumei.net" target="_blank">Koumei.net Weather Channel</a> is released today using koumei.net RSS 2 Json service. For now only have Melbourne, Adelaide and 3 cities in between. Just for my convenience <img src='http://blog.koumei.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>If you want to make yours, just download the source code yourself: <a href="http://weather.koumei.net/weather.7z" target="_blank">Source Code</a></p>
<p>The weather service makes use of weather RSS from Yahoo! weather channel. And change to client side RSS to Json converter in koumei.net (<a href="http://blog.koumei.net/2009/03/20/a-simple-rss2json-service-released/" target="_blank">A Simple Rss2Json Service Released!: http://blog.koumei.net/2009/03/20/a-simple-rss2json-service-released/</a>).  So make sure you have javascript supported browser either on the phone or pc.</p>
<p>And here it is: <a href="http://weather.koumei.net" target="_blank">http://weather.koumei.net</a> <img src='http://blog.koumei.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.koumei.net/2011/04/21/koumei-net-weather-channel/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Merry X&#8217;mas</title>
		<link>http://blog.koumei.net/2010/12/25/merry-xmas/</link>
		<comments>http://blog.koumei.net/2010/12/25/merry-xmas/#comments</comments>
		<pubDate>Fri, 24 Dec 2010 14:00:58 +0000</pubDate>
		<dc:creator>Koumei</dc:creator>
				<category><![CDATA[Principle]]></category>

		<guid isPermaLink="false">http://blog.koumei.net/?p=715</guid>
		<description><![CDATA[Merry Christmas.
]]></description>
			<content:encoded><![CDATA[<p>Merry Christmas.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.koumei.net/2010/12/25/merry-xmas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>furniture pickup for free!</title>
		<link>http://blog.koumei.net/2010/12/14/furniture-pickup-for-free/</link>
		<comments>http://blog.koumei.net/2010/12/14/furniture-pickup-for-free/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 03:12:37 +0000</pubDate>
		<dc:creator>Koumei</dc:creator>
				<category><![CDATA[Principle]]></category>

		<guid isPermaLink="false">http://blog.koumei.net/?p=709</guid>
		<description><![CDATA[http://webdevwarehouse.com/
One week left! Shaun is a great man and he got a lot of furniture (table, chairs) for free, can pickup after arranging a time with him, don&#8217;t miss out!
He also got a ping-pong table, but it is too big for me. and sell it for $150, almost brand new.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://webdevwarehouse.com" target="_blank">http://webdevwarehouse.com</a>/</p>
<p>One week left! Shaun is a great man and he got a lot of furniture (table, chairs) for free, can pickup after arranging a time with him, don&#8217;t miss out!</p>
<p>He also got a ping-pong table, but it is too big for me. and sell it for $150, almost brand new.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.koumei.net/2010/12/14/furniture-pickup-for-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bing! site wide search plug-in for wordpress</title>
		<link>http://blog.koumei.net/2010/12/05/bing-site-wide-search-plug-in-for-wordpress/</link>
		<comments>http://blog.koumei.net/2010/12/05/bing-site-wide-search-plug-in-for-wordpress/#comments</comments>
		<pubDate>Sun, 05 Dec 2010 13:22:22 +0000</pubDate>
		<dc:creator>Koumei</dc:creator>
				<category><![CDATA[Principle]]></category>

		<guid isPermaLink="false">http://blog.koumei.net/?p=701</guid>
		<description><![CDATA[It&#8217;s somehow a little bit useful to have bing search engine integrate to your website. I just create a plug-in for wordpress regarding this. This plug-in is designed to be a right panel widget. If you need, just download the ZIP file and upload to your wordpress plug-in, activate it, then you can arrange the [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s somehow a little bit useful to have bing search engine integrate to your website. I just create a plug-in for wordpress regarding this. This plug-in is designed to be a right panel widget. If you need, just download the ZIP file and upload to your wordpress plug-in, activate it, then you can arrange the widget on your right panel.</p>
<p>You can also define the title for this plug-in: you need to setup the search site, if you don&#8217;t, then will be the current site. Please note that &#8220;http://&#8221; is not needed as shown below:</p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/12/widget-setup.jpg"><img class="alignnone size-full wp-image-703" title="widget-setup" src="http://blog.koumei.net/wp-content/uploads/2010/12/widget-setup.jpg" alt="" width="318" height="459" /></a></p>
<p>On the right panel, you can see the bing site search widget is activated:</p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/12/widget.jpg"><img class="alignnone size-full wp-image-704" title="widget" src="http://blog.koumei.net/wp-content/uploads/2010/12/widget.jpg" alt="" width="289" height="101" /></a></p>
<p>And when you type in the search bar with your keyword,  you will see the search result:</p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/12/search-result.jpg"><img class="alignnone size-full wp-image-705" title="search-result" src="http://blog.koumei.net/wp-content/uploads/2010/12/search-result.jpg" alt="" width="607" height="442" /></a></p>
<p>Simple and easy, just go to open source section: <a href="http://blog.koumei.net/open-source/#bing" target="_blank">http://blog.koumei.net/open-source/#bing</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.koumei.net/2010/12/05/bing-site-wide-search-plug-in-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>koumei 7 theme!</title>
		<link>http://blog.koumei.net/2010/12/04/koumei-7-theme/</link>
		<comments>http://blog.koumei.net/2010/12/04/koumei-7-theme/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 23:13:10 +0000</pubDate>
		<dc:creator>Koumei</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tech.]]></category>
		<category><![CDATA[iDEA]]></category>

		<guid isPermaLink="false">http://blog.koumei.net/?p=695</guid>
		<description><![CDATA[koumei finally change the theme!! but honestly, i like the previous one than this one.
with bing! site search plug-in which will be released on open source section next week!
]]></description>
			<content:encoded><![CDATA[<p>koumei finally change the theme!! but honestly, i like the previous one than this one.</p>
<p>with bing! site search plug-in which will be released on open source section next week!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.koumei.net/2010/12/04/koumei-7-theme/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Office Story &#8211; TimTam Story 3D</title>
		<link>http://blog.koumei.net/2010/09/24/office-story-timtam-story-3d/</link>
		<comments>http://blog.koumei.net/2010/09/24/office-story-timtam-story-3d/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 14:56:27 +0000</pubDate>
		<dc:creator>Koumei</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[iDEA]]></category>

		<guid isPermaLink="false">http://blog.koumei.net/?p=688</guid>
		<description><![CDATA[It&#8217;s quite a funny story that my very creative colleague found a post card and made an office story which is now pinned on my desk. Now I revise to TimTam Story in 3D..
What&#8217;s wrong with me recently&#8230; I think I am going crazy about 3D images  
Copyright is reserved
Original Story: David Jones ( [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s quite a funny story that my very creative colleague found a post card and made an office story which is now pinned on my desk. Now I revise to TimTam Story in 3D..</p>
<p>What&#8217;s wrong with me recently&#8230; I think I am going crazy about 3D images <img src='http://blog.koumei.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Copyright is reserved</p>
<p>Original Story: David Jones ( <em>Office Story </em>)</p>
<p>Cosplay: Koumei, Ritika</p>
<p>Script Revision: Koumei</p>
<h2>Tim Tam Story Take 1</h2>
<p><a title="timtam story" href="http://blog.koumei.net/wp-content/uploads/2010/09/timtam-story.jpg" target="_blank"><img class="alignnone size-medium wp-image-689" style="border: 1px solid black;" title="timtam-story" src="http://blog.koumei.net/wp-content/uploads/2010/09/timtam-story-300x189.jpg" alt="" width="300" height="189" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.koumei.net/2010/09/24/office-story-timtam-story-3d/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>3D Image Howto &#8211; A Simple Technique To Create 3D Vision</title>
		<link>http://blog.koumei.net/2010/09/21/3d-image-howto-a-simple-technique-to-create-3d-vision/</link>
		<comments>http://blog.koumei.net/2010/09/21/3d-image-howto-a-simple-technique-to-create-3d-vision/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 11:00:53 +0000</pubDate>
		<dc:creator>Koumei</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[iDEA]]></category>

		<guid isPermaLink="false">http://blog.koumei.net/?p=667</guid>
		<description><![CDATA[3D has been popular recently and become common ever since James Cameron filmed Avatar in 3D. Nobody can resist its marvellous effects. If the visual effect has already been impressive then 3D vision will make it double.
Well, 3D movie is not easy to make in contrast to 3D still picture. With photoshop, you can easily [...]]]></description>
			<content:encoded><![CDATA[<p>3D has been popular recently and become common ever since James Cameron filmed Avatar in 3D. Nobody can resist its marvellous effects. If the visual effect has already been impressive then 3D vision will make it double.</p>
<p>Well, 3D movie is not easy to make in contrast to 3D still picture. With photoshop, you can easily make your picture/photo shown on 3D. Of course, to gain the 3D vision, you have to get a red-cyan 3D glasses first. You can even make it yourself, but trust me, it&#8217;s cheap just search on eBay.</p>
<p>First of all, you need to know a little bit about the color channel system and layer system in photoshop. In a word, if you know photoshop well, making 3D still picture is just a piece of sushi. <img src='http://blog.koumei.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Normally we need to take 2 photo (towards the same object or view) to simulate the left and right eye vision, then render them (project them) into the same place, We need to use the red-cyon glasses to filter the different color to cheat human&#8217;s eye that there is a depth of the object to form 3D vision. But In our case, we just have one photo, so need to use some powerful tool like photoshop to separate the color channel and combine them together.</p>
<p>Let&#8217;s do it now. First of all, you need to get a photo which you would like to make it 3D. Well, theoretically can be any picture. But better use some simple for practicing at the first time. You need to adjust detailed part of picture to make the depth of vision vary ( make it more 3D)</p>
<p>In this example I would like to use Ninja Gaiden Sigma II poster, I am fascinate in Ninja Gaiden series ever since XBOX age. It is considered to be the great action game in the world, even now, I don&#8217;t think there is an action game can beat it. But believe me it&#8217;s more vicious and violent when comes to episode 2 (Ninja Gaiden II and Ninja Gaiden Sigma II), please play this game with parent guided. <img src='http://blog.koumei.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Download this picture(wallpaper from Tecmo official website):</p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/09/ninja-gaiden-printable1.jpg" target="_blank"><img class="alignnone size-medium wp-image-669" style="border: 1px solid black;" title="ninja gaiden printable" src="http://blog.koumei.net/wp-content/uploads/2010/09/ninja-gaiden-printable1-300x178.jpg" alt="" width="300" height="178" /></a></p>
<p>Open it on photoshop, of course, you can DIY some decoration on this photo first.</p>
<p>1. Duplicate the image into 2 layers. Select the 1st layer, and go to channel panel, and delete whole red channel to create left eye vision, like the picture shown below:</p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/09/2.jpg"><img class="alignnone size-full wp-image-671" style="border: 1px solid black;" title="2" src="http://blog.koumei.net/wp-content/uploads/2010/09/2.jpg" alt="" width="550" height="506" /></a></p>
<p>2. Select the 2nd layer and do the same thing, but this time, remove Green and Blue channel to create right eye vision:</p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/09/3.jpg"><img class="alignnone size-full wp-image-672" style="border: 1px solid black;" title="3" src="http://blog.koumei.net/wp-content/uploads/2010/09/3.jpg" alt="" width="549" height="558" /></a></p>
<p>3. Select the top layer ( in this case, &#8220;layer 1 copy&#8221;), and then select &#8220;Multiply&#8221; color bending to combine those 2 layers:</p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/09/4.jpg"><img class="alignnone size-full wp-image-673" style="border: 1px solid black;" title="4" src="http://blog.koumei.net/wp-content/uploads/2010/09/4.jpg" alt="" width="550" height="506" /></a></p>
<p>Now you should be able to preview your picture using the red-cyon glasses. But, the 3D vision is not so strong, because we are not using 2 pictures and we just simulate these pictures are captured by both eyes. So need to adjust the detail part of the image to create more real vision.</p>
<p>Just take the Ryu Hayabusa&#8217;s foot as an example. As the picture shows, the foot should be closer to the camera, so we need to adjust the right eye vision a little bit, to create closer look:</p>
<p>4. Select the foot part of the body:</p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/09/5.jpg"><img class="alignnone size-full wp-image-674" style="border: 1px solid black;" title="5" src="http://blog.koumei.net/wp-content/uploads/2010/09/5.jpg" alt="" width="550" height="414" /></a></p>
<p>Use move tool to move the distance right a little bit, like 2 pixels. After moving the foot part, you can see there is a while gap between ankle and leg, So we need to fix this:</p>
<p>5. Select smudge tool to blur the gap:</p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/09/6.jpg"><img class="alignnone size-full wp-image-675" style="border: 1px solid black;" title="6" src="http://blog.koumei.net/wp-content/uploads/2010/09/6.jpg" alt="" width="550" height="461" /></a></p>
<p>6. Repeat the detailed adjustment like head, hand and the sword.</p>
<p>7. Finally: (Click to open to see the full image)</p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/09/final.jpg" target="_blank"><img class="alignnone size-medium wp-image-676" style="border: 1px solid black;" title="final" src="http://blog.koumei.net/wp-content/uploads/2010/09/final-300x178.jpg" alt="" width="300" height="178" /></a></p>
<p>More <img src='http://blog.koumei.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/09/more3d1.jpg" target="_blank"><img class="alignnone size-medium wp-image-686" style="border: 1px solid black;" title="more3d" src="http://blog.koumei.net/wp-content/uploads/2010/09/more3d1-300x230.jpg" alt="" width="300" height="230" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.koumei.net/2010/09/21/3d-image-howto-a-simple-technique-to-create-3d-vision/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enterprise Boat Display on Docklands</title>
		<link>http://blog.koumei.net/2010/09/04/enterprise-boat-display-on-docklands/</link>
		<comments>http://blog.koumei.net/2010/09/04/enterprise-boat-display-on-docklands/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 15:26:54 +0000</pubDate>
		<dc:creator>Koumei</dc:creator>
				<category><![CDATA[Principle]]></category>

		<guid isPermaLink="false">http://blog.koumei.net/?p=656</guid>
		<description><![CDATA[Melbourne Day: 30 August 2010 (175 Years Anniversary)





]]></description>
			<content:encoded><![CDATA[<p>Melbourne Day: 30 August 2010 (175 Years Anniversary)</p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/09/IMG00425-20100830-1337.jpg"><img class="alignnone size-medium wp-image-657" title="IMG00425-20100830-1337" src="http://blog.koumei.net/wp-content/uploads/2010/09/IMG00425-20100830-1337-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/09/IMG00426-20100830-1342.jpg"><img class="alignnone size-medium wp-image-658" title="IMG00426-20100830-1342" src="http://blog.koumei.net/wp-content/uploads/2010/09/IMG00426-20100830-1342-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/09/IMG00428-20100830-1343.jpg"><img class="alignnone size-medium wp-image-659" title="IMG00428-20100830-1343" src="http://blog.koumei.net/wp-content/uploads/2010/09/IMG00428-20100830-1343-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/09/IMG00431-20100830-1344.jpg"><img class="alignnone size-medium wp-image-660" title="IMG00431-20100830-1344" src="http://blog.koumei.net/wp-content/uploads/2010/09/IMG00431-20100830-1344-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://blog.koumei.net/wp-content/uploads/2010/09/IMG00435-20100830-1351.jpg"><img class="alignnone size-medium wp-image-661" title="IMG00435-20100830-1351" src="http://blog.koumei.net/wp-content/uploads/2010/09/IMG00435-20100830-1351-300x225.jpg" alt="" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.koumei.net/2010/09/04/enterprise-boat-display-on-docklands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gallery CMS MOD: View As HTML or Partial HTML</title>
		<link>http://blog.koumei.net/2010/08/15/gallery-cms-mod-view-as-html-or-partial-html/</link>
		<comments>http://blog.koumei.net/2010/08/15/gallery-cms-mod-view-as-html-or-partial-html/#comments</comments>
		<pubDate>Sat, 14 Aug 2010 15:46:13 +0000</pubDate>
		<dc:creator>Koumei</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tech.]]></category>
		<category><![CDATA[iDEA]]></category>

		<guid isPermaLink="false">http://blog.koumei.net/?p=643</guid>
		<description><![CDATA[Gallery CMS  provides an easy-manage CMS (Content Management System) framework for gallery. I like the way they manage data, all the data are exposed as XML or JSON. It is not a complete solution of photo gallery online, but if you need to integrate photo gallery on your website that would be a very good [...]]]></description>
			<content:encoded><![CDATA[<p>Gallery CMS  provides an easy-manage CMS (Content Management System) framework for gallery. I like the way they manage data, all the data are exposed as XML or JSON. It is not a complete solution of photo gallery online, but if you need to integrate photo gallery on your website that would be a very good start: you can easily develop or integrate. And guess what is the exciting part? It&#8217;s free! For more information, please feel free to download @ http://www.gallerycms.com/</p>
<p>It&#8217;s easily integrate but sometime you might need more convenience when integrate it to your website. Of course using XML or JSON which is the basic data structure is not that difficult, but I think most of time, for the integration itself, the most easiest and convenient is managing HTML. On the view if you are rendering the content partially, later you can use AJAX to replace the partial HTML content dynamically other than managing JSON on client side: we need rich client application, but if it lose weight a little bit, why don&#8217;t we make it lighter?</p>
<p>So, let us apply the MOD to it. It&#8217;s MIT license, so, no harm to mod it. Just pay a little attention to it&#8217;s license file: Gallery CMS comes with 2 licenses, one license is MIT license which represent itself, and the other license is derived from CodeIgniter which the basic framework.</p>
<p>1.\application\controllers\view.php //Add the following codes to it:</p>
<p><em>function html() {<br />
$data['row'] = $this-&gt;gallery_xml-&gt;viewXML();<br />
$this-&gt;load-&gt;model(&#8217;settings_tbl&#8217;);<br />
$data['settings'] = $this-&gt;settings_tbl-&gt;viewSettings();<br />
$this-&gt;load-&gt;view(&#8216;view_html&#8217;, $data);<br />
} </em></p>
<p>2. On\application\views\ folder, create a file view_html.php</p>
<p>Please note that, you can make the view html a full html or you can partially render it like this:</p>
<p><em>&lt;?php if(isset($row)) {?&gt;<br />
&lt;div&gt;<br />
&lt;?php foreach($row as $r){?&gt;<br />
&lt;?php if(isset($r-&gt;images)) {<br />
foreach($r-&gt;images as $img) { ?&gt;<br />
&lt;div&gt;<br />
&lt;div&gt;&lt;a href=&#8221;&lt;?php echo base_url();?&gt;uploads/&lt;?php echo $img-&gt;filename;?&gt;&#8221; target=&#8221;_blank&#8221; title=&#8221;&lt;?php echo $img-&gt;caption;?&gt;&#8221;&gt;&lt;img src=&#8221;&lt;?php echo base_url();?&gt;uploads/&lt;?php echo $img-&gt;thumbnail;?&gt;&#8221; border=&#8221;0&#8243; align=&#8221;absmiddle&#8221; width=&#8221;&lt;?php echo $settings[0]-&gt;thumb_width; ?&gt;&#8221; height=&#8221;&lt;?php echo $settings[0]-&gt;thumb_height; ?&gt;&#8221;/&gt;&lt;/a&gt;&lt;/div&gt;<br />
&lt;div&gt;&lt;?php echo $r-&gt;title;?&gt;&lt;/div&gt;<br />
&lt;div&gt;&lt;?php echo $r-&gt;description;?&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php } ?&gt;<br />
&lt;?php } //if  ?&gt;<br />
&lt;?php } ?&gt;<br />
&lt;div style=&#8221;clear:both&#8221;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php }?&gt;</em></p>
<p>After that, you can use: http://&lt;GALLERY_CMS_WEBSITE&gt;/index.php/html  to retrieve the HTML content. In our mod above, it is just partial HTML, so you can jQuery it:</p>
<p><em>$.get(&#8216;http://&lt;GALLERY_CMS_WEBSITE&gt;/index.php/html &#8216;, null, new function(resp){$(&#8216;#html-container&#8217;).html(resp);});</em></p>
<p>Nice and easy.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.koumei.net/2010/08/15/gallery-cms-mod-view-as-html-or-partial-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

