User login

Benjamin Melançon

Check for duplicate titles of a node with AJAX to warn immediately before entering more data or submitting

Attached is a custom module that piggybacks on Unique Field and steals most of its other code from username_checkUsername Check.

Commit message: "Working Unique Field AJAX enhancement for node titles. Pretty sweet. It doesn't take away the duplicate warning when you change the title to not be duplicate, but it does change to a green checkmark (courtesy of the username_check module from which I also stole most of the code)."

Below, tales from

See all path aliases for a node

Now a module! http://drupal.org/project/showaliases

drupal show all paths
drupal show all paths for a node
show alias
aliases
paths
drupal module list aliases

Show path aliases to nodes in other languages
http://groups.drupal.org/node/24171

Clean up and rationalize Drupal core Taxonomy Term Add and Edit form

I can't believe no one has done this!

Simplify the taxonomy interface for administrators by removing the taxonomy related terms box...

drupal taxonomy hide related terms
drupal form tweaks remove related terms

The commit message upon completion...

"Clean taxonomy term add / edit form by removing related terms and moving parents from the closed advanced fieldset to the open identification fieldset if the vocabulary has already been made hierarchical."

And the code:

Maintaining a module on Drupal.org with CVS: committing changes

This is for a module where the current version's code is in HEAD and we aren't going to do any branching.

(agc is an agaric-specific helper script.)

agc entreztest NEW
cd drupal/
cd sites/all/modules/
mkdir entrez
export CVSROOT=:pserver:[email protected]:/cvs/drupal-contrib
cvs login
cvs co -d entrez contributions/modules/entrez
cd entrez/

Remove page headline for a given content type

To remove the page title (the one that prints in the page itself, not in the browser bar) for a specific node type, use this simple code in your template_preprocess_page() function.

Make sure you wrap the code that outputs the header in page.tpl.php in a conditional if statement, so that if there is no title it does not output the <h1></h1> tags.

This code goes in template.php of a theme named "example":

Wireless router connection failing to establish with Windows Vista

Best solution to this problem: Dump Vista and Windows entirely.

But if you can't switch to Ubuntu or something reasonable quite yet, and Windows Vista is telling you your wireless network passkey, passphrase, or password is incorrect when you know it's not...

Show authors of all revisions on an article of content

Searched Words: drupal show authors of all node revisions multiple contributing users

Related how to for Drupal 5:
Adding 'Last edited by name some time ago' information
http://11heavens.com/adding-last-edited-by-name-some-time-ago-info-to-node

How to call the path to theme from within the theme (and why)

We had a site that occasionally generated page not found errors for ie6_fixes.css. Occasionally, we realized, because this file was only sought by browsers following the hide-from-everything-except Internet Explorer 6 code. The file was then not being found because the name of the whole theme had changed, and the existing template had hard-coded in not just the location but also the name of the theme.

Changed in page.tpl.php (and all variations such as page-front.tpl.php and page-node-4.tpl.php:
@import "/sites/default/themes/jonas_theme/ie6_fixes.css";

ProxyCommand error

This week's lesson in internet connectivity is a variation of the classic debugging best practice blame yourself first.

Attempting to ssh into server dev.example.org set up in .ssh/config as "example" with

ssh example</a> resulted in:

<output>
/usr/bin/netcat: No such file or directory
ssh_exchange_identification: Connection closed by remote host
</output>

This error was not caused by the far-off server i was trying to reach, but by our intermediary server being used to do the proxy.

Syndicate content