Archive for April, 2008

26AprAJAX Comments WPMUified 0.2 fix for WordPress 2.5.x

You notice how this plug-in reacts to not filling in all the required fields in a comment form? Seems to inject a little to much back on the page, right? On this site, it even changed the layout from fluid to fixed width because it loaded install.css as well.

Here’s the fix for that:

Open /ajax-comments-wpmuified/ajax-comments/ajax-comments.js

change:
msg = r.substring(r.indexOf('</h1>') + 5, r.indexOf('</body>'));
to
msg = r.substring(r.indexOf('<p>') + 3, r.indexOf('</p>'));

The end.

25AprOperation Aborted in IE7 (WordPress+Lightbox)

I will keep this very short. If you’re getting the “Operation Aborted” message on your WordPress site, it may be related to a Lightbox version with some old world coding.
Just make sure you’re using Lightbox by Rupert Morris.
The offending code in the “bad” version started with:
objBody.appendChild...
This was in the initialize function of the class that loaded along with the script in load-time. In other words, it was attempting to add child nodes to the <body> while the body tag was still being loaded (and had not yet been closed). IE7 apparently really doesn’t like this.




flickr stream

california ufo / drone (raw picture) 4California ufo / drone 3California ufo / drone (taken  at Lake Tahoe using camera phone) 2California ufo / droneTerrometerCalifornia ufo / droneCalifornia ufo / drone 4Drone 2 - blurry

Random Gallery Image

Toronto buildings Shoelaces A future tree Birds Payam on the k2 again Dream Catcher Looks fun Toronto Skyline with Tanin in the foreground

Most Recent

lego-mohammed.jpg mbaside.jpg macessity-laptop-stand.jpg macessity-laptop-stand-messy.jpg

Calendar

May 2008
M T W T F S S
« Apr «-»  
 1234
567891011
12131415161718
19202122232425
262728293031