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!
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!
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.
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!
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!
If you’re having trouble installing b2-smarty then take a look at this post. There’s 2 problems that might cause you trouble:
- Enable register_globals in your php.ini
- 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.
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!
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!