PHP

Practical Action

Developing a custom content system

We’ve worked with Practical Action for many years developing their site and online presence, but back in 2010 they took the bold step to completely overhaul their site. This naturally involved considering both changes to the design and the system on which the site was built. After considering a few different systems the team decided on a bespoke path that led to the creation of a custom Content Management System that really establishes new foundations for the site to develop over the coming years.

Starting with the redesign

The design process was exiting, and working on such a large site was always going to be More >

The Talent Business

The Talent Business Redesign

Designer Ben Merrington got us onboard to deliver his designs for the thetalentbusiness.com. This redesign for The Talent Business, provider of senior talent to communications agencies and creative businesses around the globe, needed to utilise the latest web-tech. The result is smooth HTML5 & CSS3 transitions, some pretty special Ajax content loading and all built on our in-house CMS.

 

On the outside

This really was an exciting contract to work on. Not only are the designs great, but the requirement to make the experience as slick as possible allowed us to get really geeky with the latest techniques. Take a look at More >

drupal

Drupal CSS aggregator

A couple of pointers when you’re getting into theming Drupal the correct way rather than just hacking around as is most fun.

I seem to hit troubles getting the aggregator feature of Drupal working, and often end up just slapping an external CSS link call in to the page template.

The proper way to do is a little long winded, but gives us the speed optimisations offered by the aggregator facility. Instead of putting <link … /> in the page.tpl.php file, use the drupal_add_css() function in your template.php file.

The best place to put it is in a function called <themename>_preprocess_page().

And here’s an example of More >

osCommerce redirect error when SSL enabled and shop directory is different to NONSSL directory

I found the solution to this issue from a thread on the forums. It means making a correction to the tep_redirect function in functions/general.php.

You need to add the DIR_WS_HTTPS_CATALOG constant into the url transformation part…

Before:

// Redirect to another page or site function tep_redirect($url) { $url = str_replace(‘&’, ‘&’, $url); //Ampersand fix if ( (strstr($url, “\n”) != false) || (strstr($url, “\r”) != false) ) { tep_redirect(tep_href_link(FILENAME_DEFAULT, ”, ‘NONSSL’, false)); }

if ( (ENABLE_SSL == true) && (getenv(‘HTTPS’) == ‘on’) ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . More >