community technology web drupal

Drupal Batch APi

Drupal batch api is one of the modern and web 2.0 api which gets over the limitation of max_execution time of php script. If you are dealing with a large amount of data or function which does a multiple update. Then batch api is the way to go.

Wordpress theme to Drupal theme

Theme is the in thing today. The key to a successful developer is that you are good at themeing. Do take me wrong I am talking about only themeing not designing. The holy grail is PSD to xHTML conversion.

I am trying my hands at converting some of the great wordpress themes to drupal.

A good starting point
http://groups.drupal.org/node/7144

I am working with XHTML 1.0 Transitional standards. This is to ensure that I will have little headache in the beginning.

Upgrade php on Centos from php 5.1.4 to 5.2.6

yum is easy to use tool for upgrade of the various components on linux machine.

Cetos comes with php 5.1.4 and php 5.2.6 is must for today's application as there has been a lot of change in php 5.2.6
You can install php 5.2.6 from the Centos Test repository. I prefer test repository.

#wget http://dev.centos.org/centos/5/CentOS-Testing.repo
# yum --disablerepo=\* --enablerepo=c5-testing list \*php\*

You also need to install php-mbstring on centos to work properly.


# yum --disablerepo=\* --enablerepo=c5-testing install php-mbstring

Modifying drupal form using hook_form_alter

Drupal form api FAPI references:
These are good articles which i read over net and want to store at one place.

http://www.lullabot.com/articles/modifying-forms-5-and-6

http://adaptivethemes.com/using-hook-theme-to-modify-drupal-forms

Accessing $_GET variables in drupal: ?op=action

I was trying to access $_GET variables in drupal. After a long search when i did not find any thing. I decide to give a try by writing a module which give the $_GET variables.

To my surprise drupal support the $_GET variables.


switch ($_GET['op']){
case 'action':
{your code here}
break;
case 'message':
{your code here}
break;
}

The URI parser is excellent it cleanly removes the path url which is available in arg(n) and the variables after ?op is cleanly stored in the $_GET['op']

Toksta drupal module

I have been working on a toksta drupal module. The version was integrates the toksta chat system with drupal where the users with toksta chat permission can use the chat.

Now, I have been working on the version 2.0 of the module where a deeper access to the community data is provided to toksta chat system.

Black is beautiful

After great search for a theme I for the time being settled for this black theme as it is easy on eyes while working at night.
It got colors too :)