The firegrid Blog. Thoughts, humour, ranting and general randomness. Wowzers!


Show all  (123 Posts)
Design and Graphics  (4 Posts)
Gaming  (24 Posts)
Humour  (18 Posts)
Internet and Technology  (16 Posts)
Personal  (14 Posts)
Random Stuff  (18 Posts)
Website News  (29 Posts)
Tue 5th February 2008

Streamlined Blog Code

Filed under: Website News

I noticed a bug in the Blog code earlier related to the Pagination when viewing filtered blog posts.

If, for example, you click a category link with 3 posts in it, the Pagination would report a second page, because the total blog posts in the database exceeded the limit of 10 per page.

While fixing this, I noticed a schoolboy error with the display code, and cannot believe what a nub nub I've been.  I've totally streamlined the blog code now reducing the file size from a rather massive 31'640 bytes down a to a much more respectable 17'951 bytes.

Hoorah to me and apologies for the geeky post.  On a scale of 1 to 10, this must reach a 7 on the geekometer.

There are currently no comments for this article.
Add a comment to this article
Email Address (Not Published)
Website (Optional)