1-866-277-9958

Drupal

Theme node body with a template file in the feature

This code can be used to add tpl.php files instead of implementing theme functions to your feature

<?php
 
/**
* Implementation of hook_theme().
* DRUPAL WONT SEE THIS HOOK UNTIL YOU CLEAR YOUR CACHE
*/
 
 
//Create myfeature-node-body.tpl.php in your feature and use $node to theme the node body
 
function myfeature_theme() {
  return array(
    'myfeature-node-body' => array(
      'template' => 'myfeature-node-body',
      'arguments' => array('node' => null),
    ),
  );
}
 
/**
 * Implementation of hook_nodeapi().
 */

Sanitize User Table in Drupal

#!/bin/bash
 
drush sqlq "UPDATE {users} SET pass = md5('pass') WHERE uid > 1;"
drush sqlq "UPDATE {users} SET mail = concat('myaddr+', replace(mail, '@', '_'), '@testdomain.org') WHERE uid <> 0 AND instr(mail, '@testdomain.org') = 0;"

These drush commands will set all users that are not anonymous or user 1 to password "pass" and sanitize all email addresses.

dustinc@getlevelten.com becomes myaddr+dustinc_getlevelten.com@testdomain.org

Choosing the Correct Media Front for Drupal

It is a rare website these days that doesn’t have some sort of audio or video player in it. When creating a website with Drupal, there are now quite a few options on how to do this. Choosing which one to use is now quite difficult.

Choices, Choices


Get Drupal help when you need it most! Find hundreds of great tutorials. Track, rate, comment and more. Create Account

If you enjoy our content, please consider subscribing through RSS, so you can read our posts in your application of choice.

10 Free Photoshop Brushes and Patterns to Spice up Your Bland Drupal Theme

Most non-customized Drupal themes come with basic gradients or stale background colors, and for good reason. The idea behind themes is to provide a somewhat generic design for the masses - providing a basic layout and canvas from which designers can improve.

Here are a list of Photoshop Brushes and Patterns that can help spice up your bland Drupal theme. If you’re not familiar with adding Brushes or Patterns to Photoshop, there are step-by-step instructions on the web or you can follow the instructions below:

  1. Download Brush or Pattern and save it to your computer.

Get Drupal help when you need it most! Find hundreds of great tutorials. Track, rate, comment and more. Create Account

If you enjoy our content, please consider subscribing through RSS, so you can read our posts in your application of choice.

Fundamentals of Drupal On Page SEO

Drupal is renowned for having a great SEO architecture. However architecture alone will not achieve top search engine rankings. A critical component is having well optimized content, through a process called on page SEO. In this article we will cover some fundimental guidelines for on page SEO that will help your pages rank higher in the search engines.

Great content


Get Drupal help when you need it most! Find hundreds of great tutorials. Track, rate, comment and more. Create Account

If you enjoy our content, please consider subscribing through RSS, so you can read our posts in your application of choice.

Intern Meets Drupal

I would like to make a disclaimer before I get started on this three month project. I am a communications girl not a web developer. I have VERY minimal knowledge of HTML and no PHP or Java insight whatsoever. I do have a blog on Wordpress and I had never heard of Drupal until I was hired at LevelTen. With all that said, here we go…

When you first set up an account, you will not have a couple of really important Drupal modules. Here are a few tips to get an Admin view as well as a recovery type module (Just in case you accidentally blow up your Drupal site).


Get Drupal help when you need it most! Find hundreds of great tutorials. Track, rate, comment and more. Create Account

If you enjoy our content, please consider subscribing through RSS, so you can read our posts in your application of choice.

Hostmonster / Bluehost Symlinks Issues Impacting Images and CSS - Drupal CMS

For those of you who woke up to a flurry of frustrated customers or shocked that your website images were not displaying...Some shared hosting companies including Hostmonster and Bluehost have disabled symlinks (symbolic links) used by Drupal and other content management systems to display images. Hosting companies choosing to disallow symbolic links have changed the .htaccess file, which ultimately breaks your linking structures.


Get Drupal help when you need it most! Find hundreds of great tutorials. Track, rate, comment and more. Create Account

If you enjoy our content, please consider subscribing through RSS, so you can read our posts in your application of choice.

Why Drupal Popularity May Boom in 2010

federal agency and drupal

Besides the obvious possibilities for a Drupal boom in 2010 (launch of Drupal 7), there are several other reasons that may spark an increase in popularity.

Government Interest

The fact that whitehouse.gov launched on Drupal was huge news in 2009, but with the recently published "Open Government Directive," the whitehouse site may be just the tip of the iceberg for Drupal.


Get Drupal help when you need it most! Find hundreds of great tutorials. Track, rate, comment and more. Create Account

If you enjoy our content, please consider subscribing through RSS, so you can read our posts in your application of choice.

Does code drive community or vice versa?

One of the reasons Drupal is so powerful and will continue to grow is the vision. The vision manifests itself in two primary ways: the code and the community. While I have worked with many open source projects, I have never seen one where the community drives the code and the code drives the community as much as it does with Drupal.


Get Drupal help when you need it most! Find hundreds of great tutorials. Track, rate, comment and more. Create Account
Syndicate content
Syndicate content

©1999 - 2011 LevelTen Interactive - Dallas, TX