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

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

The need for Wireframes

Before one should start a detailed web design, a wireframe is needed. Wireframes define a website’s content, layout and functionality. Of course, before one could make a wireframe, a sitemap should have been defined first. (more…)

Century Tuna’s Facebook App

I just tried the Facebook app of Century Tuna, a popular canned tuna brand in the Philippines. I was actually impressed that they have invested in digital marketing by launching an application in Facebook. However, they could have considered by making the game more social. (more…)

Open Source e-Commerce Solutions

There are a lot of e-commerce solutions available online. Some of them will either require you to host your content on their server, while some would require you to pay the license fee. Of course, if you would like to bring down the cost there are free e-Commerce solutions that you can use. (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