User login

How to

Information on how to do something... anything.

MySQL user at any host doesn't work, needs localhost in some local personal computer development environments

Where the user, password, and database are all "xmp".

ben@blackbox:/var/www/xmp$ mysql -u xmp -pxmp xmp < IMPORT_THIS_TO_YOUR_XMP_DB.sql

ERROR 1045 (28000): Access denied for user 'xmp'@'localhost' (using password: YES)

i can't even get that to work

Solution: it was the weird thing where telling it to allow the connection from % (any host) doesn't work when you use localhost

i think I had the problem on XAMPP, and Alan had it on Bitnami or whatever, and now on our Ubuntu box. Very very weird

Allow users to assign issues to other people in the project group (organic groups and project module integration)

Client requests began immediately with the launch of MyAgaric.com running Project module with Organic Groups:

How do I assign a bug to someone else? I would like to assign the "vol in bold" issue to [P].

Here is a first draft of a function used in our project module and organic groups integration.

Following this model which was proposed to add assignment to other CVS account holders on Drupal.org itself:

Adding and modifying organic group action (create content) links

Moshe is a Drupal God. Look at this! There's a hook for everything!

Update for Drupal 6: Enter drupal_alter

<?php
    // Modify these links by reference. If you want control of the whole block, see og_block_details().
    drupal_alter('og_links', $links, $node);
?>

From og.modules own implementation of hook_og_block_details:

<?php
    $links = module_invoke_all('og_create_links', $node);

Image link rollovers for dynamic (user-uploaded) graphics with Drupal and CSS

The goal: a CSS-only rollover graphic that can also be a link that is uploaded by users.

Eliminating other options:

This could be done with JavaScript, but we and the W3C and everyone's sanity would much prefer a pure CSS solution.

Can you have inline styles with pseudo classes (namely, :hover?)

No: http://www.frontpagewebmaster.com/m-351101/tm.htm

Replacing Windows with Ubuntu on an HP Pavilion Entertainment Notebook PC

Installing Ubuntu Hardy Heron on a new HP Pavilion dv6910us

[UPDATE: Wifi issues fixed finally with upgrade to Intrepid Ibix]

could not resolve security.ubuntu.com

At least one other person temporarily got that error back in 2007:
http://ubuntuforums.org/showthread.php?t=441877

http://wicd.sourceforge.net/download.php

Add a span wrapper inside primary and secondary menu links in Drupal 6

This document takes us through the steps of figuring out how some output is produced (without an Integrated Development Environment with debugger) so that we can modify it. Skip straight to Agaric's answer in the resolution at the bottom if that's all you want!

theme_menu_item_link() has no effect on primary / secondary navigation links (at least when printed through the theme, and not as blocks). Which was unexpected.

However, in a Zen subtheme (called examplezen here) the following code produced all kinds of interesting output for node menus and

Building a Zen sub-theme: In shell commands

From the Zen documentation How to build your own sub-theme (6.x), translated into bash commands. The project is called example, and we have installed the zen theme to sites/default/themes.

Someone enterprising could make this into a simple bash script.

UPDATE: Someone did turn this into a bash script that was later incorporated into the docs. Here is a modified version of a more robust script that was posted to Jason Chinn's Magicsparks site:

CVS update, Piston update, and SVN commit of Drupal core upgrade for deployed site

I am not entirely sure Piston provides a vital role here, but for now I'd just like to say it worked!

Here is the very basic test. Ordinarily you wouldn't be updating core immediately after deploying a new site, but unlike me ordinarily you would be paying attention.

Many of these commands produce lots and lots of output which is skipped here, but some of which will be mentioned below for orientation and knowing what to expect. On a test server:

Virtual hosts on Mac OS X Leopard with XAMPP

To set this up with xampp on Mac OS X,

vi /Applications/xampp/etc/httpd.conf

And uncomment:

# Virtual hosts
Include /Applications/xampp/etc/extra/httpd-vhosts.conf

For subsequent additions of named hosts to your Apache configuration, start here:
vi /Applications/xampp/etc/extra/httpd-vhosts.conf

Added (following their dummy-host example quite closely)

Development resource list for making and reviewing patches for Drupal core

Resources to help the development of Drupal core mentioned on the development list:

Main patch and review resource (rewritten by Catch):

http://drupal.org/patch/review

Setting up a test environment to review patches (pointed to by Ryan Cross):
http://drupal.org/node/28245

Syndicate content