Contributions

Creative Commons License

DFP creating your first ad tags

by John McGeechan

Google offer a splendid ad serving product called doubleclick for publishers (dfp) for most organizations it is completely free (as of July 2013, if your site served up to 90millions ads or less a month) . The following explains how to embed ad tags into your web site.

How to give any youtube video a thumbnail of your choice

by John McGeechan

overview

Anyone who has loaded up a video on youtube had faced the frustration of being forced to use a choice of one of 3 random images. Youtube seems to have a maniacal obsession with not allowing users to specify their own chosen thumbnail for a video - there may be a good reason for this btw, I just don't know what that reason is. You can specify the thumbnail if you are a youtube partner, but as of the publication of this article (2013-07-18) it certainly isn't the case for a regular youtube account.

Canonical meta tags for drupal multiple domain sites

by John McGeechan

Synopsis

 Slight enhancement to domain_source module to add canonical meta tags to node. Canonical meta tags can improve SEO

Easily Define preprocess functions by content type in Drupal

by John McGeechan

Synopsis


A shorthand way to provide preprocess "hooks" for any content type.



This snippet can be placed in a template or your chosen module, I usually place this in both the node and page preprocess function eg

Drupal plugin written in Jquery to increase or decrease web elements or font sizes

by John McGeechan

Synopsis

 A handy little Drupal plugin that let's users increase/decrease fonts with a single click

nb I tried  the official drupalfont  resizer, but could not get it working, on the off-chance that you have the same problem...

jQuery plugin - Font Resizer

by John McGeechan

Want to change the font size of all elements on your site with a single mouse click ? Want it to be fully customizable ? ok, look no further....

nb this effect is not achieved with the use of smoke and mirrors or voodoo, just plain ol' jquery

A Complete PHP REST solution

by John McGeechan

Synopsis

A client requested the construction of a limited set of web services. Simpler solutions created the foundations for these services via a set of generic classes and libraries.

Details on how to implement these are given below

Installing symfony on Vista

by John McGeechan

Symfony logoSynopsis

Instructions for setting up Symfony on your local machine can at first seem  baffling.With the benefit of hindsight however, the install instructions are actually fairly straightforward.