User login

Benjamin Melançon

Emfield video thumbnails disappearing

This is incorrect

Just update to the latest version. See http://data.agaric.com/raw/druplicon-feature-embedded-media-field-overlay-post for the fun story behind it.

Emfield module must be configured to have a custom directory to store its thumbnails in, otherwise the thumbnails are put in sites/default/files as temporary files (status zero), and are cleared out when cron runs.

DrupalCon Chicago Session Proposal

Read first: http://chicago2011.drupal.org/speaker-faq

http://chicago2011.drupal.org/speaker-application

Title of session: When There's Not a Module for That: Building a Drupal 7 Module
Track: Code
Experience: Intermediate

Upgrading from Drupal 7 alpha 6 to Drupal 7 beta 2

This isn't pretty. And i've probably left out a critical step.

Core concepts: making some changes directly in the database. Enabling head2head and alpha2alpha in the database (setting both status and schema_version). Manually commenting out the update hooks that i did in the database to make user module's updates work so that alpha2alpha's can work.

Setting the line in alpha2alpha.module to give the current version:

<?php
  $version = variable_get('alpha2alpha_version', 7);
?>

Drupal Work Collective Book Sprint Cape Cod II

Drupal Work Collective plans.

Materials:

Power strip (ben)
Power squid (dan)
More powerful wifi (dan ben - not sure if it's good enough though)

Food:

Bring from Agaric HQ North Natick:

See Drupal 7 permissions internal system names

Asked in IRC #drupal

has anyone made a Drupal 7 module for seeing the system names for all permissions? (now the Permissions UI uses human-friendly names and descriptions)

No response.

Update: This has been incorporated into Xray.

Marginalia

In searching for the perfect name for my dreamed-for annotation module, i found Marginalia. And through the name, i found a JavaScript tool already built to do it!

http://webmarginalia.net/

The search is over:
http://en.wikipedia.org/wiki/Marginalia

RDFa for telephone, IRC links that open, and other spiffiness for Agaric's client support page

RDFa-ing up our support page.

http://www.w3.org/TR/xhtml-rdfa-primer/

recommends FOAF for most contact stuff, and there is a FOAF:Organization for companies and weird hybrid collective

The tel URI for Telephone Numbers
http://tools.ietf.org/html/rfc3966

Must use ->fields() method in select statements in Drupal 7 database layer (DBTNG)

An error like this one:

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM block block WHERE (theme = 'bartik')' at line 1: SELECT FROM {block} block WHERE (theme = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => bartik ) in xray_block_statistics() (line 80 of /home/ben/workspace/dgd7all/sites/default/modules/xray/xray.module).

Stumbling through DBTNG, Drupal 7's new database layer

Order matters. condition() before countQuery()

This fails (note it trying to do a subquery):

<?php
return db_select('block')->countQuery()->condition('theme', $theme)->execute()->fetchField();
?>

Prevent LibreOffice/OpenOffice from splitting a string of text on symbols in the text

OpenOffice was insisting on splitting a line a string of text !$has_money between the exclamation point and the dollar sign.

As far as i can tell the only solution is to insert a special character, the "zero-width non-breaking space": U+FEFF.

It's something like fifth from last when using the insert special character dialog.

Syndicate content