<?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; Web</title> <atom:link href="http://www.sulhansetiawan.com/category/web/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> <item><title>IndexMaker &#8211; Makes index.html for html files collection downloaded from internet</title><link>http://www.sulhansetiawan.com/indexmaker-membuat-indexhtml-untuk-koleksi-file-html-downloadan-dari-internet</link> <comments>http://www.sulhansetiawan.com/indexmaker-membuat-indexhtml-untuk-koleksi-file-html-downloadan-dari-internet#comments</comments> <pubDate>Mon, 22 Dec 2008 05:29:59 +0000</pubDate> <dc:creator>Sulhan</dc:creator> <category><![CDATA[File Management]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[All]]></category> <category><![CDATA[FREE! Software]]></category><guid isPermaLink="false">http://sulhansetiawan.com/?p=417</guid> <description><![CDATA[I like to collect the html files that contain various kinds of information that I usually get from the internet. There is a set of files that I received in the form of packets, for example, is a variety of files for the tutorial. For files that are like this I usually get index.html file [...]]]></description> <content:encoded><![CDATA[<p>I like to collect the html files that contain various kinds of information that I usually get from the internet.</p><p>There is a set of files that I received in the form of packets, for example, is a variety of files for the tutorial. For files that are like this I usually get index.html file either to access all other files with ease.</p><p>Another set of existing html files which I get taken from a particular site using a software like teleport, so all links contained on the site will be automatically retrieved and of course we also automatically get its index files.</p><p>The third type is a collection of files obtained from various sources and then I put in a specific directory that I name in accordance with the category of the contents of those files. However, because the files I get from collecting from various sources, then of course the directory does not have an index.html file that serves to facilitate the exploration of its contents. Consequently, to access the files in that directory I have to go back and forth from windows explorer to do a double click from there, then go to the browser like internet explorer,  opera, etc.</p><p>Browsing files as above is not an enjoyable way. First, we must go back and forth to activate windows explorer, then returned to the browser, and after reading, it&#8217;s back to the windows explorer. Second, the number of the opened browser window continue to grow, or if we are using a browser that supports multiple tabs, then the number of opened tabs also increasing. This led us to have to add extra work for closing the window or tab. Third, we become less able to follow which file has been opened and which file has not. Fourth, this is a side effect of closing many opened windows which make us feel the desktop is cramped, or closing too many tabs on the browser so we got trouble to read the title of its tab. Well after we close, sometimes we have to open it again to read the file which has been closed. As a result we have to go back to windows explorer to re-double click the file that we want it open again. Huh, sucks <img src='http://www.sulhansetiawan.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /></p><p>There are better solutions, ie creating your own index.html file that is useful for easy browsing. Unfortunately, if the collection of files in that directory quite a lot, then the job of making this index.html is very boring. Well, we already have to get bored before we had time to browse. If the category in the directory is exciting stories category, may be a tedious effort to make index.html will be immediately relieved after we read the story. However, if the category in the directory is a science category, which often makes the head dizzy, then we really get the ordeal. Bored, then dizziness, Huuuh <img src='http://www.sulhansetiawan.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /></p><p>Well, rather than to have to get such torture, then finally I made a program to create the index.html file automatically. I give the name of the program <strong><a title="IndexMaker.zip (21,1KB)" href="http://resource.sulhansetiawan.com/software/IndexMaker.zip">IndexMaker.exe</a></strong>.</p><p>The use of IndexMaker.exe is very easy. We simply put the program in the directory where the collection of files txt, html, htm, or mht are gathered. After that, double click the IndexMaker.exe to run it. Well, IndexMaker.exe will add an index.html file that is an html file that serves to facilitate browsing the directory, the toc.html file which is a list of the contents of the html, htm, and mht files in the directory, and the last is cover.html file that will appear when you first open the file index.html. Well the last file should be modified to enhance the appearance.</p><p>You can also register IndexMaker into the registry so that we can easily create index.html for all folders with just a right click on the folder you want to create its index, then select <strong>Make Index.html</strong>. The trick is to run IndexMaker by adding the -r switch. As for IndexMaker remove from the registry, the -u switch is added. Or you can also run Reg.bat or Unreg.bat file included in the bundle.</p><p>Every time IndexMaker run, first IndexMaker will detect whether the directory has been has an index.html file or not. If so, then IndexMaker will ask whether to replace the file or not. If the choice is Y, then the index.html file will be replaced with new ones and ask for some required parameters. These parameters are then stored on IndexMaker.con file placed in the folder. With the IndexMaker.con file, then whenever there are changes to the file in the folder, you simply right-click on the folder and choose <strong>Make Index.html</strong> and the toc.html file will soon be updated without making changes to the file index.html and cover.html. Thus if you have made modifications to cover.html to enhance the appearance, then the file will not be changed. The only file updated is toc.html.</p><p>IndexMaker.con file itself is a text file that contains five lines that define the parameters of index-making. The first line of this file will determine the title to be displayed on the title bar of the browser. The second line is the content to be displayed on cover.html. The third line determines whether it will be cutting down on the list of file names in toc.html or not. Options for this line is Y or N. If this line contains Y, then the file name exceeds 23 characters in length will be taken only the first 20 characters plus three dots (&#8230;). The fourth line determines what files will be registered into toc.html. Writing extensions separated by a semicolon (;) and there should be no spaces. The fifth line, determine whether the registration to toc.html file also done to sub directories contained in the folder recursively or just record the files in that directory. Options for this line also Y or N. The last line, ie sixth line, specify the type of naming the address in the address bar. If we give the value of Y, then the address in the address bar will be styled like using cgi, which uses a question mark (?). Example is: <span class='notranslate'>&#8230;./index.html?1</span>. Whereas if the value is N, then the address in the address bar will always remain as index.html.</p><p>It should be noted, that the choice of using the addressing using the question mark (?) Will not always run smoothly if the browser used is Internet Explorer. This may be more pronounced if the name of the files in those directories use a lot of strange characters, or the characters that is not normally used for the file name like a plus sign (+).</p><p>And regardless of whether we use a fixed address or address by a question mark, so if there is a file name in the directory that begins with a pound sign (#), then certainly that the link made in the toc.html will always fail. This is caused by the rule that the href that uses sign (#) will refer to the anchor on the same file. Thus, the browser will not switch to another file but will remain on the active file. Therefore, you should never save the html file name with the prefix (#).</p><p>Structures formed by IndexMaker.exe is splitting page into two parts uses frames, each of which is 20% for the left part, which will be filled with toc.html, and 80% for the right part that the first time will be filled with cover.html. If we click on the list of file names contained in the left frame, then the file will replace the contents of cover.html. Well, in this way, the browsing process becomes much more comfortable.</p><p>And now I do not have to feel bored before get dizzy to read the pages that contain programming instructions. At least though it should got dizzy, but I am free from boredom <img src='http://www.sulhansetiawan.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p><p>Then I thought that maybe more people are experiencing similar problems with me. So, rather than enjoy the program myself, would be much better if it is used also by others who need it.</p><p>And if you also the kind of people who have or are experiencing the same problem with me, then you are very lucky because you do not need to create the index.html file manually. You simply download the <strong><a name="download" title="IndexMaker.zip (21,1KB)" href="http://resource.sulhansetiawan.com/software/IndexMaker.zip">IndexMaker.exe</a></strong> which relatively very small size. You do not need to think about how long the download will be completed since it would have very soon.</p><p>Ok, have fun.</p> ]]></content:encoded> <wfw:commentRss>http://www.sulhansetiawan.com/indexmaker-membuat-indexhtml-untuk-koleksi-file-html-downloadan-dari-internet/feed</wfw:commentRss> <slash:comments>9</slash:comments> </item> </channel> </rss>
