RSS

Things I support

Drupalize.me - A great way to learn Drupal
view counter

Need help?

Do you need help with a Drupal or Django project?

Contact Me

Back to Top

Blogs

Customizing Drupal 6 Quicktab Styles

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)

Drupal 6 Ubercart Theme Add to Cart Form

So you need to theme 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.

Drupal 6 Override views pager theme function

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.

Disable Personal Contact Form in Drupal 7 Contact module

In the comments of a past post discussing best Drupal modules, it was recommended not to use Webform for contact forms. So for a project I am currently working on I decided to just use the Drupal 7 contact module that comes with core Drupal.

I have used this is the past and it works just fine. My requirements were simple, "provide a site-wide contact form that authenticated users can use to contact the site admins". On the surface it seems simple enough.

The best way to learn Drupal

I often get asked what is the best way to go about learning Drupal or the best way to get started with website development. Because of these questions, I decided to put together a list of things I wish I would have done first, when I started to teach myself Drupal.

Learning Drupal Tip #1 - Getting Started

Top Ten Best Drupal 7 Contrib Modules

Over the years I have used hundreds of Drupal contributed modules and have written a lot of my own. However, I thought it appropriate to compile a list of my 10 best Drupal 7 contrib modules that I don't think I could live without.

Criteria for my best drupal 7 modules list

Drupal 7 Views Exposed Filters in Blocks (and panels)

Ran into a views and panels issue today that was very simple to fix, but difficult to track down. Here is my situation in case you run into a similar views/panels issue.

I have one Drupal 7 panel page that does a lot of visibility rule filtering based on the path of the panel. Depending on the path, I have different pieces of content that show up. In some situations, this may be a view (othertimes it is static content, custom coded blocks, etc).

Drupal 6 Fixing Stuck Cron Run

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):

Drupal Force HTTPS (ssl)

There may come a time where you need to force a user to see your site under HTTPS. If you only have one site on the server, you can easily add something like this to your apache config file:


Redirect permanent / https://www.domainname.com/

Theme an image field in Drupal 7

If you have a node with an image field in Drupal 7 and need to manually print the image, here is a quick code snippet for theming the image:

$my_image = array(
  'style_name' => 'my_style', //the image style created
  'path' => $node->field_my_image['und'][0]['uri'],
);
 
print theme('image_style', $my_image);

As you will notice, the image field is called "my_image" and is accessible from $node->field_my_image['und'][0]

You will need to make sure you set up "my_style" inside the Image Styles section in the D7 Admin interface.

Syndicate content