Altering the Author Pane template

Author Pane comes with many variables displayed by default because it is easier for non coders to take away than to add. Depending on what integrated modules you have installed on your site, the Author Pane can get quite busy. Fortunately, it is completely customizable without having to hack the module.

The first thing you need to do is determine what template file you are using. This is the trickiest part because Author Pane is designed to be made use of by other modules. You can use the theme developer submodule that comes with the Devel module to help. Another option is to add this code to your template.php and then clear the cache:

function THEMENAME_preprocess_author_pane(&$variables) {
  $variables['show_template_location'] = TRUE;

You should now see a the path to the template file on all your Author Panes.

Here are some likely candidates:

  • author-pane.tpl.php: This is the default and is used if you call Author Pane as a theme function.
  • This is used and provided by Advanced Forum.
  • advanced_profile_author-pane.tpl.php: This is used and provided by Advanced Profile on the user pages.
  • advf-author-pane.tpl.php: This is the Advanced Forum 1.x version.

Using Custom Tokens module to generate an array of email addresses

I had a need to create a list of email addresses from user accounts that belonged to a role. Of course, this had to be done in a programmatic way. After looking into the more common modules and trying my hand at writing my own tokens using the Token API, I found The Custom tokens module. This is an awesome way to quickly produce tokens without having to devel into writing your own token instances. For my needs, I was to create a list of email addresses so that I could use actions that allowed me to send tokenized emails.

Facebook-style Statuses: Views

The Facebook-style Statuses module provides Views integration to allow you to easily build lists of status updates in whatever format you want. Views integration also means that statuses can be integrated with other modules that use Views, like User Relationships, Flag, and Flag Friend.

Facebook-style Statuses: Share Page

Facebook-style Statuses provides a Share page to quickly and easily post status updates. This page is at and allows people browsing other sites to easily post links to your site via their status. The text that will appear in the status goes in the 's' or 'share-status' query string in the URL. For example, the URL would pre-fill (but not submit) the status update textfield with the text "is happy." (With Facebook Mode on, the resulting status would be similar to "Joe is happy").

Other Parameters

How I solved my Image Module Issues

Having spent many frustrating hours and working my way around questions and answers on this site - I was determined to sit until I had solved my problem - and I did!

My problem was:
All I wanted to do was have a user-friendly icon somewhere so that once my sites were finalised, clients could easily add an image to their web page.
Easily done??? No!!!!
Here's what I came up with, (a basic run-down) step-by-step, and voila! I can now easily insert images of my choosing and from my PC, onto a web page. I thought I was a nerdy sort but boy, did this have me stumped!

Migrate Image module to FileField

The script at migrates images from Image, Image Attach, and Video Image modules to FileField in Drupal 6.

In addition to the prerequisites mentioned in the code, if you started with image.module in Drupal 5, you'll need to make sure that you've successfully upgraded image.module first. See


Subscribe with RSS Subscribe to RSS - Programmers