<?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>Open Script Solution&#187; beranda</title>
	<atom:link href="http://www.openscriptsolution.com/tag/beranda/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openscriptsolution.com</link>
	<description>... where solutions for script programming are found ...</description>
	<lastBuildDate>Tue, 31 Jan 2012 03:22:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Add Home Link in WordPress Menu Using Genesis + Platinum Theme and qTranslate Plugin</title>
		<link>http://www.openscriptsolution.com/2011/08/07/how-to-add-home-link-in-wordpress-menu-using-genesis-platinum-theme-and-qtranslate-plugin/</link>
		<comments>http://www.openscriptsolution.com/2011/08/07/how-to-add-home-link-in-wordpress-menu-using-genesis-platinum-theme-and-qtranslate-plugin/#comments</comments>
		<pubDate>Sun, 07 Aug 2011 09:18:13 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[beranda]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[framework theme]]></category>
		<category><![CDATA[Genesis]]></category>
		<category><![CDATA[Home]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[multibahasa]]></category>
		<category><![CDATA[multilanguage]]></category>
		<category><![CDATA[Platinum]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[qTranslate]]></category>
		<category><![CDATA[tautan]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1393</guid>
		<description><![CDATA[Yesterday I changed the theme of this my website where it had previously used the iNove theme to Genesis theme framework and Platinum child theme. Everything went smoothly until I found a little problem. Because I used the qTranslate plugin for this multilingual website, whereas the last version of Genesis and Platinum; both of them [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I changed the theme of this my website where it had previously used the <strong>iNove</strong> theme to <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework Theme" target="_blank"><strong>Genesis</strong></a> theme framework and <strong>Platinum</strong> child theme. Everything went smoothly until I found a little problem. Because I used the <strong>qTranslate</strong> plugin for this multilingual website, whereas the last version of Genesis and Platinum; both of them which rely on the WordPress Menu, then I can not use the &#8220;Home&#8221; link that belongs to the WordPress Menu so it will adjust to the selected language visitor choose. This is the limitation of &#8220;Home&#8221; link using qTranslate with WordPress Menu. But I am not giving up easily. After doing some exploration from the official <a href="http://www.studiopress.com/" title="StudioPress" target="_blank">StudioPress</a> website, finally I managed to find a way how to add a link to the &#8220;Home&#8221; in accordance with the WordPress menu and this &#8220;Home&#8221; will be automatically adjusted to the selected language visitor choose. In this modification, I am using WordPress Menu (Genesis 1.7+ has used WordPress Menu, and Genesis Navigation is not being used anymore). If you are experiencing the same difficulty with which I experienced above, then the following modification is definitely right for you. </p>
<p>After this line of code in your <strong>functions.php</strong> file that located in Platinum child theme:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH<span style="color: #339933;">.</span><span style="color: #0000ff;">'/lib/init.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>please add this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Add &quot;Home&quot; link in WP Navigation Menu in order to support qTranslate plugin, by Masino Sinaga, August 7, 2011</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_nav_menu_items'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'home_link'</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> home_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$menu</span><span style="color: #339933;">,</span> <span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#41;</span><span style="color: #000088;">$args</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$args</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'theme_location'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'primary'</span> <span style="color: #009900;">&#41;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$menu</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>qtrans_getLanguage<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'en'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$home</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;li id=&quot;home&quot;&gt;&lt;a href=&quot;http://www.openscriptsolution.com&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span>qtrans_getLanguage<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$home</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;li id=&quot;home&quot;&gt;&lt;a href=&quot;http://www.openscriptsolution.com/id/&quot;&gt;Beranda&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$home</span><span style="color: #339933;">.</span><span style="color: #000088;">$menu</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>If you are still using the Genesis Navigation (only for older Genesis version), then simply replace this following code above:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_nav_menu_items'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'home_link'</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>with this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'genesis_nav_items'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'home_link'</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2011%2F08%2F07%2Fhow-to-add-home-link-in-wordpress-menu-using-genesis-platinum-theme-and-qtranslate-plugin%2F&amp;title=How%20to%20Add%20Home%20Link%20in%20WordPress%20Menu%20Using%20Genesis%20%2B%20Platinum%20Theme%20and%20qTranslate%20Plugin" id="wpa2a_2"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2011/08/07/how-to-add-home-link-in-wordpress-menu-using-genesis-platinum-theme-and-qtranslate-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Remove a Trailing Slash from Home&#8217;s URL in Atahualpa 3.5.3 Theme of WordPress</title>
		<link>http://www.openscriptsolution.com/2010/08/10/how-to-remove-a-trailing-slash-from-homes-url-in-atahualpa-353-theme-of-wordpress/</link>
		<comments>http://www.openscriptsolution.com/2010/08/10/how-to-remove-a-trailing-slash-from-homes-url-in-atahualpa-353-theme-of-wordpress/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 03:12:23 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Atahualpa]]></category>
		<category><![CDATA[beranda]]></category>
		<category><![CDATA[Home]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[trailing slash]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[WPML]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1259</guid>
		<description><![CDATA[Believe it or not, if you are running a multilingual site using Atahualpa theme and WPML plugin, you will find that there is a double trailing slash in the Home&#8217;s URL that generated by WPML, especially for Home&#8217;s URL belongs to the languages other than the default one and you are using the &#8220;directory per [...]]]></description>
			<content:encoded><![CDATA[<p>Believe it or not, if you are running a multilingual site using <a href="http://wordpress.bytesforall.com/" title="Atahualpa" target="_blank">Atahualpa</a> theme and <a href="http://wpml.org" title="WPML" target="_blank">WPML</a> plugin, you will find that there is a double trailing slash in the Home&#8217;s URL that generated by WPML, especially for Home&#8217;s URL belongs to the languages other than the default one and you are using the &#8220;directory per language&#8221; setting in WPML. This can be happened since Atahualpa add a trailing slash in every Home&#8217;s URL when the home page is being displayed, whereas WPML also added another trailing slash after the language code in the URL. So, this will make a double trailing slash in the Home&#8217;s URL. In order to remove one of these trailing slash, you can use this following modification. As time goes by, this modification being applied into Atahualpa version 3.5.3 (the last version while I was writing this article) and WordPress version 3.0.1. I am not sure whether this modification can be applied into the older versions. <span id="more-1259"></span></p>
<ol>
<li>
Open your <strong>/wp-content/themes/{youratahualpathemename}/bfa_header_config.php</strong> file, and find this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">   bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'/&quot;</span></pre></div></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">   bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&quot;</span></pre></div></div>

<p>Please note that part of code located in six different location at that file, so you have to replace it six times.
</li>
<li>
Open your <strong>/wp-content/themes/{youratahualpathemename}/bfa_footer.php</strong> file, and find this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">   bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'/&quot;</span></pre></div></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">   bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&quot;</span></pre></div></div>

</li>
<li>
Open your <strong>/wp-content/themes/{youratahualpathemename}/bfa_next_previous_links.php</strong> file, and find this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">   bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'/&quot;</span></pre></div></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">   bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&quot;</span></pre></div></div>

<p>Please note that part of code located in three different location at that file, so you have to replace it three times.
</li>
</ol>
<p>That&#8217;s all. Now you should have the proper Home&#8217;s URL according to their own languages.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2010%2F08%2F10%2Fhow-to-remove-a-trailing-slash-from-homes-url-in-atahualpa-353-theme-of-wordpress%2F&amp;title=How%20to%20Remove%20a%20Trailing%20Slash%20from%20Home%26%238217%3Bs%20URL%20in%20Atahualpa%203.5.3%20Theme%20of%20WordPress" id="wpa2a_4"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2010/08/10/how-to-remove-a-trailing-slash-from-homes-url-in-atahualpa-353-theme-of-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Adjust Home URL Properly in Breadcrumb NavXT Plugin If You Are Running Multilingual Site</title>
		<link>http://www.openscriptsolution.com/2010/07/28/how-to-adjust-home-url-properly-in-breadcrumb-navxt-plugin-if-you-are-running-multilingual-site/</link>
		<comments>http://www.openscriptsolution.com/2010/07/28/how-to-adjust-home-url-properly-in-breadcrumb-navxt-plugin-if-you-are-running-multilingual-site/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 10:07:47 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[beranda]]></category>
		<category><![CDATA[Breadcrumb NavXT]]></category>
		<category><![CDATA[Home]]></category>
		<category><![CDATA[multibahasa]]></category>
		<category><![CDATA[multilingual]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1246</guid>
		<description><![CDATA[The modification I made in the article with titled: How To Make Breadcrumb NavXT Plugin Support for Multi Language will make that plugin will support for multilingual site. Unfortunately, the Home link in the breadcrumb (if you display it in the breadcrumb) will give you a result always pointing to the default URL&#8217;s home, and [...]]]></description>
			<content:encoded><![CDATA[<p>The modification I made in the article with titled: <a href="http://www.openscriptsolution.com/2010/04/25/how-to-make-breadcrumb-navxt-plugin-support-for-multi-language/" target="_blank" title="How To Make Breadcrumb NavXT Plugin Support for Multi Language">How To Make Breadcrumb NavXT Plugin Support for Multi Language</a> will make that plugin will support for multilingual site. Unfortunately, the <strong>Home</strong> link in the breadcrumb (if you display it in the breadcrumb) will give you a result always pointing to the default URL&#8217;s home, and not to the home of the selected language. For example, you have a multilingual site which <strong>English</strong> as default language and <strong>Indonesian</strong> as the second language. So, the default of URL&#8217;s home in English is http://www.example.com, and unfortunately the URL&#8217;s home in Indonesian does not change, and still using: http://www.example.com instead of http://www.example.com/id/. In order to overcome this little issue but still annoying me, then this following modification will help you by replacing only two lines of code in the <strong>breadcrumb_navxt_class.php</strong> file belongs to Breadcrumb NavXT plugin. <span id="more-1246"></span></p>
<ol>
<li>
Open your <strong>breadcrumb_navxt_class.php</strong> file, and find this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #666666; font-style: italic;">//Figure out the anchor for home page</span>
	<span style="color: #000088;">$breadcrumb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set_anchor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">opt</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'home_anchor'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #666666; font-style: italic;">//Figure out the anchor for home page</span>
	<span style="color: #000088;">$breadcrumb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set_anchor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">opt</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'home_anchor'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</li>
<li>
Still in the same file, find again this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #666666; font-style: italic;">//Deal with the anchor</span>
	<span style="color: #000088;">$breadcrumb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set_anchor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">opt</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'home_anchor'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #666666; font-style: italic;">//Deal with the anchor</span>
	<span style="color: #000088;">$breadcrumb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set_anchor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">opt</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'home_anchor'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</li>
</ol>
<p>Please note that this modification has been successfully applied on WordPress version 3 or above. Not tested in the older version than that.</p>
<p>Demo:<br />
- <a href="http://www.ilovewordpress.org/category/general/" target="_blank">http://www.ilovewordpress.org/category/general/</a> (English version)<br />
- <a href="http://www.ilovewordpress.org/id/category/umum/" target="_blank">http://www.ilovewordpress.org/id/category/umum/</a> (Indonesian version)</p>
<p>Hope this helps someone out there!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2010%2F07%2F28%2Fhow-to-adjust-home-url-properly-in-breadcrumb-navxt-plugin-if-you-are-running-multilingual-site%2F&amp;title=How%20to%20Adjust%20Home%20URL%20Properly%20in%20Breadcrumb%20NavXT%20Plugin%20If%20You%20Are%20Running%20Multilingual%20Site" id="wpa2a_6"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2010/07/28/how-to-adjust-home-url-properly-in-breadcrumb-navxt-plugin-if-you-are-running-multilingual-site/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
