> -----Original Message----- > From: Matthew Eldridge [mailto:31die@Graphics.Stanford.EDU] > Sent: Sunday, November 30, 2003 7:55 PM > To: Nils Blutig > Subject: fun project > > > > The next time you have 5 free minutes, how about grepping through the > MT sources and fixing the comment window so it isn't an unresizable > piece of shit? > >
Well, it really wasn't fun, and it took me twenty minutes to do, but we've all hated this problem since almost the day I installed MoveableType.
So I finally sorted it out. Two steps:
Make the windows resizable
function OpenComments (c) {
window.open(c,
'comments',
'width=800,height=800,scrollbars=yes,resizable=yes,status=yes');
}
Add the "resizable=yes" instruction, and change the dimensions from 480x480 to 800x800.
Do the same thing for the "OpenTrackbacks" function too. It will be found adjacent to the OpenComments function definition.
You'll find these two functions in a couple different templates in your filesystem and database. I'd change the default-templates to these parameters too, so that new blogs will start out correct.
Give the inputs reasonable dimensions
But also, you'll need to edit the three Comment Templates (Listing, Preview, and Eror) and the Individual Archive Template, changing/adding sizes to the URL, Email, and Comments elements
<label for="email" >Email Address:</label><br /> <input id="email" name="email" size=40 /><br /><br /><label for="url">URL:</label><br />
<input id="url" name="url" size=40/><br /><br /><label for="text">Comments:</label><br />
<textarea id="text" name="text" rows="25" cols="90"></textarea><br /><br />
Then of course rebuild everything. This should make your comments and trackbacks much more presentable, and 31die more happy.
==
I suppose the next thing would be to figure out a [code] tag for embedding source code (including html) in blog items without having to replace all the brackets, etc.