This has me beating my head on the desk a bit. I’m coding up a Drupal 6 module, and wanted to redirect the user after logging in, depending on what role they belong to.
In this example, let’s say I have a role called “treasurer” - and anyone that’s logged in and not a treasurer is [...]
Archive for the Drupal category:
Drupal Multi-site Configuration on a Dedicated Server
So I just figured out how to get Drupal’s multi-site configuration working on my Rackspace Linux server.
Let’s say your Drupal core is located at my-drupal-core.com. Install Drupal there, this will be your master copy.
Within your ’sites’ folder, create a folder for each domain you will want to run off this core installation. Let’s say [...]
Drupal - Adding Author Name Search to Main Search Results Page
Perhaps you typed an author’s name into Drupal’s search box, looking for content from that particular author. But for all Drupal knows, you’re just looking for content that matches the search phrase you just entered and could care less about who wrote it.
Drupal: Get a Username from a User ID
I’ve been really enjoying working with Drupal - the more I learn about it, the more ideas I get on how to use it. Yet, sometimes it can make a simple thing a bit daunting - like fetching a user’s name from a user id, without needed to load the entire user object with user_load() [...]
Drupal - Encoding Email Addresses to Deter Spam-bots
While working on my latest Drupal project, I really wanted an easy, brainless way for users to create clickable “mailto:” links that gave pesky spam-bots a hard time.
Turns out, the Bbcode module does just the trick. Even if you don’t normally use it, you can add this input filter to your standard HTML filters, and [...]
Drupal Poll Module’s Annoying 128 Character Limit
I’m working on a project that is giving me some hardcore Drupal experience, and in general I’m liking Drupal quite a bit (more on this when the project is finished though).
Anyways, even though I’m working with Drupal 6, there seems to be some legacy code from older versions in place - among them the 128 [...]