RSS

Newsletter

The CodeKarate Newsletter is the best way for technical ninjas to keep their swords sharpened. Don't worry, we won't flood your inbox and your email address will always remain private.
Back to Top

shane's blog

Drupal 6 Displaying a block multiple times on the same page or in different regions

There are some times in Drupal 6 where you push the limits of what the blocks interface can do. If you need to display the same block, multiple times on the same page, you will start to see these limitations. An example of where this is useful is a Newsletter signup form. Sometimes a client may want a newsletter signup form to be in the footer of every page, but also displayed more prominently on the contact form page.

Drupal 7 Registry Issues After Drupal Core update

I recently was helping a new Drupal developer with some issues after they attempted a Drupal update that really messed up their Drupal website. They were getting a bunch of Fatal errors that were causing the site to be completely broken. This user was on a Windows system running a Drupal 7 development site on their localhost. Here are the steps I tried and how I fixed the problem.

Download a new Drupal 7 core

The Top 10 Daily Dose of Drupal Videos of 2012

top 10 of 2012

I wanted to put together a list of the 10 most watched Daily Dose of Drupal videos of 2012. I am basing this list off of how many views the video received in 2012. I know this more heavily favors the older videos, but this should still provide a good list of the most watched Daily Dose of Drupal videos from last year.

Top 3 Drupal Site Administration modules

If you find yourself administering or managing a Drupal 7 site, there are a few modules that can quickly make your life much easier. These Drupal 7 modules were selected based on the following criteria:

  • The module makes something easier for the person in charge of managing the Drupal 7 website by simplifying some task (or set of tasks)

Book Review: Drupal Search Engine Optimization

If you are building a Drupal website, you almost certainly want people to find your Drupal site. This is where Search Engine Optimization (SEO) comes into play. The Drupal Search Engine Optimization book from Packt Publishing aims to help Drupal website developers craft and implement a Search Engine Optimization strategy while looking at specific Drupal 7 modules that can help throughout the process.

The relatively short book contains just five chapters covering the following topics.

Drupal 6 Bulk Update Node Body Input Format

I ran into a situation in which I created a new Input Format in Drupal 6 on a site that had a lot of content. This input format was similar to the default Filtered HTML input format, however I wanted it to have a few different options.

Drupal 7 Increase Max File Upload Size

Have you ever ran into a problem where you needed to upload relatively large files and still want to be able to manage these from the Drupal 7 administrative interface? If so, you may run into a situation like the one below:

You will notice the 12 MB text stating that we can only upload files that are 12 MB and under. In this case I needed this number to be a little bigger.

Hiding Drupal 7 Page Titles using theme_preprocess_page

I wrote a post on Hiding page titles for specific node types in Drupal 6, this is just an updated post for Drupal 7.

The code is essentially the same, but requires just a minor change. If you want to hide the page title on only the front page of your Drupal 7 website, add the following code to your themes template.php file (replacing THEMENAME with the name of your theme):

function THEMENAME_preprocess_page(&$vars) {
  if ($vars['is_front']) {
    $vars['title'] = '';
  }
}

Drupal 7 Javascript Ajax Framework example from a link

For a Daily Dose of Drupal episode that covers this blog post topic as well, take a look at Drupal 7 Ajax Framework Link Example.

Drupal 6 Ubercart hook_uc_checkout_complete and content_profile

On a recent Drupal 6 multi-currency Ubercart website I came across the following requirements.

  • I needed to save a users preferences to determine whether to display prices with VAT or not
  • I needed the user to be able to manage these preferences from within their account settings
  • When the user purchased something, either for the first time, or multiple times, I needed their preferences to be updated
Syndicate content