Archive For The “b2” Category
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! [...]
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.
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++.
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 [...]
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 [...]
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!
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 [...]
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 [...]
