Developer blogaroo

Blog

Blog

Importing and Embedding Existing HTML Content into Drupal

Posted in:

This is just a run through list on importing existing HTML content into Drupal.

In my case I have a lot of RTF content that I convert into basic HTML. I then want to import that HTML content into Drupal and incorporate it into the existing site structure.

Collapsing Divs or Why is My Div Height 0 (zero)?

Posted in:

Not coding in CSS on a permanent basis means that there are some things that always trip me up when I flop back into CSS. And 0 height divs are the main offender.

PhpBB 3 Email Notification for Moderation Queue

Posted in:

PhpBB has no option to email moderators with the current status of the moderation queue. The following modified script sends an email with the current mod queue.

Viewing Glyphs for a Particular Font in the OS X Character Viewer

Posted in:

I often want to view font characters such as dingbats that do not map directly to the keyboard. The character viewer is obviously the utility to call upon but I keep forgetting how to display the characters (glyphs to be more accurate) for a particular font.

The solution is simply to select Glyph from the view pop=up menu in the tool bar. The Glyph Catalog will be displayed allowing the glyphs to be displayed for a particular font. The problematic font can be selected and the required glyph inserted.

NSTextView -textDidEndEditing: not sent

Posted in:

I have two sub views that I swap within a view:

NSTextView <=> NSOutlineView

An NSSegmentedControl serves to initiate the subview switching.

My NSTextView delegate responds to :
- (void)textDidEndEditing:(NSNotification *)aNotification

However, if I modify my NSTextView and then switch the views the
-textDidEndEditing: notification is not sent.

Presumably this should be sent when the NSTextView looses first responder status.

Using Git to Manage Drupal Development

Posted in:

We have a Drupal installation with a git repository in the Drupal root folder at .git. Further development is required so we want to clone our repository, make our changes and then push the mods back into the main repository before merging.

The first step is to create a branch, say new-dev, to work on.

Drupal CSS Debugging for Internet Explorer (IE6 and IE7)

Posted in:

IE6 and 7 are the source of trouble as usual.

This is just a basic check list for dealing with this delightful stuff.

  1. Get the Internet Explorer Application Compatibility VPC images for IE6 and IE7 from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=21eabb90-958...
  2. The above images lack the DOM browser known as the Developer Toolbar - get it from here http://www.microsoft.com/downloads/en/confirmation.aspx?familyid=95E06CB.... This DOM browser works in IE6 and 7.

o2 PAYG Broadband on OS X 10.6 Snow Leopard

Posted in:

The o2 mobile broadband PAYG package is appealing but the distributed software dislikes OS X 10.6

There is some guidance from o2 but I found that the MobileConnect app simply could not detect the o2 branded Huwaei device despite the recommended multiple installations of the driver package.

Drupal Template Override not Working

Posted in:

Drupal template overrides only work when a copy of the file being overridden is also present in the same folder as the override template file.

This is documented here http://drupal.org/node/190815#template-suggestions.

Note that this applies to CCK overrides too. So if a CCK template file is overridden you must copy the original CCK template out of the CCK module and into your theme template folder.

Decompiling Flash SWF File and Flashing Tweened Text Issue

Posted in:

A client is refactoring their website and wishes to reutilise some existing Flash movie promotional material.

Syndicate content