Drupal

Understanding advance page template preprocessing

The main role of the page preprocessor is to set up custom variables to be rendered through the template (.tpl.php) files. Mostly the page preprocessing is used to handle theme template suggestions. This means that based on some custom logic we can suggest any page--*.tpl.php file instead of generic page.tpl.php but this is not the limit, most advance developers use these preprocessors to do heavy calculation of their logic and then pass the results to the page.tpl.php in form of some custom variable, this avenue has endless possiblities.

How to get In-Field Labels in Drupal 7

Compact forms are always good to have and in-field labels is one of the feature that makes the form more compact and sleak. Conventionally the labels are set as "above" or "in-line" with the fields where as in-field labels are set with in the Label's respective fields. Technically form item or element fields are overlaid with their repective labels.

Migration Solution to Taxonomy Vocabulary Relate Module in Drupal 7

Taxonomy Vocabulary Relate was very helpful module in Drupal 6.x which allows us to select related terms in taxonomy from other vocaulary. Default taxonomy module in Drupal 6.x only allow us to select related terms from the same vocabulary. This post is going to help lots of developers who are planning to migrate their Drupal 6 website to Drupal 7 or who have migrated their projects and are awaiting solution to this issue.

General

Setting up "bare" "shared" GIT repository

This is all about setting up GIT repository to behave in such a way that all developers can push their changes and can pull others changes from central shared repository, ultimately they are going to clone the repository into their local location and each user's "working copy" will itself be a fully-fledged Git repository but to make the code changes centralized they have to push and pull to the central repository that can be on a remote server. e.g. http://source.example.com , we will call this server as source.

With lots of Cheers and Tears - Happy New Year

Last year was AWESOME, I cannot let it go with out mentioning that I was blessed with lots of Happiness and Joy. I am really very thankful to my Lord Allah Subhanawtallah that HE blessed me with a Son, we name him Saad. Then I came back to my Home Country Pakistan after spending three years in United States, I donot have words to mention about my feelings the first time I stepped out of the aircraft when I landed at Allama Iqbal International Airport, Lahore. I came to Saudi Arabia to perform Umrah, and paid visit to Haram-Makkah (House of Allah) twice. The first sight was magnificant, it was full of attraction, and your heart feels some kind of energy that tells you that this is the House of Allah who is the creator of all creations.

Say No to Blasphemy on Facebook and Youtube

May 20, 2010 was the big day for the people who support Blasphemy and who condemn all acts of Blasphemy. Following my religious values I was and will strongly condemn all kind of Blasphemy acts toward our Prophet Muhammad صلى الله عليه وسلم‎ (P.B.U.H) , whether its on Youtube, Facebook or any media platform.

I have not seen any religion in the world that supports these kind of acts, favoring these kind of acts can definitely create hatered among different groups.

Humor

Choice of a Hell :)

A man dies and goes to hell. There he finds that there is a different hell for each country. He decides he'll pick the least painful to spend his eternity. He goes to Germany Hell and asks, "What do they do here?"

He is told "first they put you in an electric chair for an hour. Then they lay you on a bed of nails for another hour. Then the German devil comes in and whips you for the rest of the day".

Pakistan

Revamping the Electoral System of Pakistan... Urgently Needed

After analyzing several political talk-shows about electoral system and the ground realities of the ruling parties and opposition parties that how they got elected, I found a big room for improvement and  came up with a suggestion for Election Commission and Supreme Court of Pakistan to think about improving and changing this process once and for all. This is a need of time, we want to revamp this system on emergency basis, most probably for next general election. We as a Pakistani nation cannot afford another election where fate of 180 Million Pakistanis are written by few Thugs and Illiterates who do not even represent 20% of Pakistani population.

Government's blunder on Higher Education Commission Issue

Devolving Higher Education Commission (HEC) and transferring it to provincial level means All four tires of car going in different directions, was this done on purpose? can we call it an educational conspiracy linked to some international conspiracy for destabilizing Pakistan? or some hidden agenda?. Last night I heard former Chairman of HEC Dr. Atta ur Rehman on one of Pakistani Satellite channel  saying "If you want to break a country break its education in to pieces" and I agree with his words.

With lots of Cheers and Tears - Happy New Year

Last year was AWESOME, I cannot let it go with out mentioning that I was blessed with lots of Happiness and Joy. I am really very thankful to my Lord Allah Subhanawtallah that HE blessed me with a Son, we name him Saad. Then I came back to my Home Country Pakistan after spending three years in United States, I donot have words to mention about my feelings the first time I stepped out of the aircraft when I landed at Allama Iqbal International Airport, Lahore. I came to Saudi Arabia to perform Umrah, and paid visit to Haram-Makkah (House of Allah) twice. The first sight was magnificant, it was full of attraction, and your heart feels some kind of energy that tells you that this is the House of Allah who is the creator of all creations.

World

Enterprise Portal in Saudi Arabia's Leading IT Organization

Last week we successfully implemented Drupal as an Enterprise Portal for one of the largest IT Organization (Saudi Business Machine - SBM) in Saudi Arabia. Portal is very much optimised to support  50,000+ user base, portal has been developed over the course of six months with handful of resources.

Justice done... Osama died... Fake or Real

I dont know what to say after viewing this researched image done by some one in Express TV Channel, why its hard to find more pictures of Osama bin Laden. Why this image looks fake to me.. just prove me

Intranet of 90K+ developed on Drupal for a Fortune 20 company

I am glad to be part of a team who deployed Drupal as an Intranet platform for a Fortune 20 telecom company.  This is the first time that Drupal was used on an open surce LAMP stack to create a corporate Intranet for over 90,000 employees. The project was a complete rewrite of the existing intranet that had been in operation for over half a decade. It was accomplished in less than 12 months from conception to full deployment, ramping up from just a one member team to a 17 person group with only 5 full time developers