<?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>SulhanSetiawan.com &#187; WordPress</title> <atom:link href="http://www.sulhansetiawan.com/category/web/wordpress/feed" rel="self" type="application/rss+xml" /><link>http://www.sulhansetiawan.com</link> <description></description> <lastBuildDate>Sun, 05 Feb 2012 17:08:53 +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>Facebook Like And Comment</title><link>http://www.sulhansetiawan.com/fblike-comment</link> <comments>http://www.sulhansetiawan.com/fblike-comment#comments</comments> <pubDate>Tue, 15 Nov 2011 10:49:05 +0000</pubDate> <dc:creator>Sulhan</dc:creator> <category><![CDATA[All]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[Facebook]]></category> <category><![CDATA[Social Plugins]]></category> <category><![CDATA[Wordpress]]></category><guid isPermaLink="false">http://www.sulhansetiawan.com/?p=1220</guid> <description><![CDATA[Facebook Like And Comment add like/recommend button, also send button, and optionally use facebook comment instead of wordpress comment for your wordpress site.]]></description> <content:encoded><![CDATA[<p><span style='display:none'>How to add the Facebook Like button on Website. </span>Facebook Like And Comment add like/recommend button, also send button, and optionally use facebook comment instead of wordpress comment for your wordpress site.</p><p><span style='display:none'>The Facebook Like button plugin on WordPress. </span>Each post or page will has Like/Recommend  button bellow post content. When visitor click on this button, the specified image will be shown on visitor&#8217;s facebook wall, the title of the post and its excerpt.</p><div class="wp-caption aligncenter" style="width: 410px"><a href="http://resource.sulhansetiawan.com/img/facebook-like.jpg"><img title="Facebook Like" src="http://resource.sulhansetiawan.com/img/facebook-like.jpg" alt="Facebook Like" width="400" height="220" /></a><p class="wp-caption-text">Facebook Like</p></div><p><span style='display:none'>How to add Facebook Comments on Website. </span>If you want, you may use facebook comment instead of standard wordpress comment.</p><div class="wp-caption aligncenter" style="width: 410px"><a href="http://resource.sulhansetiawan.com/img/wordpress-comment.jpg"><img title="Original WordPress Comment" src="http://resource.sulhansetiawan.com/img/wordpress-comment.jpg" alt="Original WordPress Comment" width="400" height="439" /></a><p class="wp-caption-text">Original WordPress Comment</p></div><p><span style='display:none'>Plugin to add Facebook Comments on WordPress. </span>Original WordPress comments will be replaced by Facebook comments.</p><div class="wp-caption aligncenter" style="width: 410px"><a href="http://resource.sulhansetiawan.com/img/facebook-comment.jpg"><img title="Facebook Comment" src="http://resource.sulhansetiawan.com/img/facebook-comment.jpg" alt="Facebook Comment" width="400" height="382" /></a><p class="wp-caption-text">Facebook Comment</p></div><p>Every time a new facebook comment added, you will be notified through admin email. So you can soon approve or ban the comment.</p><p><span style='display:none'>SEO Boost with Facebook Comments on your Website. </span>The facebook comment is actually an iframe. So, search engine will not crawl the comment inside it. To evercome this, the plugin will read it and cache it, then include it inside each post behind the facebook comment, so search engine will crawl it but will not affect the appearance. This is for the SEO sake.</p><div id="download" class="wp-caption aligncenter" style="width: 135px"><a href="http://wordpress.org/extend/plugins/facebook-like-and-comment/"><img title="Facebook Like And Comment" src="http://resource.sulhansetiawan.com/img/download.gif" alt="Facebook Like And Comment" width="87" height="30" /></a><p class="wp-caption-text">Facebook Like And Comment</p></div> ]]></content:encoded> <wfw:commentRss>http://www.sulhansetiawan.com/fblike-comment/feed</wfw:commentRss> <slash:comments>22</slash:comments> </item> <item><title>Redirect without changing the address in the address bar</title><link>http://www.sulhansetiawan.com/redireksi-tanpa-mengubah-alamat-pada-address-bar</link> <comments>http://www.sulhansetiawan.com/redireksi-tanpa-mengubah-alamat-pada-address-bar#comments</comments> <pubDate>Thu, 07 Jul 2011 15:41:52 +0000</pubDate> <dc:creator>Sulhan</dc:creator> <category><![CDATA[All]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[Web Programming]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Wordpress]]></category><guid isPermaLink="false">http://sulhansetiawan.com/?p=1126</guid> <description><![CDATA[Redirect is the process of transferring the url address to another address. For example, you can type http://www.example1.com but when you hit enter, the page that appears is a page on http://www.example2.com. The transfer of the above can be done in various ways, eg by javascript: &#60;script type="text/javascript"&#62; location.replace("http://www.example2.com"); &#60;/script&#62; If the script above is [...]]]></description> <content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 468px"><a href="https://masterkey.masterweb.net/aff.php?aff=7206"><img src="http://id.masterweb.net/images/banner/468X60/banner_468X60_abu_start5000.gif" title="Web Hosting murah. Mulai dari Rp.950,-/bulan dengan trafic unlimited"/></a></div></p><p>Redirect is the process of transferring the url address to another address. For example, you can type http://www.example1.com but when you hit enter, the page that appears is a page on http://www.example2.com.</p><p>The transfer of the above can be done in various ways, eg by javascript:</p><pre>&lt;script type="text/javascript"&gt;
location.replace("http://www.example2.com");
&lt;/script&gt;
</pre><p>If the script above is placed on index.html in http://www.example1.com, then the page displayed in the browser will be replaced with the contents of http://www.example2.com.</p><p>Biside the replacement of the display in the browser, the address displayed in the address bar will also be replaced with a new address. There are times when things like this are desirable. But in other cases, we may not want visitors to our website know that the page displayed is not derived from the address he was typing in the address bar.</p><p>Examples which may make sense to do is as follows. That we have multiple domains, say 3 domain. Everything is set up using WordPress CMS. Size of wordpress is approximately 10MB . Thus, you should hire a hosting that size should be larger than 10MB. So at least you should use a hosting with a capacity of 50M for example. Capacity is usually defined in certain sizes. So even if coupled with the size of the database to its contents need only 15MB, but this size may be not available.</p><p>Without the redirection, you have to hire 3 x hosting 50MB even though you only need 3 x 15MB. But with the redirection, you just need to hire a hosting with a capacity of 50MB, while the other two simply by the size of not more than 10KB. There are some providers that provide the very small capacity with a very low cost, so that we can think of for free. This service is usually given to people who already have a domain, but have not had time to build it. So he only need to show such as &#8220;Under construction&#8221;, which of course is very small in size.</p><p>With the redirect technique, we can use this facility to our other two domains.</p><p>So how to set it?</p><p>First, on the hosting with 50MB capacity, we make a subdomain. For example a domain name for hosting it is <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> , then we can create two subdomains like aa.sulhansetiawan.com and bb.sulhansetiawan.com. Subdomains is just a subdomain alias for <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> . Most hosting providers provide this facility. So <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> can be achieved by aa.sulhansetiawan.com and bb.sulhansetiawan.com too.</p><p>For what we are creating a subdomain, but pointed to himself?</p><p>As already mentioned above, the CMS we use is WordPress. Therefore, edit the file <b>wp-config.php</b> in the assigment of <span class="notranslate">$table_prefix</span>. Normally this variable is filled with <span class="notranslate">$table_prefix=&#8217;wp_&#8217;;</span></p><p>Make changes so that it becomes:</p><p><span class="notranslate"><pre>if("aa.sulhansetiawan.com"==$_SERVER['HTTP_HOST'])$table_prefix='aa_';
elseif("bb.sulhansetiawan.com"==$_SERVER['HTTP_HOST'])$table_prefix='bb_';
else $table_prefix='ss_';
</pre><p></span></p><p>Thus, although <a href="http://sulhansetiawan.com">sulhansetiawan.com</a>, aa.sulhansetiawan.com, also bb.sulhansetiawan.com, pointing to the same place, but the page displayed will be different because it uses a different table.</p><p>After setting the wp-config.php, the next step is to login to wp-admin of the three domains are, come as <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> , as aa.sulhansetiawn.com, and as bb.sulhansetiawan.com</p><p>To login as <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> , of course, do the settings for the domain <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> itself. As for the aa.sulhansetiawan.com and bb.sulhansetiawan.com, of course, made ​​arrangements for the two other domains. For example, if aa.sulhansetiawan.com will be used for the domain http://master-micro.com, the settings for aa.sulhansetiawan.com also be made ​​in such a way as if we are setting http://master-micro.com. And the most important for this problem is the <b>option-general</b> .</p><p>Go to the option-general. In the WordPress address (URL) typically are filled in correctly, however, because we will use this wordpress to http://master-micro.com, then on the Blog address (URL) we fill it with &#8220;http://master -micro.com &#8220;. In this way, any links that are created by Wordpres will use the address http://master-micro.com.</p><p>Do it the same way for bb.sulhansetiawan.com.</p><p>The next step is to fill the hosting for the two other domains that leads each to aa.sulhansetiawan.com and bb.sulhansetiawan.com. We only need three settings.</p><p>First, we set the <b>php.ini</b> to allow the reading of another url by adding the line</p><pre>allow_url_fopen = On</pre><p>Second, we make the file <b class='notranslate'>.htaccess</b> that looks like this:</p><p><span class="notranslate"><pre>&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/IfModule&gt;
</pre><p></span></p><p>Third, we make the file <b>index.php</b> which is like:</p><p><span class="notranslate"><pre>&lt;?php
$redirx="http://aa.sulhansetiawan.com".$_SERVER['REQUEST_URI'] ;
echo file_get_contents($redirx);
?&gt;
</pre><p></span></p><p>For other domains, just simply replace the http://aa.sulhansetiawan.com become http://bb.sulhansetiawan.com.</p><p>Well, with this index.php file in the DocumentRoot in the master-micro.com, then when there are people accessing the master-micro.com, the contents are shown taken from aa.sulhansetiawan.com. And visitors will not realize at all that they see the actual taken from somewhere else.</p><p>Good luck.</p> ]]></content:encoded> <wfw:commentRss>http://www.sulhansetiawan.com/redireksi-tanpa-mengubah-alamat-pada-address-bar/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Multilingual patch for &#8220;Google (XML) Sitemap Generator for WordPress&#8221;</title><link>http://www.sulhansetiawan.com/patch-multilingual-untuk-sitemap-generator</link> <comments>http://www.sulhansetiawan.com/patch-multilingual-untuk-sitemap-generator#comments</comments> <pubDate>Fri, 03 Apr 2009 14:36:41 +0000</pubDate> <dc:creator>Sexytaris</dc:creator> <category><![CDATA[All]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Sitemap]]></category> <category><![CDATA[Wordpress]]></category><guid isPermaLink="false">http://sulhansetiawan.com/?p=671</guid> <description><![CDATA[Google (XML) Sitemap Generator for WordPress (next is called as Sitemap Generator only) is one of &#8220;you must install&#8221; WordPress plugin. This plugin automatically make a sitemap that is said is also one element of Search Engine Optimization (SEO). Unfortunately, until this writing, Sitemap Generator v3.1.2 release December 26, 2008 does not yet support multilingual [...]]]></description> <content:encoded><![CDATA[<p>Google (XML) Sitemap Generator for WordPress (next is called as Sitemap Generator only) is one of &#8220;you must install&#8221; WordPress plugin. This plugin automatically make a sitemap that is said is also one element of Search Engine Optimization (SEO). Unfortunately, until this writing, Sitemap Generator v3.1.2 release December 26, 2008 does not yet support multilingual blog. Sitemap Generator can not make the contents of the blog URL instead of the default language.</p><p>SulhanSetiawan.com is written in two languages, Indonesia (default) and English (en code). Multilingual made with qTranslate with pre-path mode. The Sitemap can be seen <a title="sitemap SulhanSetiawan.com" href="http://sulhansetiawan.com/sitemap.xml">here</a>, like the screenshot below.</p><p style="text-align: center;"><a href="http://resource.sulhansetiawan.com/img/MultilingualSitemap.gif"><img class="aligncenter" title="Sitemap of SulhanSetiawan.com" src="http://resource.sulhansetiawan.com/img/MultilingualSitemap.gif" alt="Sitemap SulhanSetiawan.com" width="359" height="155" /></a></p><p style="text-align: center;">Sitemap of SulhanSetiawan.com</p><p>See that there are insertions <span class='notranslate'>/en/</span> on the URL to the content of the English-language blogs. Sitemap has not supported as exemplified by Sitemap Generator v3.1.2. Therefore, in the file <span class='notranslate'>sitemap-core.php</span> on GoogleSitemapGenerator class, replace the function addurl to be as follows:</p><pre class='notranslate'>function AddUrl($loc,$lastMod=0,$changeFreq="monthly",$priority=0.5){
    $page = new GoogleSitemapGeneratorPage($loc,$priority,
                 $changeFreq, $lastMod);
    global $q_config;
    foreach ($q_config['enabled_languages'] as $language) {
      $urleach=qtrans_convertURL($loc, $language,true);
      $page-&gt;SetUrl($urleach);
      $this-&gt;AddElement($page);
    }
}</pre><p>Just look at the results. Go to the wp-admin, go to the Sitemap Generator plugin, do the rebuild sitemap. Your new sitemap usually on http://yourblog/sitemap.xml.</p> ]]></content:encoded> <wfw:commentRss>http://www.sulhansetiawan.com/patch-multilingual-untuk-sitemap-generator/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
