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> |
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.
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.
Trackback URL (right click and copy shortcut/link location)
Hi. I am running b2evolution 1.10.2. I installed version 0.3 of the plugin. I followed the instructions in the documentation and, like others who have commented here, I am getting the "Tag illegal: footnote" error when I try to add a footnote to a post.
Sorry, I forgot to test the plugin using the bbcode syntax. Please get the update which fixes the bug.
A follow-up: Did you enable the plugin in the post? By default, the plugin is opt-in.
Any chance you might be updating this plugin to work with 2.x?
It should work with 2.x, (in fact, I'm using it right now in this installation).
Hrmm... When I try and install it it tells me:
Try removing the "private" keyword in that line. Chances are, you're using PHP4?
It worked! Thanks a lot!
Well, my blog is running on 2.4 so I guess so? ;)