Kent Parker's blog

Drupal Commerce

I have built my first site in Drupal Commerce for Drupal 7.x and am very impressed.  The module is built along similar architecture to Drupal 7 core and uses a number of contrib modules to provide functionality such as Rules instead of the previous Conditional Actions.

While the commerce system is more flexible than Ubercart is it also more complicated and there are places where it is difficult to understand what is happening.  This is true in the area of user permissions and some of these can be quite confusing.  A couple of examples:

Git problems

One of my Drupal contrib modules is kind of stuck at the moment, due to a git problem:

'master' does not appear to be a git repository

 

Better Fonts for Websites

Disatisfied with html webfonts?  Sick of verdana, arial and trebuchet MS?  The new wave in web design is to use javascript font processors to create high quality fonts of any typeface available.  Below are some links:

http://www.webtype.com/

http://typekit.com/

http://www.fontsquirrel.com/

And for an explanation go here: http://www.slideshare.net/matthewbuchanan/the-state-of-web-type

Setting up a Paypal Pro Sandbox

These instructions are valid as of 5 May 2010 and may vary over time.  To create a test paypal pro account do the following:

Configuring the Domain Module in Drupal 5

The following instructions apply to setting up the Domain Access Module to work with Organic Groups in Drupal 5.

The requirement was to have a main site where admin controls the content and a subsite where registered users are able to create groups and post content. Admin then has the power to publish any chosen content from the subsite to the main site. It is conceivable that this set up would work with multiple subsites and not just one.

The subsite(s) is/are a subdomain of the main site.

onchange and onclick triggers not calling external files in Internet Explorer

Onchange often does not work correctly in IE but onclick usually does so this problem did not appear to make sense.  Eventually after trial and error removal of all functions in the external file I found a function that was causing all functions in the file to fail.  The culprit was the following code:

  var data = (
    'order_id' : order_id,
    'key'  : key,
    'status' : status,
    'name' : name,
    'email' : email,
  );

Hebrew text not encoding correctly in popups for Internet Explorer

I used the jquery plugin Cluetip to create popups for a system whereby Hebrew text is displayed.  In Firefox it displayed correctly but in IE I just got ????

Cluetip uses a query string of the type a href="filename.php?c=$var1&u=$var2" where filename.php is the html for the popup window.

At first I thought the problem was with the filename.php and tried eveything under the sun but then found that urlencode is the answer, as follows:

href="filename.php?c=urlencode($var1)&u=urlencode($var2)"

Autism Healing Site on drupal.org

At the time of writing the autism healing site is featured on the front page of drupal.org after Dan Kohn, the project manager and main site engineer wrote up such a good showcase item.

New Theme

Welcome to the new website theme.  The special feature of the new look is the portfolio/projects page which consists of a javascript selection system, allowing you to browse through all the projects without a page fresh or scroll required.  Overall the new theme is lighter and cleaner than the old one.  Enjoy.

 

Syndicate content