Please backup your files before doing any modifications about anything that I wrote in my articles! I will not guarantee against loss or damage to the contents of your files that might occur due to these modifications. Thank you.

How to Make SEO SearchTerms Tagging 2 Plugin Supports Multi Language

August 29th, 2010 Masino Sinaga No comments

I have been playing around and using SEO SearchTerms Tagging 2 plugin for about the last 2 months, and I think this plugin is one of the best plugins in WordPress, especially if you want to increase your website traffic based on the visitors that came from the search engines. Unfortunately, this plugin has not supported for multi language, yet, whereas I have several websites that support for multi language, and I want to translate the widget title that being displayed on the front side of the websites. So I decided to modify this plugin in order to support for multi language, by changing all texts or strings that has not used gettext function, including in the admin panel section. I also created a translation into Indonesian in .po and .mo file. You can translate into another language based on the .po file. If your website in Indonesian language, then you can simply using this existing translation that I created. Just for your information, the modification I made was being applied into the 1.35 version (the last version when I wrote this article). Actually, I have contacted the author of this plugin, but there is no response until now. I hope he has not updated or modified the 1.35 version, so he can continue the development into the next release based on this modification I created. Hopefully this will be helpful for all of you. Read more…

  • Share/Bookmark
Categories: WordPress Tags:

How to Calculate The Sum and Duration of Two Different Time Using PHP

August 23rd, 2010 Masino Sinaga No comments

There was a question that asked to me about how to sum and find out the duration of the two different time using PHP code regarding this my article. So, this following code will answer the question. You will be able to know how to calculate the sum and duration between two different time. Read more…

  • Share/Bookmark

How to Make Header Menu of osTicket Become Left-Align

August 16th, 2010 Masino Sinaga No comments

This following modification will make the header links menu of your osTicket become left-align. As we know, the menu in the menu header of osTicket which has three links with the right-align style. They are: “”Home, New Ticket, Ticket Status”. Now you can make those three links menu become left-align. I have successfully changed it by modifying two files. They are: /styles/main.css and /include/client/header.inc.php. Read more…

  • Share/Bookmark

How to Remove a Trailing Slash from Home’s URL in Atahualpa 3.5.3 Theme of WordPress

August 10th, 2010 Masino Sinaga No comments

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’s URL that generated by WPML, especially for Home’s URL belongs to the languages other than the default one and you are using the “directory per language” setting in WPML. This can be happened since Atahualpa add a trailing slash in every Home’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’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. Read more…

  • Share/Bookmark

How to Replace the Certain Character in a MySQL Table

August 9th, 2010 Masino Sinaga No comments

Have you ever encountered the strange behavior while you were deleting the certain records from a table in MySQL database using an application you build, which those records cannot be deleted? Well, I have! Today, I encountered this problem. This is so weird, since I have never faced this situation before. Well, after doing some investigations, this problem obviously caused by one of the primary key fields contains the comma (,) character. Why I am sure about this, because when I replace the comma character for one record, then I re-try to delete that record from that application, voila…. that record gets successfully deleted. But the main problem is not stop until that. The next question is: How then can I replace all comma characters from the rest of the other records immediately? Just for your information, there are thousand records that contain the comma character. It is impossible to update all the records one by one, even as a matter of fact, you can create a little program/tool in order to implement it using loop method throught the recordset? Well, here is the quick-solution to overcome it. Read more…

  • Share/Bookmark
Categories: MySQL Tags: , , , , , , ,

How to Set Autofocus on Username TextBox in Login Page that Generated by PHPMaker

July 29th, 2010 Masino Sinaga No comments

This following modification is a trick how you can set the user’s cursor automatically focus on Username textbox in Login page that generated by PHPMaker. As we know, by default, each time PHPMaker generate the Login page, user have to click on the Username textbox on that login form in order to start entering the login information. In order to make it automatically focus after PHPMaker successfully generated your login script page, then we have to modify the login.php file that located inside the template belongs to PHPMaker. This modification applied to PHPMaker version 7, as you can see from this following location of the template files. Read more…

  • Share/Bookmark

How to Adjust Home URL Properly in Breadcrumb NavXT Plugin If You Are Running Multilingual Site

July 28th, 2010 Masino Sinaga No comments

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’s home, and not to the home of the selected language. For example, you have a multilingual site which English as default language and Indonesian as the second language. So, the default of URL’s home in English is http://www.example.com, and unfortunately the URL’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 breadcrumb_navxt_class.php file belongs to Breadcrumb NavXT plugin. Read more…

  • Share/Bookmark

How to Overcome The Missing Posts/Pages After Upgrading to WPML plugin version 1.8.0 of WordPress

July 25th, 2010 Masino Sinaga 2 comments

For those of you who encountered the missing posts/pages after upgrading your WPML plugin to 1.8.0 version, then this following solutin might be help you. Since WPML changed the element_type value of post and page in the icl_translations table, ie each into post_post and post_page, then you have to adjust this value at the element_type field. After doing comparison to several version of WMPL, I found out that this changes happened since WPML version above 1.7.7. In version 1.7.7, this field was still using post and page instead of post_post and post_page. Actually, when you upgrade your WPML to 1.8.0, this value will be automatically adjusted to the new value. But, in some cases, there are some websites that do not automatically turn to the new value, especially if they deactivate and activate the plugin manually (because they upgrade by replacing the files manually, and not using the auto-update feature). Read more…

  • Share/Bookmark

How to Display Pods Data Properly Using Atahualpa Theme of WordPress

July 23rd, 2010 Masino Sinaga 1 comment

If you use Pods CMS plugin with Atahualpa theme for your WordPress-based site, then this following modification is for you, indeed. It will show you how to display the Pods data properly by using Atahualpa theme in WordPress site. Atahualpa is one of the best WordPress theme that I have been using for this last one year. It is a very powerful theme. However, for some beginners, this theme looks too complicated, especially if you want to hard-code the source in order to put your own content into its sidebar. For example, in this case that we are talking about, when you add your own Pods data into the middle-area of your site, the sidebars are messed-up. Then, after for several hours exploring this theme, I found the trick how you can add your Pods data easily by modifying one of the theme’s files, afterwards adding your own template files and put them inside the Atahualpa theme directory. Yay! That’s so simple, huh? Read more…

  • Share/Bookmark

How to Add Your Own Translation Link to Language Switcher by Using WPML Plugin of WordPress

July 14th, 2010 Masino Sinaga No comments

WPML is a plugin which has the ability to turn your WordPress site into complete multilingual content management systems. Unfortunately, until now I meant, at least until the time before I found this following solution, WPML only supports for the translation of the WordPress original content, such as: posts, pages, categories, tags, and menus (since WordPress version 3.0). I can understand about this, since there are so many possibilities about the content you may have in Pods CMS! That is why WPML has not supported for Pods CMS plugin, yet, whereas this feature I have been looking for that could be implemented in WPML too. I have been waiting for such long time, and… today… God bless the day I found this following solution, indeed! Although the following modification I made sounds like a little tricky or hackish into the WPML’s code, but it works very fine at mine. So, if you are using Pods CMS and WPML for your WordPress site, and you want to add your own translation link that came from your own content in Pods CMS into the language switcher that belongs to WPML, then you came to the right place, because this modification is only for you! Read more…

  • Share/Bookmark

How to Replicate the Footer Language Switcher Menu In Order to Display It Also at The Very Top of Site by Using WPML Plugin of WordPress

July 11th, 2010 Masino Sinaga No comments

I saw one of the interesting discussion topic on the WPML Forum about the same thing with the title of this article. By accidentally, I have just modified the custom footer language switcher for one of my websites that using multilingual feature, and also wrote the similar article about it a few days ago on this my blog. Thanks for the topic on the forum, so I can do some exploration in order to implement the solution for the question that has been asked on the forum. So here is the solution I made for it. Read more…

  • Share/Bookmark

How to Make Link Tag in WordPress Post/Page Editor Become Open In New Tab/Window by Default

July 10th, 2010 Masino Sinaga No comments

This following modification will change the javascript files that belong to WordPress core, in order to make the Link tag in WordPress post/page editor become open in new tab/window by default. As we know, by default in WordPress, this tag will open in the same window since there is no target=”_blank” property in the a href, especially if you insert this tag by typing your post/page from HTML tab (not from Visual tab) on your WordPress’ post/page editor. As this will change the core file of your WordPress, then you have to change the related files if you upgrade your WordPress core installation. So, please be kind, everyone! Read more…

  • Share/Bookmark

How to Avoid Error Message When Your Visitor Trying to Display Your Atahualpa 3.5.1 Theme Directory in WordPress

July 7th, 2010 Masino Sinaga No comments

Today I found something that annoying me when I tried to test the security hole by displaying the theme directory for one of my website that using Atahualpa theme version 3.5.1. Some error messages appeared when I tried to access such address: h++p://www.mydomain.com/wp-content/themes/atahualpa351/ . This error message caused by the using of unknown TEMPLATEPATH constant if this file accessed directly without from the index of the website itself. So, here is the modification I created to display “Access denied” message instead of error message that displaying the path of the theme directory in my web server. Read more…

  • Share/Bookmark

How to Add Custom Language Switcher Using WPML Plugin of WordPress

June 25th, 2010 Masino Sinaga 1 comment

I have just modified the custom language switcher for one of my websites that uses multi language feature by using WPML plugin and Atahualpa theme. I saw the related code to implement it via this following article: Custom Language Switcher. Unfortunately, since WPML has upgraded its version for several times, the “languages_list_footer()” function in that article should be changed in order to compatible with the last version of WPML, including the “lang_native_hidden” and “lang_translated_hidden” parameter that will be used in the “icl_disp_language” function. So here is the modification code that I have created in order to display it in the footer of my theme. Read more…

  • Share/Bookmark

How to Make Currency Selection Working Properly in BankWire Module of PrestaShop

June 5th, 2010 Masino Sinaga No comments

Today I realized that when I switched the currency from the current one to another in BankWire module of PrestaShop, then the value of the money in the new currency did not converted properly. For instant, the current one is $ 20, so I switch it to IDR, then the money become Rp 20 instead of Rp 183,061. So here is a small modification I made in order to fix this problem. Please note that this modification applied only for the bankwire module that implement the following old code. Read more…

  • Share/Bookmark