PHP

Use a PHP variable in your Javascript code

What if you’d like to use a PHP variable in your javascript code?

You can use this code in your javascript:



(more…)

XML-RPC2 and Drupal’s Services Module

Sometimes, there will be a need for you to integrate Drupal content to a non-Drupal content. For instance, the non-Drupal content is in PHP and you want to have the same menu from Drupal to appear on your non-Drupal site. You can do that using the Drupal Services module and using PEAR’s XML-RPC2 Library. (more…)

Theming Drupal’s Pager

There are times that you would like to edit how the pagination of Drupal is displayed. To give you more control aside from editing the stylesheet, let’s use the theme_pager() function in our template.php file. (more…)

Using an image link menu in Drupal 6 instead of text

Sometimes, we don’t want to limit our creativity by just using text in all of the menu items. Sometimes, we would want to use an image as a link in a menu.

For example, you want to have Home as an image link rather than a text link. Here’s a code you can use in your theme’s template.php file. (more…)

Fixing Fatal error: Call to a member function add_current_page() is osCommerce

Recently, I experienced getting this error on osCommerce:

Fatal error: Call to a member function add_current_page() on a non-object

This happened while I was uploading a file and then I tried accessing the site. So, what I did is to delete the domain cookies so that I won’t get the error.

Getting the current order ID in osCommerce

Sometimes, you need to get the current order ID of a transaction in progress. This is probably because you want to put a Google Analytics Tracking Code or you might want to save the transaction ID generated by your payment gateway into your database. (more…)

Problem with Force Cookies Set to True in osCommerce?

By default, an osCommerce installation would have a session setting “Force Cookies On = False”. The problem with such setting arises when your payment gateway sets the path where to return the result of transaction. This means that the session is lost. (more…)

Track Plurk unread responses to your mobile browser with Plurkified

I’ve coded a Plurk app that I called Plurkified that will let you track unread responses on your mobile browser. All you have to do is login with your Plurk login details and you’re good to go. Clicking on the responses link will bring you to the mobile version of the Plurk permalink that you’ve clicked. It will bring you to a new window. If you hit refresh new responses will be shown.

Categories

Interested for a quote?

Business Days: Monday to Friday

Time Zone: GMT +8

Response time: Within 24 hours except for inquiries sent on Fridays.

Contact Us

View our Sample Works