• asm2-pcb.jpg

Tech

Right now you're probably thinking, is it technology? technical? techno?

The answer: Yes.

This is the most comprehensive reference on the interweb for all things drupal related, from theming to configuration, custom coding, and even server setup. There's even some stuff on Wordpress...

Well, uh, maybe not the most comprehensive, or comprehensive at all for that matter, but there is some really useful information here, and we are constantly adding more of it.

Some of us more than others...

More tech than you can handle

Updating modules with Drush and Agaric's wrapper scripts

Key words and phrases: 
Drupal shell updating modules
Description & Info: 

cd /sites/PROJECTNAME/www/sites/all/modules/
sudo /srv/scripts/agaric-updatemodule.sh MODULENAME

by Benjamin Melançon
Posted on Sun, 2008-09-07 15:21
in

File uploads and Drupal 5 forms

Key words and phrases: 
FAPI2
Description & Info: 

sudo svn commit -m "uploading images will work so much better with the enctype set"

Allow people to upload user pictures during registration

Key words and phrases: 
Upload user picture during registration add image upload to new user form image picture user picture registration Drupal user picture on registration user picture upload Drupal upload picture registration form register with avatar
Description & Info: 

Well that's annoying.

Spend a good chunk of time creating a module to address a need, return to the thread that's been discussing it since 2006 June to post your efforts and discover it's just been updated to report that the module has been around since 2007 November.

by Benjamin Melançon
Posted on Fri, 2008-09-05 08:35
in

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

Description & Info: 

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

by Benjamin Melançon
Posted on Wed, 2008-09-03 20:03
in

4GB SD card in a Nikon D50 does not work

Key words and phrases: 
Nikon D50 secure digital card CHA
Description & Info: 

"THIS CARD CANNOT BE USED"

I cursed the card that I picked up cheap at instead of my camera

apologies to Taiwan... the 4GB SD card (Secure Digital High Capacity Memory Card) from Taiwan, and more recently Abacus 24-7 didn't work 'cause the Nikon D50 only accepts up to 2GB. Blast.

by Benjamin Melançon
Posted on Tue, 2008-09-02 18:08
in

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

Key words and phrases: 
Organic groups project og gid
Description & Info: 

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:

http://drupal.org/node/253825
http://drupal.org/files/issues/253825_12_drupalorg.patch

Adding and modifying organic group action (create content) links

Key words and phrases: 
og_links_alter now treats projects right (actually og_link_alter)
Description & Info: 

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

From og.modules own implementation of hook_og_block_details:

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

// Modify these links by reference. If you want control of the whole block, see og_block_details().
foreach (module_implements('og_link_alter') AS $module) {

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

Key words and phrases: 
rollover with dynamic graphics jquery rollover drupal User-uploaded images for rollover links "css rollover without background" drupal add css from a theme Drupal user-uploaded graphics for rollover user-provided rollover graphics rollover link for Drupal uploaded image files
Description & Info: 

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

From http://www.christianmontoya.com/2006/02/01/pure-css-image-rollover/

by Benjamin Melançon
Posted on Mon, 2008-09-01 10:31
in

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

Key words and phrases: 
span wrapper for primary links make tab-style links for main navigation menu
Description & Info: 

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!

All I want to do is throw spans around the links. Ah well. Here is the function below, modified to do exactly that.

It will do it to all sets of links passed through theme('links', $links) but so far on Agaric's example site, at least, that means only the primary links.

<?php
function examplezen_links($links, $attributes = array('class' => 'links')) {

by Benjamin Melançon
Posted on Fri, 2008-08-29 08:48
in

Building a Zen sub-theme: In shell commands

Key words and phrases: 
bash shell terminal command line make a Zen subtheme sub Zen theme for Drupal via command line
Description & Info: 

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.


cd /sites/example/www/sites/default/themes
sudo cp -pr zen/STARTERKIT/ example_zen

by Benjamin Melançon
Posted on Thu, 2008-08-28 18:39
in