Chris 2pha Brown

Chris Brown

Drupal, Javascript, Three.js, 3D

website blog

The below snippet will disable the delete button on the taxonomy term edit page if the term has any nodes assigned to it. It implements hook_form_FORM_ID_alter() function hook_form_taxonomy_form_term_alter(&$form, &$form_state) { $query = db_select('taxonomy_index', 't'); $query->condition('tid'.....

Today when developing a Drupal site with the Domain Access module I had an interesting problem. My site is set up with a custom theme and 2 domains.My custom theme is using Zurb Foundation and so I had to override the main menu theme functions to add the Zurb classes.This was easily done by.....

Here is a list of useful Three.js links, mainly for my own reference but other may find it useful too. Three.js homepage Three.js documentation Three.js Google+ Tutorials Intro to WegGL with Three.js Articles The Hobbit Experience - a Good article to read up on three.js performance.....

Having used the Omega 3 Drupal theme for a few years now I got quite use to writing javascript functions that would react to the 'reponsivelayout' event that was supplied by the theme. This event would fire after the responsive classes were applied to the body tag when the page loaded or when the.....

When checking the logs on the Drupal sites I run I often find myself copying the IP and searching it on google. Most of the time it is when I'm looking at a page not found or login attempt failure and I would like to know if these came from some sort of spam or a legitimate user. This process became.....

I have recently made all my assets on Turbosquid free. Some of them have been free all along but as the ones that were not free were not really selling anyway, they might as well be free. The freebies include: a wolfman model a lowpoly demon which is rigged, textured and animated an Australian.....

The Inline Entity Form module for Drupal is an awesome module. Most people probably have experienced using it with Drupal Commerce, but it can be used when ever an Entity Reference field is used. I have personally used it on many projects, most of which were not commerce related. Sometimes though.....

Today while browsing an old hard drive, I found some old Unreal Tournament 2003 models I made back when I was first learning 3DS Max, way back in 2003. I thought I would post them on my site in case anyone still had use for them. downloads Hotrod.rar HotRodCel.rar Robocop.rar.....

While trying to migrate data from a legacy CakePHP system to Drupal 7 recently I had a problem getting an Addressfield field to play nicely.What I had origianly was this (which did not work). $this->addFieldMapping('field_customer_address:thoroughfare', 'address');.....

Today while I was trying to move some music on to my phone I noticed there was not much free space left (8 Gig Nexus 4). I initially thought that it must be because I had too many photos or videos on the phone, so I went into the 'settings->storage' section of the phone to check things out. I was.....