comtersoft » Drupal
Call us today at US: 703 - 349 - 1168 | India: +91 471 - 301 0690

Archive for the ‘Drupal’ Category

Know the Heroes of our Neighborhood

Posted on August 4th, 2009 in Drupal | 2 Comments »

 

2009 Ramon Magsaysay Awardees Announced !!!!!!!!!!!

This award is popularly known as “Nobel prize ” of Asia .

The Ramon Magsaysay Award was created in 1957, the year the Philippines lost in a plane crash, a President who was well-loved for his simplicity and humility, his passion for justice, particularly for the poor, and his advancement of human dignity.

Awardees of 2009 are:

Krisana Kraisintu, from Thailand. She is being recognized forher placing pharmaceutical rigor at the service of patients, through her untiring and fearless dedication to producing much-needed generic drugs in Thailand and elsewhere in the developing world.

Deep Joshi, from India. He is being recognized for “his vision and leadership in bringing professionalism to the NGO movement in India, by effectively combining ‘head’ and ‘heart’ in the transformative development of rural communities.

Yu Xiaogang, from China. He is being recognized for his fusing the knowledge and tools of social science with a deep sense of social justice, in assisting dam-affected communities in China to shape the development projects that impact their natural environment and their lives.

Antonio Oposa, Jr., from the Philippines. He is being recognized for his pathbreaking and passionate crusade to engage Filipinos in acts of enlightened citizenship that maximize the power of law to protect and nurture the environment for themselves, their children, and generations still to come.

Ma Jun, from China. He is being recognized forhis harnessing the technology and power of information to address China’s water crisis, and mobilizing pragmatic, multisectoral, and collaborative efforts to ensure sustainable benefits for China’s environment and society.

Ka Hsaw Wa, from Burma. He is being recognized forhis dauntlessly pursuing non violent yet effective channels of redress, exposure, and education for the defense of human rights, the environment, and democracy in Burma.”

To know more about our neighborhood Heroes (Magsaysay awards) click this link:

http://www.rmaf.org.ph/index.php

Creating Custom Regions In Drupal 6 Themes

Posted on August 4th, 2009 in Drupal | 3 Comments »

 

Creating Custom Regions In Drupal   Themes

It’s basically a two-step process:

step 1 - define the custom region in your theme’s .info file

All Drupal 6 themes contain a .info file. This is a required element in Drupal 6 themes which allows Drupal to ’see’ your theme.The .info file for your Drupal 6 theme will be located within the root of the theme’s main folder.

Regions are defined in the form:

regions[regionname] = Region name

step 2 - insert some PHP in your theme’s page.tpl.php file wherever you would like the new region to appear

This step is still the same as for custom regions in Drupal 5 themes.Open your theme’s page.tpl.php file and determine where you want the new custom region to appear.

<?php print $regionname; ?>

save, and we’re done. Content can now successfully be added to and displayed in our new ‘regionname’ region.

Taxonomy-A way to organize content

Posted on August 4th, 2009 in Drupal | 1 Comment »

 

Taxonomy is a method of organizing content on a site. For example classifying music by genre could generate this list: classical, jazz, rock. A single area such as “classical” might be further classified as concertos, sonatas, symphonies, and so on

In Drupal 5 the naming of the Taxonomy module is inconsistent across the administrative interface. On the Administer >> Build >> Modules page, for example, the module is called Taxonomy. However vocabularies are administered through the Administer >> Content management >> Categories page.

In Drupal 6 the naming of the Taxonomy module has been made more consistent across the administrative interface. Settings for taxonomy.module can be found at Administer >> Content Management >> Taxonomy

You can enable the Taxonomy module on the modules page (administer >> site building >> modules).

These principles apply to defining a vocabulary with the Taxonomy module:

Each vocabulary consists of a set of terms.

  1. A site can have an unlimited number of vocabularies each containing an unlimited number of terms.
  2. Within a vocabulary terms can be ordered into hierarchies. In Drupal 6, all vocabularies are hierarchical (in other words, you can simply arrange items in a hierarchy). In Drupal 5 there is a setting for enabling hierarchical vocabularies.
  3. Vocabularies may be designated as Free tagging in which users creating new content don’t have to classify it with terms from a “controlled vocabulary,” previously defined. Instead users can freely define terms, or “tags.”
  4. Vocabularies can be set to allow terms to define related terms. This functions similar to “see also” in a dictionary.
  5. Vocabularies define whether users may attach only a single term to a node or whether users may attach multiple terms to a node.

More details http://drupal.org/handbook/modules/taxonomy

Differences between Joomla and Drupal

Posted on August 4th, 2009 in Drupal | 3 Comments »

 

Joomla and Drupal are two famous Content Management System.

Main differences are given below

1. Drupal use smarty template where as on the other hand Joomla does not

2. Joomla uses plugin and modules whereas Drupl has module only

3. In drupal php code can be written directly whereas in Joomla you need to install plugin for php support

4. Flexibility & Power: Drupal looks significantly more powerful — much more flexible

5. Joomla is far easier to get up and running.  Even with all the free videos, blogs, etc, Drupal is still a lot more challenging

6. Drupal’s taxonomy system is excellent.

7. Drupal’s tools are very, very good

8.Use Joomla if you want to get nice looking site up quickly and can deal with a slower system, rigid content categorization and limited design/configuration options.

9. Use Drupal if you want high performance, scalability, good content management and significant design flexibility. But, be prepared to spend a lot of time/money to get the site to look professional.

Ubercart - Mask credit card number on review page

Posted on August 2nd, 2009 in ubercart | No Comments »

 

We use Ubercart for most of our basic and complex e-commerce requirements.

Recently, our client required that the CC number should not be displayed in full on the final review order page.  After a lot of Googling this what we finally did:

  1. In the file:  sites/all/modules/ubercart/payment/uc_credit/uc_credit.module
  2. inside funtion uc_payment_method_credit() find this line of code at around line number 521 case ‘cart-review’
  3. In this case statement you will find a line like this:
    $review[] = array(’title’ => t(’Card Number’), ‘data’ => uc_credit_display_number($arg1->payment_details['cc_number']));
  4. uc_credit_display_number() function takes a second paramter called mask (by default it is FALSE). Pass TRUE as this second parameter. So, now your code should look like this:
    $review[] = array(’title’ => t(’Card Number’), ‘data’ => uc_credit_display_number($arg1->payment_details['cc_number'], TRUE));

Thats it!
On your review page the credit card number should be masked showing only the last for digits.

Ubercart credit Card Mask On Review Page

Ubercart credit Card Mask On Review Page

The secret of getting ahead is getting started. ComterSoft is the starting point