User login

Benjamin Melançon

Send an e-mail to an administrator when a new user registers on a Drupal 7 site

10:13 benjamin-agaric: Drupal 7 - the simplest way to have an administrator e-mailed when a new user signs up? Can't find any core setting and no trigger does it either? Seems we should have a way to get this functionality short of Rules module... thoughs?
10:22 benjamin-agaric: Answer: it can be done through Drupal core- an advanced action simply has to be configured first at admin/config/system/actions/configure and then back to trigger configuration.

How make double rounded borders with CSS3 (and using an extra div)

I couldn't find a way to do this in straight CSS3.

A light colored border, a white (transparent) space in between, and a blue background, all rounded.

Also, note that by using CSS3, we are oh-so-subtly telling Internet Explorer users (before IE9, anyway) that we don't care that the site doesn't look as pretty as it does to people sensible enough to use good web browsers.

First, let's get the extra HTML out of the way.

Upgrade between Drupal versions using a diff shell script

[This should be on its way to being obsoleted by drush, but i'm using it for Drupal 7 alpha so thought i'd finally make sure it was shared.]

Download this and other useful scripts from their public repository on gitorious.

(Please use the code from the repository, the below may be out of date.)

Change the vocabulary of a taxonomy term in Drupal 7 using the database

By clicking the wrong Add terms link, i managed to add a couple terms to the wrong vocabulary.

One of the powerful things about taxonomy is that all terms are really equals under the hood, no matter what vocabulary they belong to. Unfortunately, Drupal does not make this power available through the UI. We can, however,

Improving on a patch

cd drupal
wget http://drupal.org/files/issues/book-589440-38.patch
patch -p0 < book-589440-38.patch
drush dl devel

Tip: The patch command needs the angle bracket (alligator mouth) to eat the patch file!

admin/modules

Typography example page for Drupal sites

Typography test page, such as here:

http://demo.kiwi-themes.com/drupal-dev/node/68

People are operating off a template pasted into a node, it seems, and while copying the source should work fine there must be the original example and it could be made a module :-)

Update: I've done a simple version of this module.

Working the Web: Start and grow an online presence - workshop proposal for Boston Skillshare

Proposed for the 2010 Boston Skillshare, http://www.bostonskillshare.org/2010

workshop title Start and grow an online presence
short name Working the Web

Benjamin Melançon and others from Agaric Design Collective

Learn how to start a free, cheap, or expensive web site; learn how to increase what you can do on the web; learn basic online strategy and resources available.

What are your git shortcuts? Here are mine.

Two whole words were too much for me for the commonly used git commands, so i created three-letter aliases.

Maybe if we share, we won't be utterly useless if we are lucky enough to work on one another's machines when we are forced, unready to fly with our stubby three-letter wings, out of our own nests.

Direct incoming nids to node/nid

A simple module could check for integer in the first part of the argument and send to the node ID for a very simple way of shortening URLs on a Drupal site.

Done (and then some) in Drupal 6 with this module: http://drupal.org/project/shurly

Done in Drupal 7 here: http://www.metaltoad.com/blog/url-shorteners-must-die

Syndicate content