June 14th, 2006
One of the things I did want to do was modify my WordPress installation so I could upload a dcr file, and also so I could quickly post that dcr so it would show up in a pop up window without me having to enter much info when editing my post. After a bit of research I figured out how to do that (see below about my web-ignorance).
Now, does this work on all browsers/platforms? Will it work with that new M$ security patch in IE6 and the new IE7? Hmm…I think I’ll worry about that at a later time.
To get this to work I edited my header.php file and added this script just after the
</head> tag (via the WordPress > Dashboard > Presentation interface).
function popUpDCRWindow(aW, aH, sW, sH, aFile)
var tmp = newwindow2.document;
tmp.write('<html><head><title>a preview window</title>');
tmp.write('<PARAM NAME="SRC" VALUE="'+aFile+'">');
tmp.write('<EMBED SRC="'+aFile+'" WIDTH='+sW+' HEIGHT='+sH+' TYPE="application/x-director" PLUGINSPAGE=');
When I am writing a post I can upload a dcr file (see prior post about adding file types to WP) and am then presented with the options.
I make the selections shown in the picture, and then ‘Send to editor.’ When I do that I get this placed in the current posting:
<a id="p50" href="http://www.directoratnight.com/wp-content
I make a few quick edits to that and covert it to:
/uploads/2006/06/popup_test.dcr')">Click for pop up window.</a>
Back in the old days of 1993 — 1995 I was pretty good as a web guy. I knew the five or six different things you could do in HTML and by 1995 I could even do Shockwave. Now I’m more or less crushed by HTML. To do nifty stuff you need to know PHP, MySql, CFM, and/or a wealth of other stuff.
Thus, for my web presence I more or less live with things such as WordPress (but still enjoy tinkering with it). The people that work on blogging tools do such a good job that I don’t find it productive to spend my own time on such things, but playing with Director is still fun 🙂
Note: Several lines of the code in this post had breaks put in them for layout.
Entry Filed under: Blog tools