<!DOCTYPE html> <html class="no-js" lang="en-GB"> <head> <title>Blog | Oliver Davies</title> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta property="og:url" content="https://www.oliverdavies.uk/blog/page/6.html"> <meta property="og:title" content="Blog"/> <meta property="og:image" content="https://www.oliverdavies.uk/assets/images/me-precedent.jpg"/> <meta property="og:image:height" content="327"/> <meta property="og:image:type" content="image/jpg"> <meta property="og:image:width" content="327"/> <link rel="stylesheet" href="https://www.oliverdavies.uk/assets/css/main.css"> <link rel="stylesheet" href="https://www.oliverdavies.uk/assets/css/blog.css"> <link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=57" sizes="57x57"> <link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=114" sizes="114x114"> <link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=72" sizes="72x72"> <link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=144" sizes="144x144"> <link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=60" sizes="60x60"> <link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=120" sizes="120x120"> <link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=76" sizes="76x76"> <link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=152" sizes="152x152"> <link rel="icon" href="/assets/images/me-precedent.jpg?s=160" sizes="160x160"> <link rel="icon" href="/assets/images/me-precedent.jpg?s=96" sizes="96x96"> <link rel="icon" href="/assets/images/me-precedent.jpg?s=32" sizes="32x32"> <link rel="icon" href="/assets/images/me-precedent.jpg?s=16" sizes="16x16"> </head> <body class="page--blog page--blog__list"> <nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="https://www.oliverdavies.uk/">Oliver Davies</a> </div> <div id="navbar" class="collapse navbar-collapse" role="navigation"> <ul class="nav navbar-nav"> <li class=""> <a href="/">About</a> </li> <li class=""> <a href="/experience">Experience</a> </li> <li class=""> <a href="/testimonials">Testimonials</a> </li> <li class=""> <a href="/talks">Talks</a> </li> <li class="active"> <a href="/blog">Blog</a> </li> <li class=""> <a href="/contact">Contact</a> </li> </ul> </div> </div> </nav> <div class="container"> <div class="row"> <main class="col-md-9"> <h1>Blog</h1> <ul class="posts"> <li class="post"> <h2>My new Drupal modules</h2> <p class="posted text-light">12th July 2012</p> <p>After a busy few days, I've released two new contrib Drupal modules.</p> <a href="/blog/2012/07/12/my-new-drupal-modules">Read more →</a> </li> <li class="post"> <h2>Dividing Drupal's process and preprocess functions into separate files</h2> <p class="posted text-light">24th May 2012</p> <p>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.</p> <p>Following the example of the <a href="http://drupal.org/project/omega" title="The Omega theme on Drupal.org">Omega theme</a>, 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.</p> <a href="/blog/2012/05/24/dividing-drupals-process-and-preprocess-functions-separate-files">Read more →</a> </li> <li class="post"> <h2>Writing a .info file for a Drupal 7 theme</h2> <p class="posted text-light">23rd May 2012</p> <p>An example .info file for a Drupal 7 theme.</p> <a href="/blog/2012/05/23/writing-info-file-drupal-7-theme">Read more →</a> </li> <li class="post"> <h2>Prevent Apache from displaying text files within a web browser</h2> <p class="posted text-light">23rd May 2012</p> <p>When you download <a href="http://drupal.org/project/drupal">Drupal</a>, 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.</p> <p>Rather than delete these files or change the file permissions manually for each file, I can add the following lines into my VirtualHost configuration.</p> <a href="/blog/2012/05/23/prevent-apache-displaying-text-files-within-web-browser">Read more →</a> </li> <li class="post"> <h2>How to add a date popup calendar onto a custom form</h2> <p class="posted text-light">23rd May 2012</p> <p>How to use a date popup calendar within your custom module.</p> <a href="/blog/2012/05/23/add-date-popup-calendar-custom-form">Read more →</a> </li> <li class="post"> <h2>Forward one domain to another using mod_rewrite and .htaccess</h2> <p class="posted text-light">23rd May 2012</p> <p>How to use the .htaccess file to forward to a different domain.</p> <a href="/blog/2012/05/23/forward-one-domain-another-using-modrewrite-and-htaccess">Read more →</a> </li> <li class="post"> <h2>Checkout a specific revision from SVN from the command line</h2> <p class="posted text-light">23rd May 2012</p> <p>How to checkout a specific revision from a SVN (Subversion) repository.</p> <a href="/blog/2012/05/23/checkout-specific-revision-svn-command-line">Read more →</a> </li> <li class="post"> <h2>Adding Custom Theme Templates in Drupal 7</h2> <p class="posted text-light">19th April 2012</p> <p>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.</p> <p>I have previously seen it done this way by adding this into in a node.tpl.php file:</p> <a href="/blog/2012/04/19/adding-custom-theme-templates-drupal-7">Read more →</a> </li> <li class="post"> <h2>Installing Nagios on CentOS</h2> <p class="posted text-light">17th April 2012</p> <p>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 …</p> <a href="/blog/2012/04/17/installing-nagios-centos">Read more →</a> </li> <li class="post"> <h2>Create an Omega Subtheme with LESS CSS Preprocessor using Omega Tools and Drush</h2> <p class="posted text-light">16th April 2012</p> <p>In this tutorial I'll be showing how to create an Omega subtheme using the Omega Tools module, and have it working with the LESS CSS preprocessor. The first thing that I need to do is download the Omega theme and the Omega Tools and LESS modules, and then to enable both …</p> <a href="/blog/2012/04/16/create-omega-subtheme-less-css-preprocessor-using-omega-tools-and-drush">Read more →</a> </li> </ul> <ul class="pager"> <li class="next"><a href="https://www.oliverdavies.uk/blog/page/5.html">Newer ā</a></li> <li class="previous"><a href="https://www.oliverdavies.uk/blog/page/7.html">ā Older</a></li> </ul> </main> <div class="col-md-3"> <div class="panel badges text-center"> <a class="badge--da-member" href="https://assoc.drupal.org/membership" title="Iām a Drupal Association member."> <img src="//images.oliverdavies.uk/assets/images/da-individual-member.png" alt="Drupal Association Individual Member" width="152" > </a> <a href="http://drupalcores.com/#opdavies"> <img alt="I built Drupal 8 with hand holding a wrench on blue background" src="//images.oliverdavies.uk/assets/images/drupal-8.jpg" /> </a> <img src="//images.oliverdavies.uk/assets/images/badges/acquia-certified-developer-drupal-8.png" alt="Acquia Certified Developer - Drupal 8 Exam Badge" height="147" width="147" /> <a href="http://conference.phpnw.org.uk/phpnw17"> <img src="//images.oliverdavies.uk/assets/images/badges/phpnw17.png" alt=""> </a> </div> <div class="availability panel panel-default"> <div class="panel-heading">Availability</div> <div class="panel-body"> <p> <i class="fa fa-thumbs-o-up text-warning"></i> Currently have limited part-time capacity </p> <p> <i class="fa fa-thumbs-o-down text-danger"></i> Currently no spare full-time capacity. </p> </div> </div> <div class="latest-posts panel panel-default"> <div class="latest-posts__heading panel-heading">Latest blog posts</div> <ul class="list-group"> <li class="post list-group-item"> <span class="post__title"> <a href="/blog/2017/06/09/introducing-the-drupal-meetups-twitterbot"> Introducing the Drupal Meetups Twitterbot </a> </span> - <span class="post__date">9th June, 2017</span> </li> <li class="post list-group-item"> <span class="post__title"> <a href="/blog/2017/05/20/turning-drupal-module-into-feature"> Turning Your Custom Drupal Module into a Feature </a> </span> - <span class="post__date">20th May, 2017</span> </li> <li class="post list-group-item"> <span class="post__title"> <a href="/blog/2017/05/15/drupalcamp-bristol-early-bird-tickets-sessions-sponsors"> DrupalCamp Bristol 2017 - Early Bird Tickets, Call for Sessions, Sponsors </a> </span> - <span class="post__date">15th May, 2017</span> </li> </ul> </div> </div> </div> </div> <footer class="container"> <p class="copyright"> © 2010-2017 Oliver Davies. Built with <a href="https://sculpin.io">Sculpin</a>. </p> <div class="meetups"> <h2>Things that I organise</h2> <ul> <li class="meetups--drupal-bristol"> <a href="http://www.drupalbristol.org.uk" title="Drupal Bristol"> <img src="//images.oliverdavies.uk/assets/images/meetups/drupal-bristol.jpeg" alt="Drupal Bristol logo" > </a> </li> <li class="meetups--drupalcamp-bristol"> <a href="http://www.drupalcampbristol.co.uk" title="DrupalCamp Bristol"> <img src="//images.oliverdavies.uk/assets/images/meetups/drupalcamp-bristol.png" alt="DrupalCamp Bristol logo" > </a> </li> <li class="meetups--phpsw"> <a href="http://phpsw.uk" title="PHPSW"> <img src="//images.oliverdavies.uk/assets/images/meetups/phpsw.jpeg" alt="PHPSW logo" > </a> </li> </ul> </div> </footer> <script src="https://www.oliverdavies.uk/assets/js/site.js"></script> <script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-11967257-1', 'auto'); ga('send', 'pageview');</script> </body> </html>