Code Snippet

jQuery Quick News Fader

 
jQuery content fade (rotate/slide) plugin is a multipurpose jQuery tool for displaying content. This is a great tool to present news, events, announces, press releases, and other content to your website page.

A sample Splash Module for your Drupal website

 

Below is a simple guide to develop a Drupal module for presenting a splash page for your website. For further information on how to install the modules and basic guides, follow the below link

splash_screen.info file

Using node_save in drupal 7 with CCK fields

 

If you are a Drupal developer, you probably know how to save a node using node_save() function. I am coming across saving node with CCK fields so often. I had no any issue while on the D6. First time on the Drupal 7, it hurt me lot leaving CCK field blank when saving where I used the same technique as D6. It might help some one of you…

Drupal 6 way of saving CCK

ini_set() | Memory Limit | Increase memory limit for PHP applications

 

Basically what ini_set() does is, sets the value of the given configuration option. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending. It takes 2 parameters, 1 is variable name, and other is value. I have used the ini_set() function mostly to set the memory limit. This function has helped me lot when I have been working with Drupal site migration to production server.

Do it simpler : Image thumbnail and resize in PHP

 

One of the common complex task among webdevelopers is image resizing. It is a big headach when using multiple size images in multiple pages of a single version of image. For long I was using a an script that would create one thumnail version of the image when the image is uploaded. It was not a suitable solution. Many time we will need different size of thumbnails to be used in different location and pages.

I came across PHPThumb. It was a very much better one for me where it can deliver following types of resizing mechanism.

Escaping '%' in MySQL LIKE statement when sprintf

 

I wanted to run a SQL query against MySQL database server which contains search string and need to be formated using sprintf. The problem arise when format. It is because of the sign “%” am using to advance my search term. The query was…

Translate Apache URL-Rewrite into Lighttpd for VBulletin tfSEO

 

Sorry! There was a server failiure and we lost some contents. Please be patient untill we restore the backup.

If you have any comments, you can use the form below or contact me throught the contact form here

Subscribe to RSS - Code Snippet