Needs Improvement

Partial Install Profiles

Description & Info: 

Agaric wants configuration profiles, that potentially can be combined, as well as applied later than the original installation.

And it seems like we can have it!

- ben

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"

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

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

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

Description & Info: 

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.

by Benjamin Melançon
Posted on Thu, 2008-08-28 15:45
in