User login

How to

Information on how to do something... anything.

Updating old Agaric projects to new Rake system

Superseded, see setting up new Ubuntu computer Agaric style.

This is Agaric internal documentation, related to Deploying the Agaric Way. Make sure that you have a checkout of the siteproj 'base' project. If not, git clone it into your file system.

These instructions should be good for all legacy projects:

Redirect multiple domain names to single canonical domain for your site

This Apache rule describes how to have all selected domains and subdomains for a site come up in the site visitor's browser address bar as your one chosen canonical domain.

Here is an all-in-one-line approach:

Drush database commands

Update: See http://data.agaric.com/use-drush-sync-database-from-one-site-another

[Note: currently written mostly from memory after using the commands, not copy-pasting proven commands as i usually do]

How to become a channel operator

in

How to become (or make someone else) a channel operator, for a channel you have registered: use the form "/msg chanserv op #chatroom nickname", for instance:

/msg chanserv op #agaric ben-agaric

This will op people in channels where you have this permission, which would seem to include unofficial channels.

For registered channels you have to be the one who registered (or maybe other things), and you need to be a registered user yourself.

Creating a Subtheme in Drupal 7

Bear with us, and Drupal 7. There are some non-intuitive steps in the subtheming, but the power, simplicity of modifying, and relative ease of upgrading is worth it.

Drupal Community Participation Resources

Initial Drupal community experiences and getting past the "I suck" threshold

Includes an excellent drawing representing her first five minutes in the Drupal community, which is almost everyone's first experience on IRC:

Diaries of a Core Maintainer #6: A tale of two developers

A groups.drupal.org wiki page that needs a lot of love:
How to make it possible to contribute to the Drupal project with small tasks in a few minutes?

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":

Select multiple users to delete sorted by registration date and with one profile field (Drupal 4.7)

Side note: Deleting directly with MySQL:
DELETE p, u FROM dru_profile_values p LEFT JOIN dru_users u ON p.uid = u.uid WHERE u.created > 1317450417

On to the long obsolete main show:

If you are unfortunate enough to be doing anything on Drupal 4.7, here is a bit of empathy.

If you have a 4.7 site, it probably has a lot of spam registrations. Drupal 4.7 doesn't have a multiple user delete. And Userplus module doesn't provide a very useful list in its multiple user delete.

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";

Creating a patch with Git suitable for submitting to Drupal.org

Take the hash of a 'before' commit and the 'after' commit 'sha' hash and stay relative to the current directory and output a patch:

~/code/dgd7/drupal/sites/all/modules/views$ git diff --relative 5ac40a1 cb64d08 > 817748-views-book-hierarchy-sort-12.patch

If you've merely made the changes but not committed them you can use git diff > patch_name-1234-57.patch or if you've staged but not committed you can use git diff --cached patch_name-1234-57.patch.

Syndicate content