Well, things are progressing at least.
I’ve got the code to handle the <%JOURNAL.ARCHIVES> and <%JOURNAL.ARCHIVESL> tags, which are used for including links to old posts. The first has a dropdown box, and the second generates the code for the contents of a dropdown box, but the user has to supply their own <SELECT> code. This makes it much much easier for people to customize the look of the <SELECT> box, since the default code is rather simple.
I am, however, running into a wall: how to get the filename from the combobox? I can do it, of course, but I mean, how do I do it gracefully? The items in the box are nicely formatted, like “November 13, 2002″, whereas the script is looking for something like “20021113″. I think I might have to make an unprettyDate() function that can turn that back into the right format. It should be easy…convert to lowercase, explode it on spaces, and have a giant if statement for the month part. Sigh.
Anyway, yeah. I’m very pleased with the progress. I think I’ll have the rest of the tags implemented by tomorrow, and I’ll get the admin part done (all I need to do is make the template editor and add password protection) by the end of the week. Yippie!
In the real world, I got an A on my psych midterm. I’m so reet.
Comments