June 13, 2006

Minxlets June 13 Edition

What's new in Minx today? Well, I cleaned up the code, splitting up a big chunk of code into nice, easy-to-manage procedures... and breaking everything in the process. Then I fixed that, which got me back to where I started, function-wise.

Added smilie support. You can see that in action now. See: :) :D ;)

You can configure any smilies you want using your mxSmilies template:

Smilies Template
:) <img src="http://www.mu.nu/Forums/images/smiles/orange_smile.gif">
:( <img src="http://www.mu.nu/Forums/images/smiles/orange_sad.gif">
:-) <img src="http://www.mu.nu/Forums/images/smiles/orange_smile.gif">
:D <img src="http://www.mu.nu/Forums/images/smiles/orange_biggrin.gif">
:p <img src="http://www.mu.nu/Forums/images/smiles/orange_razz.gif">
:-p <img src="http://www.mu.nu/Forums/images/smiles/orange_razz.gif">
:P <img src="http://www.mu.nu/Forums/images/smiles/orange_razz.gif">
:-P <img src="http://www.mu.nu/Forums/images/smiles/orange_razz.gif">
;) <img src="http://www.mu.nu/Forums/images/smiles/orange_wink.gif">
Just put the smilie code, for example, :), followed by a space, and then the img tag that will replace it. One smilie to a line, please!

Added gzip support. This makes pages download faster - 10 milliseconds of compressing can reduce the HTML file to one quarter the original size. As far as I know, all current browsers - Internet Explorer, Mozilla, Firefox, Safari, Opera and Konqueror at least - support this. It also saves bandwidth on the server, which means we can host more blogs at munu without sending Pixy bankrupt.

Working on form processing. Currently the comment entry and search routines are separate programs; I'm merging them into the main program and adding full template support for both forms and form results. That will probably be in place tomorrow.

Also, something I did yesterday that you might not have noticed yet: If you are logged in to Movable Type at blog2.mu.nu, Minx can now pick up your login, and confirm that it is valid against the MT password file. This means that Minx and Movable Type can share logins. Also, since Minx knows you're logged in even when you're just reading the blog, it lets me do things like allowing users to edit comments. No more oopsie, I made a typo and now I'm stuck with it - you can go back and fix it. Well, right now you can't, but tomorrrow for sure.

I was digging around in the code for the first version of Minx (or possibly the 0.2 or 0.3 version; I can't remember which is which) and found that I had already written a much more powerful conditional processing system that is 95% compatible with the new template engine, so I'm going to patch that in as well.

That's all for Minx for today; see you all tomorrow. I'm off to watch cartoons on my new TV.

Oh, that's the other thing I was doing: A database wrapper that tracks the number of queries executed, the time each one takes, and the number of records returned. Useful for tuning your templates and for automatically aborting templates that run out of control.

Posted by Pixy Misa at June 13, 2006 01:25 PM | TrackBack
Comments
Live Comment Preview
Post a comment









Remember personal info?