Live Hits

10th Jan 2007 Danny

Plugin updated 24th Jan 2008 - Please ensure you have the latest version installed

The Live Hits plugin for b2evolution provides an automatically updating, live view of who is visiting your site. Once the plugin is uploaded and installed, go to the Tools tab, then the Live Hits sub-tab. JavaScript is required.

You can filter the hits by blog and by hit type (browser, rss, robot and unknown). For each hit, you can see which blog was visited, what url was visited, the referring url, if any and a logo for the user agent. Click on the logo to see the full user agent signature. The plugin tries to do a lookup on the IP address to see what city and country it's coming from.

If you fill in the Plugin setting for Google Maps API Key, then a map will be added to the Live Hits page, and new hits will be shown on the map (provided the IP lookup returned a latitude and longitude for the IP.) You can get an api key for your domain here.

The other plugin setting controls how often new hits are displayed. The default is every three seconds.

  1. Introduction
  2. Installation (v1.x+)
  3. Installation (v2.x+)

Extra Comment Control

9th Jan 2007 ¥åßßå

Extra comment control at your fingertips

One of the drawbacks of b2evolution blogs is the lack of finesse when it comes to controling who can read or make comments. You either have to close the door on the whole world, or leave it wide open so everyman and his dog can wander in. There's no middle ground unless you fancy butchering a few of the core files to bend them to your needs.

B2evolution ships with the following 3 possible settings for comments :

  1. Open
    Everyman and his dog can read and make comments
  2. Closed
    Everyman and his dog can read comments, nobody (not even the dog) can leave comments
  3. Disabled
    What comments?

This plugin changes those options so you can specify exactly who comments are open/closed/disabled for. No longer do you have to let in the world just to allow your members the ability to comment. With this plugin you can choose from all of the following levels for each of the open/closed/disabled settings :-

  1. Anybody
  2. Registered users
  3. Blog members
  4. Blog editors
  5. Blog administrators
  6. Nobody

If this is the plugin for you then carry on to the installation instructions ....

  1. Introduction
  2. Installation

Using workflows in b2evo

8th Jan 2007 Topanga

Is your work flowing properly?

Of course you've seen those 'Workflow' properties you can use in the backoffice when writing an article, but why are they there and, more importantly, what can you do with them ? How can they be of any use to you ?

When can they be of use to you ?

  1. If you write/prepare articles that are to be published in the future
  2. If you work with several people on the same blog/ezine project

The workflow properties are mostly used when several of you contribute towards the final content.

  • Person B can write an article and assign it to the next to spellcheck, layout check, include pictures, ...
  • Or Person A can start an empty article and assign it to Person C to write the actual content,...

If you need the functionality, you'll instantly know what I mean. If I don't make sense, then I'm sure you don't need this plugin.

  1. What does it do ?
  2. Installation (v1.8)
  3. Customization
  4. Is that all I can customize ?
Tags: workflow

Take control of your Blog All

26th Dec 2006 ¥åßßå

This hack allows you to choose which blogs appear in your all blog, which is quite useful if you run a multi-user blog system as each user can have their own Blog All (which could include their main blog and linkblog etc)

Probably the best way to do this is by using a pseudo stub file for each blog all

Create a stub with the following code :-


 * This file is a stub file for displaying a blog, using evoSkins.
 * This file will set some display parameters and then let b2evolution handle
 * the display by calling an evoSkin. (skins are in the /skins folder.)
 * Note: You only need to use this stub file for advanced use of b2evolution.
 * Most of the time, calling your blog through index.php will be enough.
 * Same display without using skins: a_noskin.php
 * b2evolution - {@link}
 * Released under GNU GPL License - {@link}
 * @copyright (c)2003-2006 by Francois PLANQUE - {@link}
 * @package evoskins
 * @subpackage noskin
# First, select which blog you want to display here!
# You can find these numbers in the back-office under the Blogs section.
# You can also create new blogs over there. If you do, you may duplicate this file for the new blog.
$blog 2;       // 2 is for "demo blog A" or your upgraded blog (depends on your install)
# You could *force* a specific skin here with this setting: (otherwise, default will be used)
# $skin = 'basic';
# This setting retricts posts to those published, thus hiding drafts.
# You should not have to change this.
$show_statuses array();
# You could *force* a specific link blog here with this setting: (otherwise, default will be used)
# $linkblog = 4;
# This is the list of categories to restrict the linkblog to (cats will be displayed recursively)
# Example: $linkblog_cat = '4,6,7';
$linkblog_cat '';
# This is the array if categories to restrict the linkblog to (non recursive)
# Example: $linkblog_catsel = array( 4, 6, 7 );
$linkblog_catsel array( );
# Here you can set a limit before which posts will be ignored
# You can use a unix timestamp value or 'now' which will hide all posts in the past
$timestamp_min '';
# Here you can set a limit after which posts will be ignored
# You can use a unix timestamp value or 'now' which will hide all posts in the future
$timestamp_max 'now';
# Additionnaly, you can set other values (see URL params in the manual)...
# $order = 'ASC'; // This for example would display the blog in chronological order...
<span style="color:red">/*</span>
<span style="color:red"> * Pick your blogs</span>
<span style="color:red"> */</span>
<span style="color:red">$am_blog_all['include_blogs'] = array(31,119); //array of blog ID's to include in the pseudo blog all</span>
<span style="color:red">$blog=1// don't change this or your blog will wander off to another dimension</span>
 * That's it, now let b2evolution do the rest! :)
require_once dirname(__FILE__).'/conf/_config.php';
require $inc_path.'';

Next, crack open inc/ and make the following change :-


// Note: even if we request the same post, the following will do more restrictions (dates, etc.)
<span style="color:red">    if( empty( $am_blog_all ) ) $am_blog_all array();</span>
    $MainList = & new ItemList(
        $preview$unit$timestamp_min$timestamp_max$title$dstart<span style="color:red">, '#'$am_blog_all</span> );

Finally, crack open inc/model/_itemlist.class.php and make the following changes :-


        if( !empty($this->ItemQuery->where) )
            $where 'WHERE '.$this->ItemQuery->where.$where;
            $where 'WHERE 1 '.$where;
<span style="color:red">        if( !empty( $params['include_blogs'] ) ) $where .= ' and cat_blog_ID in ('.implode','$params['include_blogs'] ).')'// we want to restrict to multiple blogs</span>
         * RUN QUERY NOW:

Cool huh? ;)




15th Dec 2006 Danny

Plugin updated 20th Jan 2008 - Please ensure you have the latest version installed

Weather is a plugin for b2evolution that adds data from to your blog sidebar. Just enter your city name or zip code in the Tools tab, along with what data you want to see, then add a bit of code to your skin and you'll have automatically updating, cached weather data, including an icon.

  1. Introduction
  2. Installation (v1.8)
  3. Installation (v2.2+)
  4. Customization

Mini Stats

14th Nov 2006 Danny

Plugin updated 26th December 2007 - Please ensure you have the latest version installed

Add some statistics to your blog posts, including total number of posts, comments, words and views. Also includes lists of posts with the most comments, views and words.

  1. Introduction
  2. Installation (v1.x)
  3. Installation (v2.2+)