drupal 7

Drupal Load Balancer Comment Spam Problem

webadmin's picture
Drupal
Load Balancer

This week, Our office for the fist time going to migration Our Old infrastructure Web server topology, upgraded to Load Balancing infrastructure model.

One week we have upgrade our system !... We have 7 Machine HP G7,.. IDC IIX. web server is behind a load balancer, and interacts with the load balancer through private internal IPs VPN NAS and Database Server.
We only have 1 Administrator and 1 Webmaster ( as me ) and 7 Machine we have to migrate and configure.. this is hard job.. !! i sacrifice my time to meet with my family .. my wife and my son.. i am sorry for Rakes... I am sorry for Mami.. :(( .. i will pay back my time for you... i love you.!

Drupal 7 override feed icon image

webadmin's picture
Coding

When we make new themes there is Feed Icon we want to customize, this icon image we want to customize is use our custom image from our custom themes,..
First you need is image rss.png custom file what do you want, and copy that file to /yourcustomtheme/images/rss.png as an example.

PHP Cookies Code Snippet

webadmin's picture
Coding

If we need to keep track of something variables and it needs to work with the user not logged in ( anonymouse ), what you want to do is use a cookie to keep track on it.

Drupal 7 Remove " read more " Link in teaser

webadmin's picture
Coding

I don't need read more link on teaser, then you can place this code below in node.tpl.php. Example above if we use code snippet in theme batrik drupal 7 core. If you are using another themes please refer to your node.tpl.php and locate code render($content['links'] .

Drupal 7 add CSS files

webadmin's picture
Drupal

Ada 2 cara untuk menambahkan CSS ( Style ), di dalam theme, modules info atau menambahkan code drupal_add_css() dalam template.php atau modul custom yang Anda buat.

Menggunakan yourtheme.info ( setiap theme akan sama namanya misal menggunakan theme yang Anda buat )

Mass Change Prefix Tables MySQL with single Script PHP

webadmin's picture
Coding

When we worked on maintenance mode in Database MySQL on Drupal sites, sometime we need to change Our Prefix Tables at new database server, this is a simple trick if you don't want to change one by one table name :)

This is simple script PHP to use it.

Drupal Checkbox Condition and Form State Example

webadmin's picture
Coding

Dicari cari susah nemunya, akhirnya nemuin ini FORM api drupal untuk fungsi bagaimana state form berubah dinamis, misal kasusnya kita ingin mengaktifkan CHECKBOX, tetapi TEXTAREA harus di isi dulu..

Drupal Devel Module Code Checking out the form

webadmin's picture
Drupal

Checking out the form

To troubleshoot any problems we may encounter while editing the form, we need to inspect it. The devel module provides a kit of 5 functions to inspect the content of variables: