Articles RSS Feed

Blite Blog

Blite : a lightweight blog app

Blite 0.1-beta4 Available

Posted 17 Apr 2012, 5:06 pm in Blite Development

This beta is now obsolete and should not be used.

With this beta I'm done (for now) with major code changes. I'm hoping to fix whatever bugs are found and declare it v 0.1 final.

Changes

  • Total post count (used to build pagination) should not include retracted and draft posts.
  • Use htmlspecialchars() before loading post title into editing form.
  • Make comment form set cookies for guest name, email, web address.
  • Fix more PHP notices.
  • CSS changes for <code> in themes. Forcing it to a block-level element is a bad idea :(
  • Bind sqlite query parameters to the prepared statement.
  • Wrap sqlite functions in custom functions as first step towards mysql support.
  • Clean up old code made obsolete by use of sql prepared statements.
  • Rewrite valid_email() function to use PHP filter_var() :)
15 Comments
Comments RSS Feed
Nick:
Congrats. Let the beta testing begin :D
17 Apr 2012, 5:40 pm · Permalink
Gonna try this one out I think ;)
17 Apr 2012, 7:05 pm · Permalink
Found a few 'bugs'.
See http://blog.vandorp.biz

1) named the blog "Daniel's blog." but settings says its Daniel (dislikes the comma apparently)
2) My layout seems messed up? Don't know why that is. Default seems messed up too :(

EDIT: it was because I typed this:
test
17 Apr 2012, 7:31 pm · Permalink
djvdorp wrote:
Found a few 'bugs'.
See http://blog.vandorp.biz

1) named the blog "Daniel's blog." but settings says its Daniel (dislikes the comma apparently)
2) My layout seems messed up? Don't know why that is. Default seems messed up too :(

EDIT: it was because I typed this:
test


But with . instead of the bold closing tag
so like [b]test[/b. but with hacky braces
17 Apr 2012, 7:35 pm · Permalink
Nick:
How to upgrade?
17 Apr 2012, 7:41 pm · Permalink
Doug:
Use HTML code tag to show code unrendered, like <b>test</b>.

There's some php code in the clean_blogpost() function at the bottom of post.php that uses the php dom to cleanup your html, but I left it commented out for now....
17 Apr 2012, 7:42 pm · Permalink
Doug wrote:
Use HTML code tag to show code unrendered, like <b>test</b>.

There's some php code in the clean_blogpost() function at the bottom of post.php that uses the php dom to cleanup your html, but I left it commented out for now....

ah okay, I meant i typed this:
<b>test</b. and it ripped the design apart :P

and the other one:
See http://blog.vandorp.biz

1) named the blog "Daniel's blog." but settings says its Daniel (dislikes the comma apparently)

please delete my other 2 comments which failed pretty badly :[
17 Apr 2012, 7:46 pm · Permalink
Doug:
Yeah, I saw it :) I think the php dom would've fixed it -- at least enough to keep the page intact.
17 Apr 2012, 7:48 pm · Permalink
Doug:
Nick wrote:
How to upgrade?

Forgot the install/upgrade links in the post. Edited now....
17 Apr 2012, 7:49 pm · Permalink
Doug:
djvdorp wrote:
named the blog "Daniel's blog." but settings says its Daniel (dislikes the comma apparently)

Bug. I forgot htmlspecialchars (again).
17 Apr 2012, 7:52 pm · Permalink
Looks awesome! Just installed it to play around with and the only thing I've noticed is that the admin pages are caching and hard to use (I need to force refresh to see my changes). Any chance of preventing caching of those pages?
19 Apr 2012, 9:37 am · Permalink
Doug:
Have at look in init.php, just below session_start(), there's two lines that unset cache control headers. Comment them out :)

FWIW, the admin pages don't cache fo me. Probably browser-related, needs investigating... :)
19 Apr 2012, 1:17 pm · Permalink
I was looking for a simple blog system that was easy to integrate into my website. Blite fits the bill perfectly. Keep up the good work!
20 Apr 2012, 7:32 am · Permalink
Nick:
Doug when there isn't a configure.php file it should probably display an error. Don't hurry to release the 0.1 version. Ensure there are no bugs first. Make the bug tracker etc.
20 Apr 2012, 4:43 pm · Permalink
Doug:
Nick wrote:
Doug when there isn't a configure.php file it should probably display an error. Don't hurry to release the 0.1 version. Ensure there are no bugs first. Make the bug tracker etc.

Good point. Added to the to-do list.

And don't worry, I'm not gonna rush a release. I can see a beta 5 on the horizon :)
21 Apr 2012, 4:39 pm · Permalink
Comments are closed for this post.