Categories
b2

New b2 snapshot release

This release is a must-have for anyone running b2++ as it fixes a major bug in the b2options.php page. Thanks to Andreas Banze for finding that one!

Categories
b2

b2 plugin support

On the b2 forums there are plenty of hacks and enhancements to b2. While there are guidelines to writing hacks they’re informal, and many hacks rely on changing existing code.
I’m using the Smarty plugins support to provide a consistent and documented way of writing plugins.
I created a simple “googleit” function already. It’s integrated into the post.tpl template of this blog and provides the “Search” link you see below.
Using Smarty plugins is easy. You create your function, call it a predictable name (smarty_function_name() where name is “googleit” for example), put it into a file and drop that file into the plugins directory.

The usual advantage of using Smarty caching applies here too. Once it’s cached the plugin isn’t loaded again until it’s called so you can drop as many plugins as you like into the plugin directory without suffering any speed loss!

Categories
b2

Read more javascript hack

This is a nice b2 hack I’d like to use in b2++. The demo is quite effective!
Once the plugin system is made I can simply drop this into a file, add a “jsmore” tag to the post template and it’ll be active 🙂

Categories
b2

Good weekend?

This is just a ping so you know I’m alive. It was a bank holiday weekend here in Ireland so the whole country basically goes gaga for a few days. I haven’t been online since Thursday (5 minutes in an Internet Cafe in Kilkenny doesn’t count!) but a lot’s happened since.
I Smartyised the b2rdf xml feed. It’s not live here yet, but it will be soon. I think I should create a seperate templates folder for xml stuff, as users really don’t have any need to edit those files.
I thought about a rewrite of b2 yesterday. In a reply to another query I laid out some of my plans here on the b2 forums.

Categories
b2

b2 comments and new release

I tracked down several bugs last night in b2. It took an age, and one of them was so obscure it was lucky that I found it sooner rather than later!
I’ve also decided to rename this project b2++ as the addition of Smarty templates is only one of the enhancements I’ve brought to b2.
I’m away for a few days but you can expect a final 0.4 release next week.
Read the announcement for yourself!

Categories
b2

hatch.org : Smarty enabled b2 mod

If you need any help getting my b2-smarty mod working Steven, just drop me a mail. Unfortunately, after today, I’ll be AFK until Monday though as it’s a bank holiday weekend here in Ireland. woo!

Categories
b2

b2-Smarty installation

If you’re having trouble installing b2-smarty then take a look at this post. There’s 2 problems that might cause you trouble:

  1. Enable register_globals in your php.ini
  2. Make sure you copy the files in properly.

I’m dumbfounded to read that people prefer to edit code and HTML mixed in together. There’s just so many advantages to seperating the code and content out! I’m not going to go on about it, as others have explained all this better than I can.

Categories
b2

b2 ideas

Eadz posted excellent ideas for the future of b2. Some I agree with, some I’m not so sure about. I’ll have a look at them during the week, it’s too nice outside to work at a PC today!

Categories
b2

b2, plugins?

Via the b2 formums I found a blogshare scraper that emulates the MT plugin. It grabs the Price and P/E of a blog. I created a Smarty enabled one, but isn’t it about time we had b2 plugins? I’ll have to think about that..

Categories
b2

b2 enhancement screenshots

I posted a small introduction and screenshots to show off some of the enhanced features of this site. Take a look if you’ve been wondering what all the fuss is about!