Category: b2evolution

Link: http://blogs.crammerz-inc.net/thunk/2007/05/26/b2evolution_code_highlighter_plugin

The “Improved” Code highlighter plugin for b2evolution has been released as a full plugin pacakage rather than a hack.

Link: http://blogs.crammerz-inc.net/thunk/2007/06/01/footnotes_plugin_for_b2evolution

I have just updated the footnotes plugin to version .3. Updates include the caching feature (though it breaks on Feeds) and some notes on Auto P fixes.

Quick Update

Updated the plugin to v.3b which fixes issues using the alternate (bbcode) syntax.

Another update. This time, it’s in order to support versions prior to 1.10.x which don’t support item filtering. So, for compatibility, the option of using bbcode syntax (i.e. [footnote note="foo"]bar[/footnote]) is added (make sure it’s enabled at the plugin settings first before using). This update is only necessary for those using 1.9.3 and below. The old version can still be used for those who are using 1.10.x.

Link (version 0.2)

Important note:

When using the alternate syntax mixing both syntaxes especially nesting them will cause undefined behavior this only applies to users version 1.10.x who turned on the alternate syntax opti

I discovered a small programming mistake this morning involving a misnamed variable (because PHP doesn’t detect nonexistent variables until it actually encounters it). I fixed it and the updated one is already uploaded here. I also added a note after installation reminding the user to add the footnotes classes to the stylesheets.

Update #2

I discovered another stupid typo which causes the syntax matching to fail. Also, I fixed a bug where the note parameter gets duplicated everytime a post with footnotes gets edited. The updated one is already posted. Please use this update immediately instead of the previous one.

Get it here:

The footnotes plugin ease the creation of footnotes with the following formats: tooltips such as this and anchor links such as this1. Adding those footnotes is as easy as using:

HTML:

<footnote note="Header::Footnote goes here">Main Text</footnote>

Note: b2evolution version < 1.10

Make sure that you turn on “Use Alternate Syntax” which follows the bbcode conventions (i.e. [footnote note="hello"]world[/footnote])

To install, just unzip the entire folder to your plugins directory and follow the readme.html inside.

b2evolution version ≥ 1.10.3 Note

The Auto P plugin of b2evolution 1.10.3 (including the 2.x releases) has been modified which paragraph-breaks ALL HTML comments including the meta-comments used by the footnotes plugin. Line 105 of [blogroot]/plugins/_auto_p.plugin.php has to be modified from:

PHP:

// Handle blocks, splitted by comments. This includes especially the "meta-comments"
// ("<!–more–>", "<!–nextpage–>" or "<!–noteaser–>"):
$content_parts = preg_split( ‘~(<!–.*?–>)~s’, $content, -1, PREG_SPLIT_DELIM_CAPTURE);
$content_parts[] = ‘’;

to

PHP:

// Handle blocks, splitted by comments. This includes especially the "meta-comments"
// ("<!–more–>", "<!–nextpage–>" or "<!–noteaser–>"):
$content_parts = preg_split( ‘~(<!–(?:more|nextpage|noteaser)–>)~s’, $content, -1, PREG_SPLIT_DELIM_CAPTURE);
$content_parts[] = ‘’;

More information can be read from the documentation.

Footnotes

1This is a footnote too

1 2 >>