User login

How to

Information on how to do something... anything.

Ask Agaric: User registration is disabled? How can I let people sign up?

Guys, I just did a big mail out telling people to post their ideas on
our website and then found that new users can't sign up without an
invite? "Sorry, new user registration by invite only."

This is making us look really bad - inviting participation but not
allowing it!

I don't know why this is set up to block new users, but please fix this
ASAP.

thanks,
Steve

You can pass part of an array variable by reference in PHP5

Pretty nifty. PHP5 (and PHP4 for all I know) lets you pass not merely an entire variable, but part of a variable that is an array (and has nested arrays). Passing a variable by reference allows you to make changes directly to that variable in a function without having to figure out how to add those changes back-- the changes are made in the original variable, not in a copy (which is how variables passed to a function typically operate).

Example number one: $form['taxonomy']

Copy a worklow-ng workflow to do same actions on create content as update

Workflow-ng has no duplicate functionality at this time, nor can you have it triggered on two or more events (or even edit the event). However, you can export the current set-up (configuration) that you like.

From the export tab: admin/build/workflow-ng/0/export

How to make a simple checkbox in CCK

To make a simple, single checkbox with a CCK field, Agaric thinks the best approach is:

admin/content/type/your_content_type

Add Field

Integer

Give it a label (this is not what will appear next to your checkbox; it is what will be used as a title above it)

Single on/off checkbox

The key is the allowed values list– you need two:

0|Check this box to fill out a profile for another organization you represent.
1|Check this box to fill out a profile for another organization you represent.

How to make patch files to contribute to contributed modules

These instructions assume a GNU-Linux, Mac OS X, or other UNIX-y computing environment.

Follow these instructions for using CVS:

http://drupal.org/patch/create

However, if you are making a patch for a contributed module rather than Drupal core, going to the Drupal root directory doesn't make sense.

How to apply a patch to a Drupal module

Following the Drupal documentation on applying patches.

The module localization client, originally developed for Drupal 6, needs a patch to the Drupal core module, locale (note that while locale is core it is also optional and disabled by default).

Skip validation for a form element in Drupal

// we have to get out of validation somehow
// we have to get out of validation for an associated group somehow

You must join a group before posting on this web site.

Well, the nuclear option on case 'action_node_form': in my implementation of hook_form_alter works:

        $form['#validate'] = array();

Now is there a way to just skip, or preset, validation for one item in the form array?

drupal

Linking to other content on a multilingual site

"Also... how do I link a page I created in another page?"

For linking to other content on the site, I wanted to research what's best on a multilingual site, and haven't had a chance yet. But I'm fairly certain the best way is to do it directly to the node in the relevant language (in Drupal 5 each translation gets its own node, sadly) and to skip the language prefix.

Syndicate content