User login

Drupal

Block all variations of a GMail e-mail address

Other projects and ideas / questions / solutions in this general ideaspaceHow can I block a spammer from repeatedly registering? http://drupal.org/node/139738

Register Pre-approved
http://drupal.org/project/register_preapproved

Storage structure for AJAX Form Messages

By using field storage, we get access to translation.

We've defined the info files, made them dependent on the core module. That was fun!

Caching is fun to implement, but try to hold off until you have all your functionality in place. As someone somewhere surely said (OK, it was Donald Knuth), "Premature optimization is the root of all evil."

We could define our form messages as a nested array analogous to menu definitions— a form ID,

Fields offer the advantage of understanding translation for user-entered data. Therefore, using fields, there's a potential

Drupal 7 Module Development Errata

Drupal 7 Module Development, as expected from knowing the authors, is an excellent book. As an author on another Drupal book, i can't give a Planet-posted review, but it's very good, it should be bought, and the things i think are incorrect i'm noting here until i can find the Packt errata submission form.

http://packtlib.packtpub.com/drupal-7-module-development/book

BUEditor preventing firefox from reloading text in textarea following use of back button

[I'm not entirely clear what causes this and when, and yes, i should be writing outside the browser-- but without this problem, Firefox is rock solid about not losing information.]

When clicking a link and then going back, or pressing a the back button and then the forward button, the text in BUEditor-enabled textfields is getting blanked out.

I think this is site-specific because it hasn't bugged me before, and i see no other reports, but for the moment BUEditor is disabled from this (Drupal 6) site.

Removing the current node's ID from an array of node IDs

Didn't work:

<?php
  // Remove the current node ID, if present.  This looks crazy but it's fast,
  // see http://lixlpixel.org/php-benchmarks/remove-array-items-by-value
  if ($nids) {
    $nids = explode(',', str_replace($current_nid . ',', '', join(',', $nids)));
  }
?>

Worked:

Mix site's blog posts with aggregator feed posts?

This is an actual, typical, client communication. We thought we could drop the veil of top-secret secrecy just this once. (Well actually this is a former client, asking for support without a support contract. Commercial propriety requires me to point out that if you're paying us, we provide solutions, not merely advice.)

Hey Ben,

Send a confirmation e-mail when a webform is submitted (Drupal 6)

Here's another Benjamin Melançon classic data dump, but the code at the bottom (based directly, as noted, on other's documentation and blog posts) is useful, at least to us.

First answer found, naturally, is the comment "A hacked working copy" in the forum post "How do I create confirmation emails for webforms"
http://drupal.org/node/333249#comment-1107252

Where are the error logs when you need them?

Apache will also log errors to:

syslog

Stefan notes: in case of panic you can try to grep -R in /var/log for PHP Fatal error

Benjamin Doherty says this is covered in the DGD7 environment chapter.

Emfield video thumbnails disappearing

This is incorrect

Just update to the latest version. See http://data.agaric.com/raw/druplicon-feature-embedded-media-field-overlay-post for the fun story behind it.

Emfield module must be configured to have a custom directory to store its thumbnails in, otherwise the thumbnails are put in sites/default/files as temporary files (status zero), and are cleared out when cron runs.

Syndicate content