Drupal

Drupal 6 + Ubercart 2.4 : Display all orders in Order History

Category:

Our online store doesn't have real time stock online due to integrated software with POS doesn't finish yet. So, we allow customer to place an order, then, contact them back if we really have those items in stock. We also keep those items waiting for them to pay. The problem is that, many times, customer that placed an order with us just don't want to pay at that time. They ignore it until we cancel that order. Then, they place another order a week later or so. That would be ok if it happens a couple times.

Install Apache Solr on Drupal + CentOS

Category:

1. Install Java SDK using below command :

yum install java-1.6*

2. Download Apache Solr module from Drupal server. (Do it as you normally do with Drupal)

3. Then, get "SolrPhpClient" and put it under Apache Solr module directory. The directory name must be "SolrPhpClient".

Replace Drupal Search Box with Google Adsense Custom Search Module in Drupal 6 + Zen Theme

Category:

Drupal search doesn't work well with International language and after a couple years of using it, I decided to try Google Adsense Custom Search Engine. Well, at first, I would like to try just Google Custom Search Engine (CSE) but after reading from a few webpages, they said that both of them are the same. Google CSE will generate regular advertising while Google Adsense CSE will generate advertising that will share some revenue with the website owner. So, why use Google CSE if Google Adsense CSE can do the same while you may get some revenue. (Even it's just a little)

[HOW-TO] Fix problem with Drupal + ImageCache when use Nginx as a reverse proxy

Category:

I have set Nginx as a reverse proxy according to this tutorial -> [HOW-TO] Use Nginx as a reverse proxy for DirectAdmin which work fine. Then, I started to use Nginx to serve static files for one vhost which is running Drupal. PHP scripts still send to Apache to process through PHP-FPM. Everything seems to work fine until I found that there is one problem. The problem of images which is process by ImageCache. When I upload image, it doesn't shows as it should be.

[HOW-TO] Prevent Hotlink in Drupal 6 + Nginx

Category:

I have searched around how to prevent hotlink in Drupal when use with Nginx. A lot of website saying the same what to do. However, I have tried all of them but not even one of them that work. That was strange. I started to try more until this... I found the only method that work for me. Oh... one more thing... don't put them under "location" rule or it won't work. That took me half an hour to figure it out :(

Nginx Vhost configuration file - working config to protect hotlink

[HOW-TO] Prevent Hotlink in Drupal 6 + Apache

Category:

As far as I can remember, to prevent hotlink in Drupal is not that easy. If you search website to look for prevent hotlink, you will find a lot of them to use with .htaccess file. But those are not for Drupal. You can't just use it in Drupal .htaccess file, that won't work. However, I have a set of code that work great. Actually, I have this code long time ago but I can't remember where I got it from. Thanks for the guy that provide it. Too bad that I didn't save link at that time.

So, now, here is what we have to do :

[HOW-TO] Config Nginx to work with Drupal 6

Yesterday, I've tried to setup Nginx as a Reverse Proxy for Apache - Worker MPM base webserver. I found that it doesn't help my server performance as I expected. So, I decided to try to set up Nginx to be a Webserver to see if Nginx can give me a better performance or not.

[HOW-TO] Drupal 6 : Add additional "Add Comment" link into the node

Category:

Just edit node.tpl.php and insert code below to anywhere you want :

<?php
print l(t('Add Comment'), 'comment/reply/' . $node->nid, array('fragment' => 'comment-form'));
?>

Make sure that , 'comment/reply/' part is relative to your path. If you access your website through www.myweb.com/web. Then, that part would be , 'web/comment/reply/'

Note : In case you are using Acquia Prosper theme, edit node-product.tpl.php instead.

[HOW-TO] Display pager in the top of the node in Drupal 6 with Zen Theme

Category:

I need to display pager for both top and bottom of the node for user to easily to move between pages. The one in the bottom is normally display but I want it to display in the top section also. To do that, Just put the following code :

<?php echo theme('pager', null, 1, 0, array(), 9); ?>

If you want to change the number of pages in the list, just change number 9 to anything you want.

When put that code in page.tpl.php, it will look like below :

.
.
.

Drupal 7 is official released !!

After nearly three years of intense community collaboration by nearly a thousand contributors, Drupal 7.0 is today officially released! Friendly and powerful: Drupal 7 We are proud to present to you our best work yet – Drupal 7, the friendly and powerful content management platform for building nearly any kind of website: from blogs and micro-sites to collaborative social communities. Easier to use

Pages

Subscribe to RSS - Drupal