Chris 2pha Brown

Chris Brown

Drupal, Javascript, Three.js, 3D

website blog

I am currently working on a site with the Bootstrap theme which has a fullscreen views map (Goomap) with exposed filters. As the map is full screen I want to have the exposed filters inside a bootstrap modal. Luckily it is quite easy to theme the views exposed filters form. To do this you have to.....

Yes, I have done it, created yet another Drupal mapping module. I call him Goomap. The first thing you are probably going to ask is "why?". Well, here's why: ComplexityMost of the time when trying to use one of the other Drupal mapping modules I would find the process far too complex. Especially.....

Lately when using Three.js I have needed some very specific material qualities that the built in Three.js materials did not allow for so I have started experimenting with the Three.ShaderMaterial. This material allows you to write you own GLSL shaders for Three.js. My hope is that I can get a good.....

Using Three.js in a fiddle on the site jsfiddle.net is really quite easy but I keep coming across people having trouble with it. So here are a couple of tips when trying to set up a Three.js scene in a fiddleIncluding the Three.js sourceWhen creating a fiddle to use Three.js the most important part.....

Often when traveling I have to rely on my trust Nexus 4 android phone to connect to the interwebs, be it on the phone itself or when tethered to my laptop. As such, I often want to test both the wifi and cell data connection on my phone. Most of the time I need to run these test when looking at a.....

I have seen many questions on the web about how to change the path of the taxonomy term links, so it seems to be a common thing to want to do, I know I have wanted to do this on many projects. Recently on a project I wanted these links to point to a view with an exposed filter on taxonomy. As I had.....

When using the Bootstrap theme in Drupal 7, the image upload widget leaves a lot to be desired. I looks pretty crappy Below is how I overcame this.It should probably work with file fields too but instead of overriding THEME_image_widget, you would override THEME_file_widget, though I haven't tried.....

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.....