Blog
-
Install and Configure the Nomensa Accessible Media Player in Drupal
14th July 2012
This week I released the first version of the Nomensa Accessible Media Player module for Drupal 7. Here's some instructions of how to install and configure it.
Read more → -
My new Drupal modules
12th July 2012
After a busy few days, I've released two new contrib Drupal modules.
Read more → -
Dividing Drupal's process and preprocess functions into separate files
24th May 2012
If you use a lot of process and preprocess functions within your Drupal theme, then your template.php can get very long and it can become difficult to find a certain piece of code.
Following the example of the Omega theme, I've started separating my process and preprocess functions into their own files. For example, mytheme_preprocess_node can be placed within a preprocess/node.inc file, and mytheme_process_page can be placed within process/page.inc.
Read more → -
Writing a .info file for a Drupal 7 theme
23rd May 2012
An example .info file for a Drupal 7 theme.
Read more → -
Prevent Apache from displaying text files within a web browser
23rd May 2012
When you download Drupal, there are several text files that are placed in the root of your installation. You don't want or need these to be visible to anyone attempting to view them in a browser - especially CHANGELOG.txt as that includes the exact version of Drupal you are running and could therefore have security implications.
Rather than delete these files or change the file permissions manually for each file, I can add the following lines into my VirtualHost configuration.
Read more → -
How to add a date popup calendar onto a custom form
23rd May 2012
How to use a date popup calendar within your custom module.
Read more → -
Forward one domain to another using mod_rewrite and .htaccess
23rd May 2012
How to use the .htaccess file to forward to a different domain.
Read more → -
Checkout a specific revision from SVN from the command line
23rd May 2012
How to checkout a specific revision from a SVN (Subversion) repository.
Read more → -
Adding Custom Theme Templates in Drupal 7
19th April 2012
Today, I had a situation where I was displaying a list of teasers for news article nodes. The article content type had several different fields assigned to it, including main and thumbnail images. In this case, I wanted to have different output and fields displayed when a teaser was displayed compared to when a complete node was displayed.
I have previously seen it done this way by adding this into in a node.tpl.php file:
Read more → -
Installing Nagios on CentOS
17th April 2012
A great post details that details the steps needed to install Nagios - a popular open source system and network monitoring software application - on CentOS. http://saylinux.net/story/009506/how-install-nagios-centos-55 …
Read more →