Web Development

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…)

Displaying the total number of times the node has been accessed

Seriously, you do not need to manually query SQL statements just to get how many times the node has been accessed in Drupal. First, make sure that the Statistics module is enabled. Then, all you need to do is write this piece of code:


$node_stats = array();
$node_stats = statistics_get($node->nid);
print $node_stats['totalcount'];
?>

(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…)

Display your Drupal Search Form

The first step you would want to consider in displaying your Drupal Search Form is to use install the search module. A fresh installation of Drupal does not include yet the search form in the installed and enable modules. Then, apply the desired settings that you want for your search form and add necessary permissions. (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…)

FBJS Type-ahead AJAX

As of this date, the complete example for type-ahead AJAX is in the Facebook Developers forum. You might want to check that out instead of the example posted in the Facebook Developers Wiki. It seems that the code there isn’t complete and would not give FBJS/AJAX noobs a full understanding on how to do it.

jQuery Plugin: Flashembed script error in IE6 in ZenPhoto FlowPlayer plugin

Just recently, I noticed a JavaScript error in the gallery that I was developing that uses ZenPhoto as the backend and uses FlowPlayer as a plugin so that it will handle the flv files. The reason for the error is because the javascript file included in the default download of ZenPhoto is not the recent version of the plugin. I checked the releases of the jQuery Flash Embed plugin, and found out that in the recent version (0.3.1) that it fixes the following bugs:

  • Fixed a bug on Safari when no flashvars was given.
  • Fixed a bug on IE where an id is required for object tag in order to access it’s public API.
  • Lazy Loading was totally removed from this release - it is no longer marked as deprecated.

What I did is that I replaced the contents of the javascript file with this code. I then tested the site in IE6 and it works perfectly. :)

Website Design for Small Businesses

Website design for small businesses would be heavy on the pocket if the CMS (content management system) is developed from scratch, if one uses Windows hosting which is more expensive than Linux/Unix hosting servers. Here are tips for would-be website design and development clients who just needs a company website. (more…)

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