The settings.php file in Drupal is actually a very short and simple file with just a few settings, but they are critical settings. If you're new to Drupal and moving or updating it's very important to understand what this file does. Misconfiguration here causes error messages, failed sites, page not found problems that can be easily remedied if you know where to look
One such problem that comes up frequently is a missing or improper data base connection. In this tutorial we're going to show you where to find it and how to configure or change it.
Drupal 6 will be around for quite a while longer and module updates are still required periodically. Unlike Drupal 7, there isn't any automated update process for Drupal 6, so here's a complete step-by-step guide to the update process:
It's hard to miss the word "Responsive" when looking at Drupal themes these days.
What does it mean? "Responsive" design means that your theme is flexible enough to look good on any device. There is no need to create a separate theme or even a separate subdomain or site. One theme can look good on a large desktop, your tablet and your mobile phone.
In this tutorial we're going to use one particular example to show you how Responsive design works with Drupal sites.
The User 1 account on a Drupal site has special status. This account has life and death rights on your Drupal installation and needs to be protected at all costs. If you've lost access to this account, then it is important to regain that access.
Your first step should be to try and reset your password by adding this to your site's URL: /user/password/. If that doesn't work or if you don't know the email for the account, then you can manually reset your password in the database. This tutorial will show you how to do it.
Login Destination is a module that allows you to specify which page the user sees after logging in. One very common use is to redirect users to the page they were viewing before they logged in.
Login Destination is available for both Drupal 6 and 7. In this tutorial we cover D6 because that is the version used by the student who requested this tutorial. However, the only difference for D7 users will be the installation process.
LoginToboggan is a module that improves the login experience in Drupal.
It has over eleven useful features including options that allow you to:
- redirect users after they login and send them to a page of your choice.
- allow users to use their email address or username to login.
- combine the login and registration areas on the same page.
Here's how you use LoginToboggan:
There are many different languages available for a Drupal installation, but what if you want to have a site with more than one language? Drupal is up to the task, but it's not a trivial procedure. There are two areas that need translation.
First, you'll need to translate the interface, which includes the button texts, drop down menus, messages and other languages you use to interact with the site. Customizing the interface is fairly simple, and there are language files you can download that will help you make short work of it. Drupal developers often refer to this as localization.
Second, you'll need to translate the content. There are some modules that will make this possible, but this does require more effort than translating the interface.
Do you need to check what your users see when they login to your site? Do you often need to troubleshoot issues for your users? If so, the Masquerade module will be a very useful tool.
The Masquerade module allows you to login as any user but using your own password. You can mimic anyone else's login and see exactly what they see. This is very useful on membership sites and sites that require multiple levels of access.
Drupal 8 is underway with lots of great ideas and initatives. For front-end site builders, these include improving Drupal's design, mobile, HTML5 and multi-lingual capabilities. For those working under the hood, there are plans to improve web services and staging management.
How will this affect your Drupal site building?
Drupal 7 did get a new toolbar and overlay to make it easier to use. However, many people prefer to use the Administration Menu module. This might be because they are familiar with it (because it was also very popular in Drupal 6), and it might because it is actually easier to use than the default toolbar.
The normal Drupal 7 toolbar can require several clicks to get to parts of the admin area. As a result, many developers find the Administration Menu module to be a great help because they can jump to any administrative task much more quickly.
Theming Drupal is not a straightforward task, but people are trying to make it easier. One way to do that is by creating a theme framework that provides many of the basic features that designers need: a grid system, cross-browser compatibility, base CSS classes and more..
Code can be dangerous. The right code in the right place brings your site to life, but there are many places where it can be a huge security risk.
This video was taken at DrupalCamp Indianapolis this November. Rod from OSTraining gave a talk called "The Absolute Beginners Guide to Drupal".
The talk was aimed squarely at people who were brand new to Drupal. About 60 people came and enjoyed the introduction, which was a condensed version of our full-day Beginner training.
This short tutorial will show you how to find out which Drupal version your site is using.
We'll cover both Drupal 6 and 7 as there is a small difference between the two when it comes to finding your version number.
The SEO Checklist for Drupal is a very useful module to help with your SEO efforts.
The SEO Checklist module doesn't perform any SEO functions, but it will guide you through the process of optimizing your site and it will recommend best-of-breed modules. After installation the checklist will take you through a list of recommended changes made by the experts at Volacci.
Drupal allows you to do lots of things, but taking a simple content field and putting it in a block can be complex. When would you need to do this? One common example is that you might want to display an image from a content type. There are various ways to do this, but CCK Block is perhaps the easiest.
Don't be fooled by the use of the name "CCK". This module works on both Drupal 6 and 7.
CCK Blocks lets you put an image or a text block from an article, page or any content type into any block position on your theme. You can even create special content types if you need them. The only restriction is that you can only put one field in each block. We'll show you how it works, and you can use your creativity to apply it to your situation.
Drupal Commerce is currently the leading solution for building Drupal e-commerce websites.
We're going to give you a first look over Drupal Commerce, showing you how to get up and running. This won't be a detailed tutorial but introduce you to the key features. We'll show you the main modules that Drupal Commerce relies upon and will give you important resources to learn more.
The Drupal Contact module is often replaced by the Webform module. However, it can be useful in some situations. For example, imagine that you have different departments and you want each of them to get a different contact form on your Drupal website. If you're willing to keep it simple, you can do everything you need with the core Contact module and won't have to install anything else.
It all depends on knowing how to create categories and blocks.
This tutorial will show you how to create a photo gallery in Drupal 6.
It won't create the world's flashiest or most impressive gallery, but it will work. This tutorial is designed for beginners so that they can understand the key concepts behind creating a gallery in Drupal 6.
You will need to install and enable at least the five modules listed below. Several of these do depend on other modules so your final list of installed modules will be longer.
The XML sitemap module creates a sitemap for your Drupal site. This sitemap is not for visitors but for search engines. It conforms to the sitemaps.org specification and helps search engines to more intelligently crawl your website and keep their results up to date. The sitemap created by the module can be automatically submitted to Ask, Google, Bing (formerly Windows Live Search), and Yahoo! search engines. The module also comes with several other modules that can add sitemap links for content, menu items, taxonomy terms, and user profiles.
Are you a total Drupal beginner? Do you use a one-click installer like Fantastico or QuickInstall that came with your hosting account and need to reinstall into a directory that already has Drupal installed? Sometimes the /sites/ directory just won't allow itself to be deleted.
Don't worry, you're not the only person to have that difficulty. This an easy way to delete that directory so you can do a clean install with a one-click installer or just clean up your server. This is written for the absolute beginner. Don't worry, you don't need to download putty, get command line access or call anybody. Here's how to delete the /sites/ folder:
Last month we wrote this tutorial showing you how to create backups using the Backup and Migrate module. Now we need to learn how to use it to either migrate or duplicate a site.
If you have an existing site, and need to make some changes or add modules, it's best to create a test environment that is identical to the production site. Do all your experimentation there and then it's a snap to migrate the changes.
This tutorial shows you how to migrate or duplicate your site using the Backup and Migrate module.
There is nothing quite so important to a developer as backups.
Backup and Migrate makes the task of backing up your Drupal database and migrating data from one Drupal install to another easier. It provides a function to backup the entire database to file or download, and to restore from a previous backup. You can also schedule the backup operation. Compression of backup files is also supported. The database backup files created with this module can be imported into this or any other Drupal installation with the restore feature, or you can use a database tool such as phpMyAdmin.
You've seen Captcha used on many, many websites. Before you can submit a form, it provides a question and asks for a response from you. This prevents many spam comments, form submissions and email submissions.
This tutorial will show you how to use the standard Captcha module for Drupal and will introduce you to several alternatives.
You can use content types and fields to create product pages, business listings, or virtually any type of content that has specific information that needs to be included with each entry.
We'll show you how to add a new field, and existing field and a teaser to a new content type that you create.
This tutorial is part of our series on upgrading from Drupal 6 to 7. Click here to find other tutorials on upgrading.
Notice: unserialize() [function.unserialize]: Error at offset 74 of 75 bytes in variable_initialize() (line 749 of /srv/www/
This error and others like it often occur when updating from Drupal 6 to 7 and is caused by left-over settings from modules that did not clean up when they were uninstalled, and are not stored in the correct format. These will cause PHP errors.
A new module called Variable Check will check the database for errors and make it easy to spot the problem and delete the variable name that is causing the error message.
CCK, or Content Construcion Kit is at the heart of many Drupal 6 sites. If you are migrating, you not only need to migrate the module, but you need to migrate the data as well.
This is a little more complicated than a simple upgrade.
Much of Content Construction Kit (CCK) in Drupal 6 is part of Drupal 7 core fields. Much but not all of CCK functionality is now part of Drupal 7 core. Several features require the installation of new, dedicated 7.x modules.
A simple site with only a few modules is a snap to upgrade. But if you have site with numerous modules, customizations and a custom theme, going from Drupal 6 to Drupal 7 requires a lot of thought and planning.
Many contributed modules that you added to Drupal 6 are now part of the core, so you don't have to move them. Some modules or your personal customizations may not have an upgrade path, in which case you can't upgrade. There are many decisions and some research involved in accomplishing a smooth upgrade.
By default, Drupal does not install any type of editor for adding styling to content. The good thing about that is you get to choose which one you want to use.
The CKEditor is one of the most popular WYSIWYG editors and with version 3.6.1 the installation is a little simpler than previous versions. Here's how to do it.