<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Eureka!</title>
	<atom:link href="http://eureka.ykyuen.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://eureka.ykyuen.info</link>
	<description>Dream BIG and go for it =)</description>
	<lastBuildDate>Fri, 27 Jan 2012 17:20:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='eureka.ykyuen.info' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/9c99f3c76686bf5edf1ea460356f00f2?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Eureka!</title>
		<link>http://eureka.ykyuen.info</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://eureka.ykyuen.info/osd.xml" title="Eureka!" />
	<atom:link rel='hub' href='http://eureka.ykyuen.info/?pushpress=hub'/>
		<item>
		<title>Drupal &#8211; BAN by IP</title>
		<link>http://eureka.ykyuen.info/2012/01/27/drupal-ban-by-ip/</link>
		<comments>http://eureka.ykyuen.info/2012/01/27/drupal-ban-by-ip/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 04:25:20 +0000</pubDate>
		<dc:creator>ykyuen</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Drupal 7]]></category>
		<category><![CDATA[GoAway]]></category>

		<guid isPermaLink="false">http://eureka.ykyuen.info/?p=8579</guid>
		<description><![CDATA[The GoAway module allows you to ban visitor of your Drupal website by IP address. Just download and enable the module and then browse admin/user/goaway where you can manage the ban list by IP address. &#160; Done =) Reference: Drupal &#8230; <a href="http://eureka.ykyuen.info/2012/01/27/drupal-ban-by-ip/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8579&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The <font color="#008000">GoAway</font> module allows you to <font color="#FF0000">ban</font> visitor of your <font color="#0000FF">Drupal</font> website by <font color="#FF00FF">IP address</font>. Just download and enable the module and then browse <font color="#880088">admin/user/goaway</font> where you can <font color="#FF8000">manage</font> the <font color="#FF0000">ban list</font> by <font color="#FF00FF">IP address</font>.<br />
<span id="more-8579"></span><br />
<a href="http://ykyuen.files.wordpress.com/2012/01/drupal-goaway.png"><img src="http://ykyuen.files.wordpress.com/2012/01/drupal-goaway.png?w=584&#038;h=541" alt="" title="drupal-goaway" width="584" height="541" class="aligncenter size-full wp-image-8706" /></a><br />
&nbsp;</p>
<p>Done =)</p>
<p>Reference: <a href="http://drupal.org/project/goaway">Drupal module &#8211; GoAway</a></p>
<br />Filed under: <a href='http://eureka.ykyuen.info/category/cms/'>CMS</a> Tagged: <a href='http://eureka.ykyuen.info/tag/drupal/'>Drupal</a>, <a href='http://eureka.ykyuen.info/tag/drupal-7/'>Drupal 7</a>, <a href='http://eureka.ykyuen.info/tag/goaway/'>GoAway</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ykyuen.wordpress.com/8579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ykyuen.wordpress.com/8579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ykyuen.wordpress.com/8579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ykyuen.wordpress.com/8579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ykyuen.wordpress.com/8579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ykyuen.wordpress.com/8579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ykyuen.wordpress.com/8579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ykyuen.wordpress.com/8579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ykyuen.wordpress.com/8579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ykyuen.wordpress.com/8579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ykyuen.wordpress.com/8579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ykyuen.wordpress.com/8579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ykyuen.wordpress.com/8579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ykyuen.wordpress.com/8579/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8579&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eureka.ykyuen.info/2012/01/27/drupal-ban-by-ip/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0577d848773f045e3f49ca30ef9fcfa0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">ykyuen</media:title>
		</media:content>

		<media:content url="http://ykyuen.files.wordpress.com/2012/01/drupal-goaway.png" medium="image">
			<media:title type="html">drupal-goaway</media:title>
		</media:content>
	</item>
		<item>
		<title>那些年，我們一起追的女孩。</title>
		<link>http://eureka.ykyuen.info/2012/01/26/%e9%82%a3%e4%ba%9b%e5%b9%b4%ef%bc%8c%e6%88%91%e5%80%91%e4%b8%80%e8%b5%b7%e8%bf%bd%e7%9a%84%e5%a5%b3%e5%ad%a9%e3%80%82/</link>
		<comments>http://eureka.ykyuen.info/2012/01/26/%e9%82%a3%e4%ba%9b%e5%b9%b4%ef%bc%8c%e6%88%91%e5%80%91%e4%b8%80%e8%b5%b7%e8%bf%bd%e7%9a%84%e5%a5%b3%e5%ad%a9%e3%80%82/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 04:00:44 +0000</pubDate>
		<dc:creator>ykyuen</dc:creator>
				<category><![CDATA[Reading]]></category>
		<category><![CDATA[那些年]]></category>
		<category><![CDATA[柯景騰]]></category>
		<category><![CDATA[九把刀]]></category>

		<guid isPermaLink="false">http://eureka.ykyuen.info/?p=8701</guid>
		<description><![CDATA[其實係上年就已經睇完這本書，這亦是我看的第一部九把刀作品。係全城都對電影版瘋狂的時候，我還是比較想看看原著。 好熱血的一本書，一拿上手就不願放下，所以兩天就看完了。回想自己的青春，好像從沒做過一件熱血的事，最最最熱血應該是大學時的五人足球反敗為勝打進四強，哈哈。除了熱血，不得不提的是柯景騰的堅持，對夢想的執著，真真正正做到了一個很厲害的人&#8230; Filed under: Reading Tagged: 那些年, 柯景騰, 九把刀<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8701&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>其實係上年就已經睇完這本書，這亦是我看的第一部九把刀作品。係全城都對電影版瘋狂的時候，我還是比較想看看原著。</p>
<p>好熱血的一本書，一拿上手就不願放下，所以兩天就看完了。回想自己的青春，好像從沒做過一件熱血的事，最最最熱血應該是大學時的五人足球反敗為勝打進四強，哈哈。除了熱血，不得不提的是柯景騰的堅持，對夢想的執著，真真正正做到了一個很厲害的人&#8230;<br />
<a href="http://ykyuen.files.wordpress.com/2012/01/e982a3e4ba9be5b9b4efbc8ce68891e58091e4b880e8b5b7e8bfbde79a84e5a5b3e5ada9e38082.jpg"><img src="http://ykyuen.files.wordpress.com/2012/01/e982a3e4ba9be5b9b4efbc8ce68891e58091e4b880e8b5b7e8bfbde79a84e5a5b3e5ada9e38082.jpg?w=584" alt="" title="那些年，我們一起追的女孩。"   class="aligncenter size-full wp-image-8702" /></a></p>
<br />Filed under: <a href='http://eureka.ykyuen.info/category/reading/'>Reading</a> Tagged: <a href='http://eureka.ykyuen.info/tag/%e9%82%a3%e4%ba%9b%e5%b9%b4/'>那些年</a>, <a href='http://eureka.ykyuen.info/tag/%e6%9f%af%e6%99%af%e9%a8%b0/'>柯景騰</a>, <a href='http://eureka.ykyuen.info/tag/%e4%b9%9d%e6%8a%8a%e5%88%80/'>九把刀</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ykyuen.wordpress.com/8701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ykyuen.wordpress.com/8701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ykyuen.wordpress.com/8701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ykyuen.wordpress.com/8701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ykyuen.wordpress.com/8701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ykyuen.wordpress.com/8701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ykyuen.wordpress.com/8701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ykyuen.wordpress.com/8701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ykyuen.wordpress.com/8701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ykyuen.wordpress.com/8701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ykyuen.wordpress.com/8701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ykyuen.wordpress.com/8701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ykyuen.wordpress.com/8701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ykyuen.wordpress.com/8701/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8701&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eureka.ykyuen.info/2012/01/26/%e9%82%a3%e4%ba%9b%e5%b9%b4%ef%bc%8c%e6%88%91%e5%80%91%e4%b8%80%e8%b5%b7%e8%bf%bd%e7%9a%84%e5%a5%b3%e5%ad%a9%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0577d848773f045e3f49ca30ef9fcfa0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">ykyuen</media:title>
		</media:content>

		<media:content url="http://ykyuen.files.wordpress.com/2012/01/e982a3e4ba9be5b9b4efbc8ce68891e58091e4b880e8b5b7e8bfbde79a84e5a5b3e5ada9e38082.jpg" medium="image">
			<media:title type="html">那些年，我們一起追的女孩。</media:title>
		</media:content>
	</item>
		<item>
		<title>Drupal &#8211; Show exposed filter value in Views header/footer</title>
		<link>http://eureka.ykyuen.info/2012/01/25/drupal-show-exposed-filter-value-in-views-headerfooter/</link>
		<comments>http://eureka.ykyuen.info/2012/01/25/drupal-show-exposed-filter-value-in-views-headerfooter/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 04:00:53 +0000</pubDate>
		<dc:creator>ykyuen</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Drupal Development]]></category>
		<category><![CDATA[Views]]></category>

		<guid isPermaLink="false">http://eureka.ykyuen.info/?p=8692</guid>
		<description><![CDATA[I want to show the submitted exposed filter data in the Views header/footer. This can be done by retrieving the $view object in PHP. The following code will printed the exposed filter data. Apply it to the Views header/footer with &#8230; <a href="http://eureka.ykyuen.info/2012/01/25/drupal-show-exposed-filter-value-in-views-headerfooter/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8692&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I want to show the submitted <font color="#0000FF">exposed filter</font> data in the <font color="#FF00FF">Views</font> <font color="#008000">header/footer</font>. This can be done by retrieving the <font color="#FF8000">$view</font> object in <font color="#880088">PHP</font>. The following code will printed the <font color="#0000FF">exposed filter</font> data. Apply it to the <font color="#FF00FF">Views</font> header/footer with <font color="#880088">PHP</font> enabled.<br />
<span id="more-8692"></span><pre class="brush: php;">
&lt;?php
  $view = views_get_current_view();
  print_r($view-&gt;exposed_input);
?&gt;
</pre><br />
&nbsp;</p>
<p>Done =)</p>
<p>Reference: <a href="http://drupal.org/node/658566">Use data from exposed filter in title or header</a></p>
<br />Filed under: <a href='http://eureka.ykyuen.info/category/cms/'>CMS</a> Tagged: <a href='http://eureka.ykyuen.info/tag/drupal/'>Drupal</a>, <a href='http://eureka.ykyuen.info/tag/drupal-development/'>Drupal Development</a>, <a href='http://eureka.ykyuen.info/tag/views/'>Views</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ykyuen.wordpress.com/8692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ykyuen.wordpress.com/8692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ykyuen.wordpress.com/8692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ykyuen.wordpress.com/8692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ykyuen.wordpress.com/8692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ykyuen.wordpress.com/8692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ykyuen.wordpress.com/8692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ykyuen.wordpress.com/8692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ykyuen.wordpress.com/8692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ykyuen.wordpress.com/8692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ykyuen.wordpress.com/8692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ykyuen.wordpress.com/8692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ykyuen.wordpress.com/8692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ykyuen.wordpress.com/8692/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8692&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eureka.ykyuen.info/2012/01/25/drupal-show-exposed-filter-value-in-views-headerfooter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0577d848773f045e3f49ca30ef9fcfa0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">ykyuen</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery &#8211; Simple Dropdown Menu</title>
		<link>http://eureka.ykyuen.info/2012/01/24/jquery-simple-dropdown-menu/</link>
		<comments>http://eureka.ykyuen.info/2012/01/24/jquery-simple-dropdown-menu/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 04:00:25 +0000</pubDate>
		<dc:creator>ykyuen</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Abhishek Bhardwaj]]></category>
		<category><![CDATA[Drop Down Menu]]></category>

		<guid isPermaLink="false">http://eureka.ykyuen.info/?p=8502</guid>
		<description><![CDATA[I found a excellent article about creating a drop down menu using jQuery written by Abhishek Bhardwaj. For simplicity, i merge the .js file and the .html into one file. &#160; Simple and concise. Thanks Abhishek Bhardwaj. Done =) Reference: &#8230; <a href="http://eureka.ykyuen.info/2012/01/24/jquery-simple-dropdown-menu/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8502&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I found a excellent article about creating a <font color="#FF00FF">drop down menu</font> using <font color="#0000FF">jQuery</font> written by <font color="#008000">Abhishek Bhardwaj</font>. For simplicity, i merge the <font color="#880088">.js</font> file and the <font color="#FF8000">.html</font> into one file.<br />
<span id="more-8502"></span><br />
<pre class="brush: xml;">
&lt;!--
  Source article: TW TutorialsWalks - Add JQuery Dropdown effects to Sidebar &quot;sub-links&quot;
  Source link: http://tutorialswalk.info/development/jquery-dropdown-effects-to-sidebar-sub-links/comment-page-1
--&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Adding JQuery dropdown effect to the sidebar sublibnks | TutorialsWalk | PHP Tutorial&lt;/title&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
      $(document).ready(function() {
        $(&quot;li.subnav&quot;).hide();
        $(&quot;li.topnav&quot;).hover(
          function() {$(&quot;li.subnav&quot;).slideDown();},
          function() {$(&quot;li.subnav&quot;).slideUp();}
        );
      });
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id=&quot;sidebar&quot;&gt;
      &lt;div class=&quot;inside&quot;&gt;
        &lt;ul id=&quot;navigation&quot;&gt;
          &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href=&quot;#&quot;&gt;About Us&lt;/a&gt;&lt;/li&gt;
          &lt;li class=&quot;topnav&quot;&gt;&lt;a href=&quot;#&quot;&gt;Sub-Links&lt;/a&gt;
             &lt;ul&gt;
               &lt;li class=&quot;subnav&quot;&gt;&lt;a href=&quot;#&quot;&gt;Sub-Link 1&lt;/a&gt;&lt;/li&gt;
               &lt;li class=&quot;subnav&quot;&gt;&lt;a href=&quot;#&quot;&gt;Sub-Link 2&lt;/a&gt;&lt;/li&gt;
               &lt;li class=&quot;subnav&quot;&gt;&lt;a href=&quot;#&quot;&gt;Sub-Link 3&lt;/a&gt;&lt;/li&gt;
               &lt;li class=&quot;subnav&quot;&gt;&lt;a href=&quot;#&quot;&gt;Sub-Link 4&lt;/a&gt;&lt;/li&gt;
             &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link 4&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link 5&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre><br />
&nbsp;</p>
<p><font color="#0000A0">Simple and concise</font>. Thanks <font color="#008000">Abhishek Bhardwaj</font>.</p>
<p>Done =)</p>
<p>Reference: <a href="http://tutorialswalk.info/development/jquery-dropdown-effects-to-sidebar-sub-links/comment-page-1">TW TutorialsWalks &#8211; Add JQuery Dropdown effects to Sidebar &#8220;sub-links&#8221;</a></p>
<br />Filed under: <a href='http://eureka.ykyuen.info/category/jquery/'>jQuery</a> Tagged: <a href='http://eureka.ykyuen.info/tag/abhishek-bhardwaj/'>Abhishek Bhardwaj</a>, <a href='http://eureka.ykyuen.info/tag/drop-down-menu/'>Drop Down Menu</a>, <a href='http://eureka.ykyuen.info/tag/jquery/'>jQuery</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ykyuen.wordpress.com/8502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ykyuen.wordpress.com/8502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ykyuen.wordpress.com/8502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ykyuen.wordpress.com/8502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ykyuen.wordpress.com/8502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ykyuen.wordpress.com/8502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ykyuen.wordpress.com/8502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ykyuen.wordpress.com/8502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ykyuen.wordpress.com/8502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ykyuen.wordpress.com/8502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ykyuen.wordpress.com/8502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ykyuen.wordpress.com/8502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ykyuen.wordpress.com/8502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ykyuen.wordpress.com/8502/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8502&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eureka.ykyuen.info/2012/01/24/jquery-simple-dropdown-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0577d848773f045e3f49ca30ef9fcfa0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">ykyuen</media:title>
		</media:content>
	</item>
		<item>
		<title>Drupal &#8211; Get taxonomy term by term ID</title>
		<link>http://eureka.ykyuen.info/2012/01/23/drupal-get-taxonomy-term-by-term-id/</link>
		<comments>http://eureka.ykyuen.info/2012/01/23/drupal-get-taxonomy-term-by-term-id/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 04:00:40 +0000</pubDate>
		<dc:creator>ykyuen</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Drupal 7]]></category>
		<category><![CDATA[Drupal Development]]></category>
		<category><![CDATA[Taxonomy]]></category>

		<guid isPermaLink="false">http://ykyuen.wordpress.com/?p=8689</guid>
		<description><![CDATA[In Drupal 6, you can get the term object using the following function &#160; In Druapl 7, this function is deprecated but you can get the term by term name. &#160; If you want to get the term by term &#8230; <a href="http://eureka.ykyuen.info/2012/01/23/drupal-get-taxonomy-term-by-term-id/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8689&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In <font color="#0000FF">Drupal 6</font>, you can get the <font color="#008000">term object</font> using the following function<br />
<pre class="brush: php;">
taxonomy_get_term($tid);
</pre><br />
&nbsp;<br />
<span id="more-8689"></span><br />
In <font color="#0000A0">Druapl 7</font>, this function is <font color="#FF0000">deprecated</font> but you can get the <font color="#008000">term</font> by <font color="#FF8000">term name</font>.<br />
<pre class="brush: php;">
taxonomy_get_term_by_name($name);
</pre><br />
&nbsp;</p>
<p>If you want to get the <font color="#008000">term</font> by <font color="#FF00FF">term ID</font>, there is not yet a official solution but hopefully you could find more information in the following discussions.</p>
<ul>
<li><a href="http://drupal.org/node/909968">taxonomy_node_get_terms() in Drupal 7</a></li>
<li><a href="http://drupal.org/node/959984">taxonomy_node_get_terms doesn&#8217;t work with drupal 7</a></li>
</ul>
<p>&nbsp;</p>
<p>Done =)</p>
<p>Reference:</p>
<ul>
<li><a href="http://api.drupal.org/api/drupal/modules--taxonomy--taxonomy.module/function/taxonomy_get_term/6">Drupal 6 API &#8211; taxonomy_get_term</a></li>
<li><a href="http://api.drupal.org/api/drupal/modules--taxonomy--taxonomy.module/function/taxonomy_get_term_by_name/7">Drupal 7 API &#8211; taxonomy_get_term_by_name</a></li>
</ul>
<br />Filed under: <a href='http://eureka.ykyuen.info/category/cms/'>CMS</a> Tagged: <a href='http://eureka.ykyuen.info/tag/drupal/'>Drupal</a>, <a href='http://eureka.ykyuen.info/tag/drupal-7/'>Drupal 7</a>, <a href='http://eureka.ykyuen.info/tag/drupal-development/'>Drupal Development</a>, <a href='http://eureka.ykyuen.info/tag/taxonomy/'>Taxonomy</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ykyuen.wordpress.com/8689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ykyuen.wordpress.com/8689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ykyuen.wordpress.com/8689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ykyuen.wordpress.com/8689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ykyuen.wordpress.com/8689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ykyuen.wordpress.com/8689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ykyuen.wordpress.com/8689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ykyuen.wordpress.com/8689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ykyuen.wordpress.com/8689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ykyuen.wordpress.com/8689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ykyuen.wordpress.com/8689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ykyuen.wordpress.com/8689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ykyuen.wordpress.com/8689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ykyuen.wordpress.com/8689/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8689&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eureka.ykyuen.info/2012/01/23/drupal-get-taxonomy-term-by-term-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0577d848773f045e3f49ca30ef9fcfa0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">ykyuen</media:title>
		</media:content>
	</item>
		<item>
		<title>Drupal 7 – Get number of nodes of Taxonomy Term in Views</title>
		<link>http://eureka.ykyuen.info/2012/01/20/drupal-7-get-number-of-nodes-of-taxonomy-term-in-views/</link>
		<comments>http://eureka.ykyuen.info/2012/01/20/drupal-7-get-number-of-nodes-of-taxonomy-term-in-views/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 04:00:39 +0000</pubDate>
		<dc:creator>ykyuen</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Drupal 7]]></category>
		<category><![CDATA[Drupal Development]]></category>
		<category><![CDATA[Taxonomy]]></category>
		<category><![CDATA[Views]]></category>

		<guid isPermaLink="false">http://eureka.ykyuen.info/?p=8679</guid>
		<description><![CDATA[About 2 months ago i published a post on how to get the number of nodes of a specific taxonomy term by term ID. Drupal – Get number of nodes of Taxonomy Term by Term ID Unfortunately, the taxonomy_term_count_nodes() no &#8230; <a href="http://eureka.ykyuen.info/2012/01/20/drupal-7-get-number-of-nodes-of-taxonomy-term-in-views/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8679&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>About 2 months ago i published a post on how to get the number of nodes of a specific <font color="#880088">taxonomy term</font> by <font color="#FF0000">term ID</font>.<br />
<a href="http://eureka.ykyuen.info/2011/11/05/drupal-get-number-of-node-of-taxonomy-term-by-term-id/">Drupal – Get number of nodes of Taxonomy Term by Term ID</a></p>
<p>Unfortunately, the <font color="#FF8000">taxonomy_term_count_nodes()</font> no longer works in <font color="#0000FF">Drupal 7</font> but you can get the count by <font color="#0000A0">Views</font> in <font color="#0000FF">D7</font>.<br />
<span id="more-8679"></span><br />
1. Create a <font color="#880088">term view</font> (A vocabulary called <font color="#FF0000">XXX</font> is used in this example)</p>
<p>2. Add a new <font color="#FF00FF">relationship</font> <font color="#008000">Taxonomy term: Content using XXX</font></p>
<p>3. Turn on the <font color="#FF8000">Use aggregation</font> under <font color="#008888">OTHER</font> settings</p>
<p>4. Add <font color="#0000FF">Content: Nid</font> as new field and set the <font color="#880088">Aggregation type</font> to <font color="#FF0000">Count</font></p>
<p>Done =)</p>
<p>Reference: <a href="http://drupal.org/node/603868#comment-4421144">Rework Term Node Count for D7</a></p>
<br />Filed under: <a href='http://eureka.ykyuen.info/category/cms/'>CMS</a> Tagged: <a href='http://eureka.ykyuen.info/tag/drupal/'>Drupal</a>, <a href='http://eureka.ykyuen.info/tag/drupal-7/'>Drupal 7</a>, <a href='http://eureka.ykyuen.info/tag/drupal-development/'>Drupal Development</a>, <a href='http://eureka.ykyuen.info/tag/taxonomy/'>Taxonomy</a>, <a href='http://eureka.ykyuen.info/tag/views/'>Views</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ykyuen.wordpress.com/8679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ykyuen.wordpress.com/8679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ykyuen.wordpress.com/8679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ykyuen.wordpress.com/8679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ykyuen.wordpress.com/8679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ykyuen.wordpress.com/8679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ykyuen.wordpress.com/8679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ykyuen.wordpress.com/8679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ykyuen.wordpress.com/8679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ykyuen.wordpress.com/8679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ykyuen.wordpress.com/8679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ykyuen.wordpress.com/8679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ykyuen.wordpress.com/8679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ykyuen.wordpress.com/8679/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8679&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eureka.ykyuen.info/2012/01/20/drupal-7-get-number-of-nodes-of-taxonomy-term-in-views/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0577d848773f045e3f49ca30ef9fcfa0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">ykyuen</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP – Convert URL into clickable link with UrlLinker</title>
		<link>http://eureka.ykyuen.info/2012/01/19/php-convert-url-into-clickable-link-with-urllinker/</link>
		<comments>http://eureka.ykyuen.info/2012/01/19/php-convert-url-into-clickable-link-with-urllinker/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 04:00:39 +0000</pubDate>
		<dc:creator>ykyuen</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Regular Expression]]></category>
		<category><![CDATA[Søren Løvborg]]></category>
		<category><![CDATA[UrlLinker]]></category>

		<guid isPermaLink="false">http://eureka.ykyuen.info/?p=8656</guid>
		<description><![CDATA[Yesterday we have talked about converting URL into clickable link by Regular Expression. PHP &#8211; Convert URL into clickable link by Regular Expression If you want a more complete and robust solution, you can try the UrlLinker written by Søren &#8230; <a href="http://eureka.ykyuen.info/2012/01/19/php-convert-url-into-clickable-link-with-urllinker/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8656&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday we have talked about converting <font color="#0000FF">URL</font> into <font color="#008000">clickable link</font> by <font color="#FF8000">Regular Expression</font>.<br />
<a href="http://eureka.ykyuen.info/2012/01/18/php-convert-url-into-clickable-link-by-regular-expression/">PHP &#8211; Convert URL into clickable link by Regular Expression</a></p>
<p>If you want a more complete and robust solution, you can try the <font color="#FF00FF">UrlLinker</font> written by <font color="#0000A0">Søren Løvborg</font>.<br />
<span id="more-8656"></span><br />
1. Download the <font color="#FF0000">UrlLinker.php</font> @ <a href="https://bitbucket.org/kwi/urllinker/src">kwi / urllinker</a></p>
<p>2. Try the following piece of code<br />
<pre class="brush: php;">
&lt;?php
require(&quot;UrlLinker.php&quot;);

$text = &lt;&lt;&lt;EOD
Here's an e-mail-address:bob@example.org. Here's an authenticated URL: http://skroob:12345@example.com.
Here are some URLs:
stackoverflow.com/questions/1188129/pregreplace-to-detect-html-php
Here's the answer: http://www.google.com/search?rls=en&amp;q=42&amp;ie=utf-8&amp;oe=utf-8&amp;hl=en. What was the question?
A quick look at http://en.wikipedia.org/wiki/URI_scheme#Generic_syntax is helpful.
There is no place like 127.0.0.1! Except maybe http://news.bbc.co.uk/1/hi/england/surrey/8168892.stm?
Ports: 192.168.0.1:8080, https://example.net:1234/.
Beware of Greeks bringing internationalized top-level domains: xn--hxajbheg2az3al.xn--jxalpdlp.
10.000.000.000 is not an IP-address. Nor is this.a.domain.

&lt;script&gt;alert('Remember kids: Say no to XSS-attacks! Always HTML escape untrusted input!');&lt;/script&gt;
EOD;

print(nl2br(htmlEscapeAndLinkUrls($text)));
?&gt;
</pre><br />
&nbsp;</p>
<p>Done =)</p>
<p>Reference:</p>
<ul>
<li><a href="https://bitbucket.org/kwi/urllinker/src">kwi / urllinker</a></li>
<li><a href="http://www.kwi.dk/projects/php/UrlLinker/">UrlLinker</a></li>
<li><a href="http://stackoverflow.com/questions/1188129/replace-urls-in-text-with-html-links/">StackOverflow &#8211; Replace URLs in text with HTML links</a></li>
</ul>
<br />Filed under: <a href='http://eureka.ykyuen.info/category/php/'>PHP</a> Tagged: <a href='http://eureka.ykyuen.info/tag/php/'>PHP</a>, <a href='http://eureka.ykyuen.info/tag/regular-expression/'>Regular Expression</a>, <a href='http://eureka.ykyuen.info/tag/soren-lovborg/'>Søren Løvborg</a>, <a href='http://eureka.ykyuen.info/tag/urllinker/'>UrlLinker</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ykyuen.wordpress.com/8656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ykyuen.wordpress.com/8656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ykyuen.wordpress.com/8656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ykyuen.wordpress.com/8656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ykyuen.wordpress.com/8656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ykyuen.wordpress.com/8656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ykyuen.wordpress.com/8656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ykyuen.wordpress.com/8656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ykyuen.wordpress.com/8656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ykyuen.wordpress.com/8656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ykyuen.wordpress.com/8656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ykyuen.wordpress.com/8656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ykyuen.wordpress.com/8656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ykyuen.wordpress.com/8656/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8656&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eureka.ykyuen.info/2012/01/19/php-convert-url-into-clickable-link-with-urllinker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0577d848773f045e3f49ca30ef9fcfa0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">ykyuen</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP &#8211; Convert URL into clickable link by Regular Expression</title>
		<link>http://eureka.ykyuen.info/2012/01/18/php-convert-url-into-clickable-link-by-regular-expression/</link>
		<comments>http://eureka.ykyuen.info/2012/01/18/php-convert-url-into-clickable-link-by-regular-expression/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 04:00:27 +0000</pubDate>
		<dc:creator>ykyuen</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Regular Expression]]></category>

		<guid isPermaLink="false">http://eureka.ykyuen.info/?p=8608</guid>
		<description><![CDATA[I want to convert the all URLs in a string into clickable links. I found a solution in StackOverflow but probably it only works in PHP 5.2 since it uses eregi_replace() which is deprecated in PHP 5.3. So use it &#8230; <a href="http://eureka.ykyuen.info/2012/01/18/php-convert-url-into-clickable-link-by-regular-expression/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8608&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I want to convert the all <font color="#0000FF">URLs</font> in a string into <font color="#008000">clickable links</font>. I found a solution in <font color="#FF8000">StackOverflow</font> but probably it only works in <font color="#FF00FF">PHP 5.2</font> since it uses <font color="#880088">eregi_replace()</font> which is <font color="#FF0000">deprecated</font> in <font color="#0000A0">PHP 5.3</font>. So use it with cares.<br />
<span id="more-8608"></span><br />
<pre class="brush: php;">
&lt;?php
  function makeClickableLinks($text) {
    $text = html_entity_decode($text);
    $text = &quot; &quot;.$text;
    $text = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)',
            '&lt;a href=&quot;\\1&quot; target=_blank&gt;\\1&lt;/a&gt;', $text);
    $text = eregi_replace('(((f|ht){1}tps://)[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)',
            '&lt;a href=&quot;\\1&quot; target=_blank&gt;\\1&lt;/a&gt;', $text);
    $text = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)',
    '\\1&lt;a href=&quot;http://\\2&quot; target=_blank&gt;\\2&lt;/a&gt;', $text);
    $text = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})',
    '&lt;a href=&quot;mailto:\\1&quot; target=_blank&gt;\\1&lt;/a&gt;', $text);
    return $text;
  }
?&gt;
&lt;p&gt;&lt;?php print makeClickableLinks(&quot;Go to http://eureka.ykyuen.info&quot;); ?&gt;&lt;/p&gt;
&lt;p&gt;&lt;?php print makeClickableLinks(&quot;Send email to abc@def.com&quot;); ?&gt;&lt;/p&gt;
</pre><br />
&nbsp;</p>
<p>Done =)</p>
<p>Reference: <a href="http://stackoverflow.com/questions/1960461/convert-plain-text-urls-into-html-hyperlinks-in-php">StackOverflow &#8211; Convert plain text URLs into HTML hyperlinks in PHP</a></p>
<br />Filed under: <a href='http://eureka.ykyuen.info/category/php/'>PHP</a> Tagged: <a href='http://eureka.ykyuen.info/tag/php/'>PHP</a>, <a href='http://eureka.ykyuen.info/tag/regular-expression/'>Regular Expression</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ykyuen.wordpress.com/8608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ykyuen.wordpress.com/8608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ykyuen.wordpress.com/8608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ykyuen.wordpress.com/8608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ykyuen.wordpress.com/8608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ykyuen.wordpress.com/8608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ykyuen.wordpress.com/8608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ykyuen.wordpress.com/8608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ykyuen.wordpress.com/8608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ykyuen.wordpress.com/8608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ykyuen.wordpress.com/8608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ykyuen.wordpress.com/8608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ykyuen.wordpress.com/8608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ykyuen.wordpress.com/8608/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8608&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eureka.ykyuen.info/2012/01/18/php-convert-url-into-clickable-link-by-regular-expression/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0577d848773f045e3f49ca30ef9fcfa0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">ykyuen</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubercart &#8211; Get the product picture</title>
		<link>http://eureka.ykyuen.info/2012/01/17/ubercart-get-the-product-picture/</link>
		<comments>http://eureka.ykyuen.info/2012/01/17/ubercart-get-the-product-picture/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 04:28:46 +0000</pubDate>
		<dc:creator>ykyuen</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Drupal Development]]></category>
		<category><![CDATA[ImageCache]]></category>
		<category><![CDATA[Ubercart]]></category>

		<guid isPermaLink="false">http://eureka.ykyuen.info/?p=8647</guid>
		<description><![CDATA[You can get the product picture by the product node id using the following function &#160; you can use any other ImageCache settings by replacing the &#8216;cart&#8217; parameter. Done =) Filed under: CMS Tagged: Drupal, Drupal Development, ImageCache, Ubercart<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8647&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You can get the product picture by the product node id using the following function<br />
<pre class="brush: php;">
print uc_product_get_picture(&lt;product node id&gt;, 'cart');
</pre><br />
&nbsp;</p>
<p>you can use any other ImageCache settings by replacing the &#8216;cart&#8217; parameter.</p>
<p>Done =)</p>
<br />Filed under: <a href='http://eureka.ykyuen.info/category/cms/'>CMS</a> Tagged: <a href='http://eureka.ykyuen.info/tag/drupal/'>Drupal</a>, <a href='http://eureka.ykyuen.info/tag/drupal-development/'>Drupal Development</a>, <a href='http://eureka.ykyuen.info/tag/imagecache/'>ImageCache</a>, <a href='http://eureka.ykyuen.info/tag/ubercart/'>Ubercart</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ykyuen.wordpress.com/8647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ykyuen.wordpress.com/8647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ykyuen.wordpress.com/8647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ykyuen.wordpress.com/8647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ykyuen.wordpress.com/8647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ykyuen.wordpress.com/8647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ykyuen.wordpress.com/8647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ykyuen.wordpress.com/8647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ykyuen.wordpress.com/8647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ykyuen.wordpress.com/8647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ykyuen.wordpress.com/8647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ykyuen.wordpress.com/8647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ykyuen.wordpress.com/8647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ykyuen.wordpress.com/8647/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=8647&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eureka.ykyuen.info/2012/01/17/ubercart-get-the-product-picture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0577d848773f045e3f49ca30ef9fcfa0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">ykyuen</media:title>
		</media:content>
	</item>
		<item>
		<title>Drupal &#8211; Check if user has logged in</title>
		<link>http://eureka.ykyuen.info/2012/01/16/drupal-check-if-user-has-logged-in/</link>
		<comments>http://eureka.ykyuen.info/2012/01/16/drupal-check-if-user-has-logged-in/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 04:00:45 +0000</pubDate>
		<dc:creator>ykyuen</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Drupal Development]]></category>

		<guid isPermaLink="false">http://ykyuen.wordpress.com/?p=7978</guid>
		<description><![CDATA[The following piece of codes check if the Drupal visitor is logged in or not. &#160; Done =) Reference: Drupal API &#8211; user_is_logged_in Filed under: CMS Tagged: Drupal, Drupal Development<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=7978&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The following piece of codes check if the <font color="#0000FF">Drupal</font> visitor is logged in or not.<br />
<pre class="brush: php;">
...
if (user_is_logged_in()) {
  // user is logged in
} else {
  // anonymous user
{
...
</pre><br />
&nbsp;</p>
<p>Done =)</p>
<p>Reference: <a href="http://api.drupal.org/api/drupal/modules--user--user.module/function/user_is_logged_in/6">Drupal API &#8211; user_is_logged_in</a></p>
<br />Filed under: <a href='http://eureka.ykyuen.info/category/cms/'>CMS</a> Tagged: <a href='http://eureka.ykyuen.info/tag/drupal/'>Drupal</a>, <a href='http://eureka.ykyuen.info/tag/drupal-development/'>Drupal Development</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ykyuen.wordpress.com/7978/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ykyuen.wordpress.com/7978/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ykyuen.wordpress.com/7978/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ykyuen.wordpress.com/7978/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ykyuen.wordpress.com/7978/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ykyuen.wordpress.com/7978/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ykyuen.wordpress.com/7978/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ykyuen.wordpress.com/7978/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ykyuen.wordpress.com/7978/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ykyuen.wordpress.com/7978/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ykyuen.wordpress.com/7978/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ykyuen.wordpress.com/7978/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ykyuen.wordpress.com/7978/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ykyuen.wordpress.com/7978/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eureka.ykyuen.info&amp;blog=8827782&amp;post=7978&amp;subd=ykyuen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eureka.ykyuen.info/2012/01/16/drupal-check-if-user-has-logged-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0577d848773f045e3f49ca30ef9fcfa0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">ykyuen</media:title>
		</media:content>
	</item>
	</channel>
</rss>
