category: wordpress


Since this design have been evolving, I wanted a Live Comment Preview so you, the reader, would see the comment show up as you typed it. Now there was a number of plugins that did this. I downloaded and uploaded this one and even after I edited the PHP to format the code correctly, even to use Gravatar, I stepped back just for a moment. I just learned jQuery so there got to be a way to do it. Just as quickly as I had uploaded, I deleted it off the system.

So I did some searching and I found this post on the subject. The idea and concept on the post was good, however it lacked a few things that I required. One of them was formatting the preview to what your “comments” would look like when they were posted and when you removed all the content from the “comment” area the Live Preview stuff was still showing; the live comment area should be removed if we are not entering a comment.

For me, that just doesn’t work. So I went ahead and created by own style and built it in directly to my theme. After a number of tries I came up with code that works out perfectly where it has my formatting in place and also disappears if there is no comment.

Anyway, another win for jQuery (2 – 0, Prototyping) and one more section knocked off the “to-do” list for this theme.


WordPress and Revisions

Posted by Shane

One of the new features of WordPress is the revision storage. Now I am very used to being a revision nut (Being part of the Battlestar Wiki and all..), but one thing Mediawiki excels on and not WordPress is where the revisions are stored.

Mediawiki has a separate database for all revisions which keeps the regular page table clear. (I like to point out I strongly object to Mediawiki coding style also….) WordPress places them inside the “posts” table and this makes it awfully huge. This post now is like post ID #268 even though there are less than 30 posts, 5 pages, and no more than 10 attachments — so far.

So I just cleared out the revisions by using Andrei Neculau SQL statement and it worked perfectly. However,  the next time you read this should be post #30 #32 as I plan on clearing the database and reloading it so the index is correct. If WordPress makes a separate database just for revisions I might re-enable the feature.

Update: After several tries, the database now reflect the correct index numbers as if revisions never existed in the first place.


Welcome back to ‘the rabbit hole’! (redundant I know.. :))

This blog/website way back in the day used to be my little place to express myself, post my projects, and just random stuff that is going on. I figured it was time to bring it back as the site has just been sitting behind the scenes for ages without anything going on.

So expect to see maybe daily updates and major additions to this site in the coming days. If you are visiting right now, you might notice that I am still working on the main design layout. Over the new few hours (maybe a day or two…), I should have the design up and running.

However — I like to point out that the blog will not be the first page that you come to anymore. It will be a portal page that will highlight everything that is going on the website. I might be integrating some Macromedia Flash.

Also if you have been using my “old” email address for this domain, it no longer is valid. You can send an email to it though and it will forward to my new email address.

Anyway, thanks for coming!