User login

Drupal Development

Possible to accidentally replace entered text with undefined from Drupal's autocomplete

Anyone else notice that on free tagging vocabularies, when no result comes up but you press the down arrow anyway, your text can be replaced wih 'undefined'?

Update: I think this piece in misc/autocomplete.js is working fine:

 
  // If no value in the textfield, do not show the popup.
  if (!this.input.value.length) {
    return false;
  }

The creation of the pop-up is probably earlier than it has to be, maybe it can be called earlier.

Resolution

Replace access denied on user/register for logged-in users with a redirect

Best resource on this that I've found:

logged-in user + /user/register -> access denied
http://drupal.org/node/118498

There's no reason for this-- even user #1 gets access denied here, and users who could go to admin/user/user/create -- access denied might be technically correct, you can't re-register, but it's nonsensical and annoying.

Parse error and other problems with include file- due to bad encoding or something

Parse error: syntax error, unexpected $end in /Users/ben/workspace/repos/agaric/agaric-modules/place/5/place/taxonomy_location/taxonomy_location_admin.inc on line 1

renamed file and started a new one with Mac line endings instead of Unix:

evil_textwrangler-inserted-bad-characters-taxonomy_location_admin.inc

The new file worked. But very soon, a new problem:

Pathauto integration for Place

Place and/or taxonomy_location should be integrated with pathauto, see for inspiration: http://drupal.org/project/pathauto_extension (which originally added location options to pathauto as another module and is now being merged into it as a patch.)

Resolution

Drush: a love story

Thanks to Moshe Weitzman at the latest Drupal Groups Boston meetup, Agaric was introduced, formally, to Drush. Although our paths had crossed in the crowds of modules before, this time it was love at first site.

Here's the first date.

Checked out Drush to the sites/all/modules directory. We expect this to be the last time we have to do this!

Asking for help on maps

To http://www.greenmap.org/

Dear Green Maps,

I'm with a group working on the World Social Forum 2008 global call for
local action web site, and we were wondering if you had any advice /
resources / ability to help available on the mapping side.

For instance, we haven't figured out yet how to show all nodes even when at
a distant zoom. The other thing we need to do is throw in short
descriptions etc. in that pop-up, but haven't gotten to trying that yet.

Taxonomy location: what's been done?

Taxonomy-based location. What's been done? Precious little.

Aaron Pratt talked about it is 2007, Spring:

Assign Taxonomy Term Based On City, Using Location module
http://drupal.org/node/153940

Slavica Jones talked about it -- sounds more like the not-yet existent taxonomy module, ultimately -- in 2003:

Do not display log message

Do not show the log message input box, "An explanation of the additions or updates being made to help other authors understand your motivations."

oh well... form_alter can do it.

http://api.drupal.org/api/function/node_form/5

Now implemented in Agaric Design Collective's form_tweak module (not released on drupal.org yet, as I'm not sure about the protocol of modules you have to edit source code to use)

Set weight of a Drupal module

for setting the weight of any module, as the Drupal saying goes, there's a module for that:

http://drupal.org/project/moduleweight

You can also edit the weight in the {system} table directly (and see what other modules have been set to, sorting by the weight column in phpMyAdmin).

But what about a way to set the weight of your module inside your module with code? Of course there is:

Syndicate content