User login

Complete

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

Check out Drupal version to a specific directory from CVS

Check out Drupal 5 to a directory called "drupal5" -- note the use of the -r and -d flags, and the final drupal is not the directory you put it in, but the directory you are getting it from on Drupal.org!

Current model for getting core for Agaric's centrally managed system:

cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co -r DRUPAL-5-9 -d drupal-5 drupal

And then update to version numbers:

cvs update -r DRUPAL-6-5 -dP

OpenLazslo DrupalCon Boston Session notes

First half of OpenLaszlo and Jquery session:

boston2008.drupalcon

LSZ code

can get XML out of Drupal pretty easily
1. write a custom query
2. phptemplate
3. Views
(both grand hacks, but really useful)
4. services

Useful for more than Laszlo

PHPTemplate method

if ($node->type == 'xml' && $_GET['xml'] == 'true') {

exit;
}

You need to know about exit for XML.

You can't return anything.

Views method

Views is way more flexible

Grrrr, stupid white man

In the Future of Fields session, there were a couple questions asked before the sessions period.

The moderator cut off an Indian woman who had also gotten up to ask a question.

At a conference 98 percent male and just as white you do not cut off the Indian woman who stands up to ask a question.

Period.

White screen of death on MAMP: increasing memory limit in php.ini

In MAMP, php.ini for PHP5 often needs to be edited because it is set to only 8MB by default, leading to white screen of death. It is found here (using Terminal or iTerm):

vi /Applications/MAMP/conf/php5/php.ini

And in Vi you can search for memory limit by typing /memory, and i to start editing text.

You can then go to the MAMP application and stop servers and start them again.

(Posted as comment to handbook here.)

Display a Drupal login form anywhere with PHP, including in page content

Update: I gave slightly incorrect code, I'm pretty sure swapping out 'user_register' to put in 'user_login' will work just fine:

dan hak 3:08
whats the code for the login block

benjamin melançon 3:09

Set a default value for a CCK checkbox

Resolution: this is built into the field configuration GUI (graphical user interface)! Right under "Label." No need for anything fancy. I am a failure as a Drupal expert.

no working answer:

Default value for CCK Check box field
http://drupal.org/node/200486

Example for allowed values php code?
http://drupal.org/node/125464

GetID3 Library placement for Emfield Module

getid3 library not found error...
http://drupal.org/node/120970

This really should be configurable in the module, but to work around this and put it (or make it appear) to be where it wants it--

(after aptitude install php-getid3)

cd /your/drupal_root/misc
sudo mkdir lib
sudo mkdir getid3
sudo ln -s /usr/share/php-getid3/ getid3

Resolution

Exclude the results of a one-node view from another view (the Featured Feature problem)

Drupal 6 Views 2 has an offset modifier to the "Items to display" property which should make doing this dead simple; just create two displays of the same view with different settings for these two options.

Scroll way down for the resolution in Drupal 5:

Hat tip to:
http://drupal.org/node/131482

dan hak 3:45
featured view shows latest feature only
other one shows everything
all featured are in the everything vocab too

Syndicate content