admin's blog

Drupal eMail: Fixing from and reply-to information (Core Hack)

In Drupal 5 and 6, when a user submits the contact form, and email gets generated and sent to the site maintainer (or whatever address is set in the conact form). This email is sent from the server so clicky reply will send an email back to the server, not the email address the submitter set int he form.

The core hack to contact.pages.inc below fixes this so that reply-to address is the sender.

Drupal eMail: Fixing from and reply-to information

Slight hack of contact.pages.inc file so that if a users submits a contact form through your site, when you receive the email and click "reply" you'll reply to the email value entered on the form, not the server that sent the email.

Note: in some providers, like gmail you need to make sure that the from email set in contact, is not the same as the email that contact forms get sent to. This is something that gmail sets as it's getting routed through smtp.gmail.com

Contact Form Fix For Drupal 6 (From and Reply-To Formation) Chad_Dupuis - May 17, 2009 - 04:03

Drupal eMail: Fixing from and reply-to information

Recently came across this fix for email handling of contact form results.

In Drupal 5 and 6 email gets sent from the server (unless you have SMTP module installed) so if a user sends you an email through the contact form, when you go to hit reply you will just be replying to the server.

Unfortunately until Drupal 7 comes out, you need to hack core to fix this.

Contact Form Fix For Drupal 6 (From and Reply-To Formation) Chad_Dupuis - May 17, 2009 - 04:03

Drupal Services: API key authentication using XML-RPC

I recently started building a site that allows authorized users to remotely post stories using the Drupal Services module.

While there are a number of examples, the were all sufficiently abstract so that for someone new to the Drupal Services module, it wasn't easy to build a basic service call.

I put together this example to make it a little easier for the next guy/gal. (It can also be found int he Services hand book page on drupal.org http://drupal.org/node/819826)

Why use drupal

Recently a client asked me to write an introduction that he could present to his business partners about myself and why I use drupal. Sanitized text of my response is below.

*******

I appreciate the opportunity to share a little about what I do and how I can help your organization.

Theming Drupal with multi class selectors

sometimes it's useful to check for the existence of two classes in an element before applying a style to it. For example, if you have a front page that has a different width sidebar than an interior page, you could use a separate page-front.tpl.php file, kind of overkill of your just changing the width of the sidebar.

Another option is to use what http://www.bennadel.com/blog/680-Defining-A-CSS-Selector-That-Requires-A... calls multi class selectors.

.front.sidebar-left #content{ width:760px; margin-left:436px; margin-right:-1196px;

Startup Weekend is coming to Tacoma, sort of

in
Andrew Fry is organizing a startup weekend Tacoma to be hosted by Suite 133.
 
As a veteran of the Seattle Startup Weekends (hosted by Adobe, Google and Microsoft) I'm looking forward to attending one a little closer to home.

Leveraging Features and Spaces for Drupal Installation Profiles

There are a few ways in Drupal to create "copies" of a Drupal site that you find you want deploy over and over again.
 
These include:
  • Using the Installation profile Wizard (no Drupal 6 version)
  • Features module (can only enable after site has been built out, making it difficult to deploy using Aegir Hosting system)

David Hazel is an individual sponsor of Drupalcon SF

David Hazel is going to Drupalcon San Francisco in April and is an individual sponsor. If your going, being an individual sponsor of Drupalcon is a pretty painless way to support the development of software you use everyday.

Troubleshooting "The GD library is missing or outdated"

Sometimes after installing a drupal site on a new server, or slicehost slice, you'll get a message in the Status Report pages, "The GD library is missing or outdated". If your sure the GD libraries are installed (most likely they are) make sure that you've turned them in in your php.ini file.

In most distros it can be found at /etc/php/php.ini or if your on shared hosting you may have a special one just for your account.

Do a search in the php.ini file and make sure that the extension is enabled.

extension=gd.so (enabled) vs ;extension=gd.so (disabled)

Syndicate content