Drupal 6

By adam
2014-12-23 07:43
0 comments

Ho! Ho! Ho! 2015 is fast approaching which means the Holiday season is upon us. As a little "gift" to you, we have put together our rendition of "Let it Snow". Of course since everything we cover on CodeKarate.com is Drupal, we thought it would be fitting to do a Drupal version of his holiday classic.

Hopefully this brings a little smile to your face. From all of us from Code Karate we wish you a happy holidays and new year! Onto 2015!

Over the summer I was able to attend three different Drupal Camps (Drupal Corn Camp, Twin Cities Drupal Camp, and Drupal Camp Atlanta). While talking to other attendees or during my sessions, I made it a point to ask about hosting providers and what other Drupal developers, designers, and site builders were using.

By adam
2014-11-12 08:23
1 comment

There is a saying that "All good things come to those who wait". While whoever said that was most likely not referring to our Git cheat sheet, but the saying still holds true. As of right now, you get get your coding hands on the Code Karate Git Cheat Sheet by clicking here or going to the cheat sheets page (it is the same thing).

By shane
2014-11-07 16:57
0 comments

So let me guess: You either have a Drupal website or are going to create one and need a place to host your Drupal website.

Let me guess one more thing. You are looking for a simple, affordable, and reliable Drupal hosting option. There are tons of good options for hosting your Drupal website, in this article we will discuss how you can setup Bluehost Drupal Hosting for a new Drupal website, or for an existing Drupal website.

By adam
2014-10-21 10:42
0 comments

As developers we always are looking for ways to become more efficient. After all, time is money.

One of things we found that always cost us more time than needed was remembering Drush commands when building our Drupal websites. Obviously, Google will find thousands of sites with this information, but just having a sheet laying on our desks seems to provide the answer faster. Remember time is money.

By shane
2014-09-17 08:02
12 comments

There are many different ways to host a Drupal website. These ways each have their pros and cons depending on your specific website needs. In this article I will break down Drupal hosting into three major categories: Drupal specific hosting, Cloud/VPS Hosting, and shared hosting. There are probably arguments for other categories and some possible overlap, however it's a good starting point when beginning to look for a Drupal hosting provider.

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.

Daily Dose of Drupal Episode #100

The big 100th episode! In this episode I go over my company's Drupal development environment (http://beginr.com). I discuss how we use Aegir (http://www.aegirproject.org/) to manage and deploy our Drupal websites. I also mention how the development process works using development and live environments spread across multiple servers dedicated to hosting Drupal websites. I mention what operating systems we use along with my personal preference for browsers.

One thing I didn't mention is that I use Komodo Edit for my code editor. I think it is pretty awesome.

Nov 14, 2014 - Update My development environment and process has changed drastically over the last few years. However, take a look at the 5 Secrets to Becoming a Drupal 7 Ninja Ebook as I cover setting up you Drupal Development Process extensively.

By shane
2012-12-13 13:15
2 comments

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.

By shane
2012-10-31 16:47
0 comments

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
By shane
2012-10-12 02:07
2 comments

Note: Turns out there is a much easier way to do this as there is an Ubercart function that does essentially the same thing (thanks to the comment below that pointed this out). Just use:

uc_product_is_product($node);

I left the original post below (although it is no longer really needed).

By shane
2012-09-26 17:12
4 comments

If you need to make price increases when specific attributes or options are selected on products, hook_cart_item() may be able to help you out.

My Drupal 6 Ubercart Dilemma

In a recent situation I needed to create an attribute that contained a price. The trick here is that the price increase needed to be added based on the value selected in another corresponding attribute.

By shane
2012-07-16 17:56
1 comment

Sometimes we all need reminders on the seemingly simple things. This is one of those snippets of code that I find myself needing from time to time. I decided to put it here so I can easily find it in the future. Hopefully it can help you too. I borrowed most of the code/concepts from the comments at http://api.drupal.org/api/drupal/developer!theme.php/function/theme_block/6.

By adam
2012-05-14 03:39
1 comment

This is a guest post from Adam, my Co-founder at BEgINr Media

When finished: After you get through this tutorial you will have made a custom Quicktabs style in Drupal 6.

This is how to do it.

Stuff I am assuming:
...you have downloaded the Quicktabs module from Drupal.org and Install it.
...you have a photo editor (Gimp, Photoshop, etc)

    By shane
    2012-05-11 18:37
    16 comments

    So you need to theme, customize, or change the Add to cart form that is output by Ubercart? If so, read on for more information. If you are looking to change the general theme or style of the Ubercart product node page, then you might want to look at my post on theming Ubercart Product Page for Drupal 6.

    By shane
    2012-05-09 16:12
    4 comments

    It is possible to override a specific pager for a specific views using a theme function in your template.php file. Here are the steps needed:

    Theme Views Pager Step 1

    No matter how you want your pager to look, make sure to select mini pager within views. This will allow you to take advantage of the views pager theme hook patterns. I was unable to get this to easily work when using the full pager.

    Depending on how you want your pager to look, you can start with either the code that produces the views mini pager or views full pager using the options below.

    By shane
    2012-04-19 14:54
    2 comments

    If your Drupal cron has failed, and if you see this in your Drupal 6 log, I feel your pain:

    Attempting to re-run cron while it is already running.

    So what is going on here? Basically, a cron run started and for whatever reason did not finished... and frankly, probably never will. So the first question:

    How to I get the Drupal 6 Cron Unstuck?

    This is fairly easy to do. There are three easy ways (choose the one that works for you):

      By shane
      2012-03-21 09:38
      1 comment

      This is a guest post from Mitchel Xavier. Mitchel Xavier is a Drupal Developer for a Drupal web design company in Sydney, Australia.

      By shane
      2012-01-03 15:21
      8 comments

      Ever needed to override the Ubercart checkout page? Here is a quick tutorial on how to do it.

      The first option is to use a form_alter() function from within a module, however in this tutorial we are going to discuss two theming options that can be used together if necessary.

      The first is to change the actual contents of the checkout page. We need to override the THEME_uc_cart_checkout_form function. This can be pulled from the uc_cart.pages.inc and modified as needed from within the template.php function of your theme (replace THEME with the name of your theme).

       
      By shane
      2011-10-03 10:17
      2 comments

      If you have an Ubercart E-commerce website built with Drupal 6 and need to need theme different catalog pages differently, you are not alone. I recently ran into a situation that required links to be a different color on a specific catalog page. That part was fairly easy as there were unique body classes available for each page (I was using a Zen subtheme). However, it was not intuitive getting all the children terms of that catalog page to show up the same way.

      Subscribe to Drupal 6