Archive For The “b2” Category

Search term highlighting on my site

Keith posted about his efforts to highlight Google search terms. This is interesting! I may be able to create a b2-prefunction that does the same for b2++. Update! I modified my original highlightsearch() function, adding in most of the code found on textism.org which also fixes the problem of highlighting text inside html links! Woo! [...]

Read more »

Related Stories in b2++

It doesn’t work perfectly yet but I’ve integrated the related stories hack into b2++. Just add {$relatedstories} to your post.tpl to display them! Note: it only displays related stories when one story is displayed, such as here.

Read more »

Related b2 Stories

hmm, interesting hack but it could be quite heavy on the server with all those “LIKE” conditions in the SQL! I’ll give it a go anyway in b2++.

Read more »

new b2 snapshot

I released a new b2 snapshot today. This is the first release I’ve testing in Windows. By default Apache on Windows doesn’t enable mod_rewrite so I added code to catch when that happens. Here’s the b2 discussion board I announced the new release on. Download the new snapshot. You should probably download both the src [...]

Read more »

b2 Search Highlight Modifier

There’s a nice generalised text highlighter on the Smarty Plugins Wiki page so I modified it slightly to highlight b2 searches! Here’s a search for smarty that shows off this new plugin. How do you use it? Modify your post.tpl and add the modifier to the_content variable like this: {$the_content|highlightsearch} If you want different colours [...]

Read more »

b2++ 0.4

The newest and best release of b2++ is now available for download! There have been a huge number of changes in this release, so go read the changelog carefully. It has lots of new features such as plugin support, and a much improved install process!

Read more »

A year ago today

I added the “A Year Ago Today” Plugin to the site. Use it by adding the following Smarty tag to your site template (ie. in index.tpl) {todayayearago heading=’<h1>A Year Ago</h1>’} There are a number of differences between this plugin and the original: The “heading” part is the heading displayed if there are any posts, otherwise [...]

Read more »

New centralised b2 script resouce online :-)

Very nice! This website is going to be dead handy as I work on b2++!

Read more »

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!

Read more »

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 [...]

Read more »



Holy Shmoly! is Stephen Fry proof thanks to caching by WP Super Cache