MovableBlog: Archives: November 2002
November 29th, 2002
Mood Hack »
This, I have to admit, is a pretty neat idea. I already added smileys using the MTMacros Plugin (and there are ways to add it to the MT-It menu in Windows as well as adding clickable smileys
Posted by Richard at 02:05 PM | Category: MT | TrackBacks (0) | Comments (0)
November 26th, 2002
Fuzzy Time »
Fuzzy timestamps in MT using PHP
Here's an example of how it turns out.
Posted by Richard at 01:43 PM | Category: MT | TrackBacks (0) | Comments (0)
Monthly Category Archives »
Or is that Category Monthly Archives? Anyway, someone asked whether you could have a monthly archive for individual categories, and it seems you can. Then again, it's 3:30 AM, so my mind might have turned out the lights. See my response and help me confirm it a) makes sense and b) actually works.
Update 11:00 AM: so my mind did turn out the lights. Forgot that both templates built the same filenames, one basically overwriting the other. Luckily the person who asked the question is clever and figured out how to have different filenames for the archives on their own.
Posted by Richard at 03:31 AM | Category: MT | TrackBacks (0) | Comments (0)
XHTML Validator Redesign »
The W3 validator has been redesigned, and it makes better use of colours and seems to have streamlined its error messages. I don't think this page will ever validate, but that's because I'm too lazy to use the URL cleaner to clean yucky URLs. And I either didn't hack MT so that my <blockquote> over-use doesn't screw the validation.
If you don't know what I mean by that last bit, don't worry. Neither did I.
Posted by Richard at 12:52 AM | Category: Geekery | Comments (0)
November 23rd, 2002
Custom Tag Buttons in Edit Entry screen »
Adding custom buttons to your Edit Entry screen is a lot easier than I thought would be. First, go to the mt/tmpl/cms directory, and make a backup of edit_entry.tmpl. I did this using the following Unix command:
cp edit_entry.tmpl edit_entry.tmpl.bak
Now, edit edit_entry.tmpl and search for the first occurance of the word "bold". Copy everything from document.write to the semicolon on the same line, paste what you have, and change the "bold" in the new code to whatever tag you want. I did it for blockquote:
document.write('<td width="24"><a href="javascript:formatStr(\'blockquote\')"><img src="/mt/images/blockquote-button.gif" alt="bold" width="24" height="18" border="0"></a></td>');
The hard part is creating individual buttons for each new tag. I created one for blockquote, and you can use the blank image I created .
This'll save you some time if you're too lazy to type in your favourite simple tags (like <small> and <em>) that aren't available by default on the MT Edit Entry screen. Remember when you upgrade that you may need to change your edit_entry.tmpl file again. Also, if your tag needs are a bit more complicated, you may want to investigate the MTMacro plugin. I hear it's pretty good.
Posted by Richard at 07:04 PM | Category: MT | TrackBacks (3) | Comments (3)
November 7th, 2002
Selecting Text Problems in IE 6? »
This is off-topic as far as Movable Type is concerned, but if you're having problems selecting text from your site in Internet Explorer 6, add this code to the first line of your code:
If it gives you a PHP error, add this line instead:
I found this here after searching Google Groups forever, giving up, and trying websites instead.
It works for me (over at China Weblog). Added bonus: it still validates XHTML Transitional 1.0.
Posted by Richard at 01:08 AM | Category: MT | TrackBacks (1) | Comments (8)