Comments Working...

By Timothy R Butler | Posted at 1:29 AM

And you ask what kind of news is that? Comments have been working on asisaid since November 2002, months before it was even asisaid, right? Yes. But they weren't working in my next generation blogging software. Now the software properly retrieves comments from its database — the only thing left to do concerning commenting is setup a way to add new comments.

After I complete that, I may try to write a script to pull the data out of the encoded text files that the blog is in now and move it into the new script's SQL database. Of course, some things are still missing in the new code base — trackback support being the biggest of those features. On the other hand, it supports searching previous posts, which is nice.

At the point that I get the code operational, it will be the first significant modification to my blog's code since the aforementioned addition of comments and a more traditional layout and navigation system two years ago next week. I really need to do this — with the plain text file that stores the actual entries growing to over a megabyte in size, it is no longer efficient by any means. To draw the front page, the script must work through that whole megabyte of entries plus read the complete text of the last 15 posts' comments and trackback files so that it can generate the numbers of comments and trackbacks that go under the title. SQL can do all this much more efficiently.

More importantly, asisaid is going to become a test bed of this software for OfB. In the end I'd like to nuke PHP-Nuke and switch OfB over to this new system as well (for security reasons).

Tags: Comp/Tech

Join the Conversation

8 comments posted so far.

RE: Comments Working...

Sounds cool. :)

You do remember that the journal system is on SourceForge, right? I can give you CVS access. And yes, I’m fully aware that the flat file system is very inefficient. That’s what happens when it’s one of your first real Perl projects. ;)

Posted by Ciaran - Nov 13, 2004 | 8:11 PM- Location: England, UK

RE: Comments Working...

Posted by Ciaran - Nov 13, 2004 | 8:12 PM- Location: England, UK

RE: Comments Working...

Hmm, the preview isn’t quite a full preview, heh.

Posted by Ciaran - Nov 13, 2004 | 8:12 PM- Location: England, UK

RE: Comments Working...

Your journal script is great — I’ve just pushed it beyond the reasonable limits. The new preview mechanism uses the same filtering code that real comments get, btw. :-)

Thanks for the offer of CVS access too! The new script is actually a derivative of SAFARI (of which I made a never released SQL port in 2003) rather than blobjournal, but maybe I can reintegrate some of the commenting code to blobjournal. :-) Ideally, my present project will take what I learned from SAFARI plus what I learned expanding on your script and make a nice hybrid. My goal is to keep SAFARI able to work in its present issue-based format and a blog based format as well.

Once I get done adding new features, I want to revamp some of the old code, which is a bit crude — when I first started writing SAFARI in ‘99, it really stretched the limits of my coding abilities… these days, I see where it needs to be redone. I’m doing the new parts with that in mind, so that I’ll only (hopefully) need to fix some of the older stuff.

Working on any more scripts these days?

Posted by Timothy R. Butler - Nov 14, 2004 | 1:44 AM- Location: Missouri

RE: Comments Working...

This is one of those entries where I nod my head and agree. “Yeah I like that.”

Posted by Christopher - Nov 14, 2004 | 9:33 AM- Location: MO

RE: Comments Working...

Sorry about that Christopher. :-)

Posted by Timothy R. Butler - Nov 15, 2004 | 12:36 AM- Location: MO

RE: Comments Working...

That’s alright. It sounds like things are getting accomplished which is good!

Posted by Christopher - Nov 15, 2004 | 7:46 AM- Location: MO

RE: Comments Working...

Yup, it is! :-)

Posted by Timothy R. Butler - Nov 16, 2004 | 12:39 AM- Location: MO

Create or Sign In to Your Account

Post as a Visitor

:mrgreen: :neutral: :twisted: :arrow: :shock: :smile: :???: :cool: :evil: :grin: :idea: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad: :!: :?:
Remember my information