Category: Web Building

Upgrade your Subcategories Plugin

A few days ago, I deleted 2 MovableType categories that did not have any entries in them. The next time I tried to publish an entry, I got this error:


Can't call method "label" without a package or object reference at plugins/sub_cats.pl line 67

It turns out that the Subcategories plugin could not deal with non-continuous numbering of category id’s. Deleting the two categories caused gaps at #3, and #11.

I did a quick search and came up with this page:
Comments on SubCategories version 0.2.1

Continue reading

Accessing the main timeline from a loaded SWF on another level.

I have a flash file which loads an external SWF (call it external.swf) into the main timeline, on level 10. In this case, using _root or _parent to call the symbols on the main timeline will not work, since _root or _parent would refer to items on _level10.

The main timeline also contains a movie clip called “swapColors_mc” with two frames called “red” and green”.

To control the color change of swapColors_mc by clicking a button in external.swf once it is loaded, open “external.fla” (the original flash file from which external.swf is created) and add this actionscrip to the button:


on (release) {
_level0.swapColors_mc.gotoAndPlay("green");
}

Continue reading

Drupal: Suggestions for improving Drupal’s Book Module – Part 2: Navigation

1. Navigation should be visible most of the time. The first time I looked through a book created with the Drupal’s book module, I recall being confused about how to proceed through the document. My confusion resulted from starting on a long page, so that the “previous/up/next” navigation had fallen below the “fold.” Since I was new to Drupal-based books, I wasn’t even aware it was there.


A long page where navigation has dropped below the fold.

The only other visible navigation which was relevant to the book was the breadcrumb trail at the top of the page, which allows the reader to jump “up” a level but not backwards and forwards between pages of a chapter.

I did figure the system out within a few minutes, but I’ve watched others who are less interested in “figuring things out” attempt fruitlessly to find their way around such issues, and pretty much give up. It is amazing how people don’t think to look around the page, or having looked, misunderstand what they are seeing.

Continue reading

Suggestions for Improving Drupal’s Book Module – Part 1: Administration

Note: a wiki containing this article and many other more in-depth discussions of drupal usability is HERE

A while back I promised to write up some suggestions for improving the book module. I finally got some time, so here they are. I’m posting this here because as far as I know, the drupal.org forums don’t yet allow images to be posted.

I am mostly interested in improving the navigation for the end user of drupal-based books, but I will start with my suggestions for changing the administration of books. Navigation suggestions will follow in another post.

1. When you browse to any page of a book, and click “administer,” you go to the editing screen for that one page.

At the very bottom of the editing screen, there is a button “Edit book outline” that allows you to administer the relationship of that one page to the outline of the rest of the book.
takes you to:

Continue reading

The Problem with Slashdot and other web archives

Something that’s been kicking around in my head for a while, is the fact that I find most large web archives and blogs frustrating to various degrees. Including my own site!

The frustration has to do with what I would call, the “opacity” of sites to browsing, to discovery of information you do not know is there, and could not find because you aren’t searching for it directly. There are times I am in search of “information inspiration”- the serendipitous discovery of what I really wanted to know but didn’t know it.

Of course many sites have great search engines, and categorize articles by topic. But I feel that doesn’t go far enough. There are times when I am not even aware of the right WORD to describe a concept, but could recognize articles associated with it if I scanned them for a second or two. Or I am aware of the right word, but want some way to find ideas related to it serendipitously. This is what I call information inspiration.

Slashdot (and many other news sites and blogs) are date oriented. What happens to the articles after their moment in the sun, though is that they become increasingly buried. If you browse by topic, you still are unlikely to see them, since there are so many under each topic. Slashdot’s design discourages searching for topics.

First I have to say: don’t get me wrong. This is not meant as a critique of Slashdot per se: I LOVE Slashdot. I read it every day, and have for years. However, I feel like something is missing in general from our arsenal of navigation techniques on the web, so I am using Slashdot as an example here.

Continue reading

A Browser Sniffer/Screen Resolution Sniffer that swaps stylesheets

This is based on two javascripts, combined. This script contains a browser sniffer that will test for Mac or PC, and will also test if the PC is 800×600 or a higher resolution. I figure most macs are set to a decent resolution, but have found much to my dismay that many PC’s here are still set to 1997 standards.

This will swap style sheets depending on what is “sniffed”.

I’ve included the locations for the original scripts, which contain other options you may wish to include.

Continue reading

Alphabetical Title Browser for Drupal

Note: See also PHP Alternating Color Table Rows for Drupal or Dreamweaver sites

I needed an alphabetical browser of all published nodes, and couldn’t figure out how to do it using existing Drupal tools, so created one in Dreamweaver and made a static page out of it. Maybe someone can make a Drupal module out of? it. It needs at least four big improvements that I can think of –

1. The Dreamweaver connection code needs to be Drupal-ized
2. It is written in the backwards Dreamweaver way – the php gets inserted into the html, rather than having the php output the html as part of the stream of code.
3. It needs to have the alternating table rows
4. It needs to be paged, when the list gets too long.

Continue reading