Chris 2pha Brown. Drupal developer Brisbane Australia

Chris Brown

Drupal, Javascript, Three.js, 3D

website blog
image for Goomap - Not another Drupal mapping module

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 the last time I used the Openlayers module. I wont go into detail about this but if you have used it.....

image for Experimenting with Three.js shaders and the ShaderMaterial

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 understanding of GLSL and implement some of my own shaders and materials in Three.js even with my.....

image for Using Three.js with jsfiddle

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 is including the Three.js library itself. You can select to include Three.js from the "Framework and.....

image for Android apps to test your mobile cell and wifi data

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 new hotel or condo to rent, but also when the connection seems a bit dodgy in an area that was good.....

image for Drupal 7 - Changing taxonomy term link paths

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 this view to list and filter nodes, there was no real reason for the standard taxonomy term pages.....

image for Drupal 7 Bootstrap image field upload widget

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 it yet. First, add this to your css .btn-file { position: relative; overflow: hidden; } .btn-file.....

image for Disable taxonomy term delete button if term has nodes

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', $form_state['term']->tid, '='); $query->join('node', 'n', 't.nid = n.nid'); $count =.....

image for Drupal Domain Access user 1 menu

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 implementing theme_links__system_main_menu, theme_menu_tree__main_menu__submenu and.....

image for Useful Three.js Links

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 optimisations Demos Three.js examples stemkoski.github.io callumprentice.github.io/

image for Drupal Bootstrap 3 theme media queries javascript event (like Omega 3)

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 media queries changed the site layout.I often used this event to create things like mobile menus and.....

image for My Turbosquid 3d models and textures are now free to download

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 army tileable texture and a tileable paver texture with normal map Please credit me if you use these.....

image for Drupal Module - Watchdog Event Extras

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 a little tedious, so I created the Watchdog Event Extras module. Basically what the module does is.....

image for Changing the Inline Entity Form autocomplete field to a select list

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, the autocomplete field to select an existing entity is not appropriate, say if you only have a few.....

image for Old UT2003 game models resurrected

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