User login

Complete

To be used with care. Pages are complete only when they meet the posting guidelines.

Ask Agaric: Trying to deny access...

Hi there,

I am putting together a site that has very strict access requirements, there must be no access to content beyond the home page by anonymous users. To this end, I removed Anon. User 's access to Node Module content. This does the trick, no access to anonymous. However I was using 'node/1' as the home page which is now access denied :( Changing the access denied page to node/1 doesn't fix the issue either)

Copy (or inherit) taxonomy terms from one node to another

function wsf_action_copy_terms($from_nid, $to_nid, $avoid_race = FALSE) {
// agaric-ben @TODO optimize;
// see http://agaricdesign.com/note/copy-taxonomy-terms-from-one-node-another
  if ($avoid_race) {
    // avoid pseudo race condition from taxonomy_node_get_terms static variable

How to break Drupal's system_settings_form submit handling without trying

UPDATE for Drupal 6: If you provide a submit handler for a drupal_set_form form, you no longer have to add the system handler explicitly too.

The array() silliness at the end is gone, instead #submit itself is a simple, non-associative array.

In Drupal 6, whether the form is handled by the settings page helpful form wrapper or not, all you have to do is tack on another function to call.

Avoiding loopy merges when cleaning up Place vocabularies with Taxonomy Manager

The key to preventing infinite loops in a Place vocabulary, which can be introduced while cleaning it up via Taxonomy Manager, is not to assume that just because something has the name of a country that it is a country.

Users have on occasion mistakenly put a town name in the country field and a country in the town field.

Now, I had already adapted taxonomy manager (via form_alter, without touching the its code, we did it the Drupal way!) to show this information provided by the Place module.

How to make patches that involve multiple files and adding new files

making multiple file patches:

when adding new files, I always used diff -urpN instead of just diff -urp, so that new files are also rolled inside the patch. But please double-check, that no other files got rolled-in accidentally (such as automated back-up files made by some text editors and such).

– JirkaRybka

http://drupal.org/patch

Resolution

Why you should run your own blog (or join a trusted community)

(Also, why you should support the EFF.)

* Between Friends: The Perils of Centralized Blogging

Plotting Making Journalism That Matters, the Silicon Valley sessions, a place of doing

kara andrade 40:17
basically, we need to create our own space in there

40:42
they have NO young people involved

benjamin melançon 4:44
well we have at least one ally in making the gathering in general a place for *doing* not just discussing

kara andrade 4:45
we do

45:08
we have a few

45:14
it's our responsibility to make it a place of doing

benjamin melançon 4:46
so what have you agreed to do for Densmore or proposed to him so far?

Figuring out User-based Node Access in Drupal (again), some notes

Simply looking at this function is one of the most useful things you can do to understand node access control in Drupal. From the 5.3 version of node.module

RE: Node access module (based on users listed in userreference fields)

I created a module (attached, in case you're curious) that's a user reference widget. When placed on a node type, it will hide itself and fill itself in from the URL with the person the request is being made of. When a node with the field on it is submitted, it emails the person.

What I need is a way to allow the user in the user reference field the same rights to the node as the author of the node. So for all access control, they should be treated the same.

Do you think that's something you can / want to do?

Thanks,

Michelle

Usability sponsored by Microsoft with expected results

All set to sign the charter of www.worldusabilityday.org when I noticed this:

Live Webcast Will Close World Usability Day 2007 – Download Required in Advance
Posted: 08 November 2007 at 17:19

Please note: you must download the Microsoft Office Live Meeting Software prior to the webcast. We recommend that you download the software well in advance of the webcast. These instructions (.doc) will guide you through the process.

Syndicate content