Title: bbPress2 BBCode
Author: antonchanning
Published: <strong>October 15, 2011</strong>
Last modified: May 21, 2016

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/bbpress-bbcode.svg)

# bbPress2 BBCode

 By [antonchanning](https://profiles.wordpress.org/antonchanning/)

[Download](https://downloads.wordpress.org/plugin/bbpress-bbcode.2.0.1.zip)

 * [Details](https://wordpress.org/plugins/bbpress-bbcode/#description)
 * [Reviews](https://wordpress.org/plugins/bbpress-bbcode/#reviews)
 *  [Installation](https://wordpress.org/plugins/bbpress-bbcode/#installation)
 * [Development](https://wordpress.org/plugins/bbpress-bbcode/#developers)

 [Support](https://wordpress.org/support/plugin/bbpress-bbcode/)

## Description

This plugin adds support for bbcode markup to wordpress, bbpress and buddypress.

It integrates with the ‘bbPress shortcode whitelist’ plugin to provide a safe way
of enabling BBCode without giving your users access to all shortcodes.

    ```
    Bold: [b]bold[/b]
    Italics: [i]italics[/i]
    Underline: [u]underline[/u]
    URL: [url]https://wordpress.org/[/url] [url=https://wordpress.org/]WordPress[/url]
    Image: [img]https://s.w.org/style/images/codeispoetry.png[/img] [img=Code is Poetry]https://s.w.org/style/images/codeispoetry.png[/img]
    Quote: [quote]Lorem ipsum dolor sit amet, consectetuer adipiscing elit,[/quote] [quote=NAME]Lorem ipsum dolor sit amet[/quote] [quote="NAME"]Lorem ipsum dolor sit amet[/quote] [quote author=NAME]Lorem ipsum dolor sit amet[/quote] [quote author="NAME"]Lorem ipsum dolor sit amet[/quote]
    Color: [color="red"]named red[/color] [color="ff0000"]hex red[/color] [color=#ff0000]hex red again[/color]
    Strikeout:[s]striked this out[/s]
    Center Text:[center]center me[/center]
    Computer code:[code]function HelloWorld($greet = 'World') { return 'Hello '.$greet } [/code]
    Font size: [size=10]10px font size[/size]
    Ordered lists: [ol][li][/li][/ol]
    Unordered lists: [ul][li][/li][/ul]
    List Item: [li]item[/li]
    Named Spoiler: [spoiler=two plus two]four[/spoiler]
    Unnamed Spoiler: [spoiler]Boo![/spoiler]
    Contents appear to logged in users only: [user]This is a secret message[/user]
    Contents appear to non-logged in users only: [guest]Log in to see secret message...[/guest]
    ```

I have enhanced support for the [url] and [quote] tags, and added potentially
 useful
css style class names in the html output of the tags, to allow for exciting theming
potential.

For example:

    ```
    [quote=NAME]QUOTE[/quote] 
    ```

will render as:

    ```
    <div class="bbcode-quote bbcode-quote-NAME"><strong>NAME</strong><blockquote>QUOTE</blockquote></div>
    ```

Or if NAME matches the login name of a user on the system, it will render as:

    ```
    <div class="bbcode-quote bbcode-quote-user bbcode-quote-NAME"><strong>DISPLAY_NAME</strong><blockquote>QUOTE</blockquote></div>
    ```

Where DISPLAY_NAME is the display name that user. With BuddyPress installed the 
name
 also becomes a link to their profile page, otherwise if bbPress is installed,
it becomes a link to their forum user page.

## Screenshots

 * [[
 * Post and replies with bbcode formatting.
 * [[
 * What the posts look like with the plugin disabled.

## Installation

 1. Upload the `bbpress-bbcode` folder and its contents to the `/wp-content/plugins/`
    directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## FAQ

  One of your tags doesn’t work the way I need it to can you fix it?

I can try. I want the plugin to be flexible in the bbcode formats it
 accepts. In
the case of conflicts I plan to add options in the administration dashboard so each
wordpress user can control how it behaves for them.

  Can you add support for a popular bbcode that appears to be missing?

I can’t promise anything in this regard. It looks to me like all the common
 tags
are already supported. But if someone points out one that isn’t already supported
by another plugin somewhere, I’ll look at adding it.

  Do you have a current road map for further development of this plugin?

Yes.
 * Detect if bbPress Toolbar is installed, and if so provide administration
options for replacing some/all of the buttons behaviour to bbcode instead of html.

## Reviews

![](https://secure.gravatar.com/avatar/411216c9853ecd7fc07a1f63a5229b536241d234e489b0c580b0e9d0676749a9?
s=60&d=retro&r=g)

### 󠀁[Unfortunatelly it died](https://wordpress.org/support/topic/unfortunatelly-it-died/)󠁿

 [Byron Iniotakis](https://profiles.wordpress.org/orloxgr/) July 18, 2023

Its a pitty but the plugin is neither maintained nor working anymore. Thank you 
for the service all these years. The one star is only for the people who dont read
the reviews otherwise it was a 5.

![](https://secure.gravatar.com/avatar/af4a623dee507ed9d381f062c92fd5df371aa2d4e58c7e6c8c3c3ca25df0069a?
s=60&d=retro&r=g)

### 󠀁[Does not work on WP 6.2](https://wordpress.org/support/topic/does-not-work-on-wp-6-2/)󠁿

 [DrunkMunki](https://profiles.wordpress.org/drunkmunki/) April 24, 2023

Got a fatal error when trying to install Fatal error: Uncaught Error: Call to undefined
function create_function() in /home/*/public_html/wp-content/plugins/bbpress-bbcode/
bbpress2-bbcode.php:43 Stack trace: #0 /home/*/public_html/wp-admin/includes/plugin.
php(2314): include_once() #1 /home/*/public_html/wp-admin/plugins.php(192): plugin_sandbox_scrape()#
2 {main} thrown in /home/*/public_html/wp-content/plugins/bbpress-bbcode/bbpress2-
bbcode.php on line 43

![](https://secure.gravatar.com/avatar/51e4d55fd888ab55cfe627d6f22de01819a5a95a368145b63f339f98c76a0d70?
s=60&d=retro&r=g)

### 󠀁[Exactly what I needed!](https://wordpress.org/support/topic/exactly-what-i-needed-759/)󠁿

 [alinaalinuta](https://profiles.wordpress.org/alinaalinuta/) January 21, 2021

Works perfect. I huge recommend it and I huge apreciated creator make this plugin
🙂

![](https://secure.gravatar.com/avatar/782309c849cab61dc0888eeef127e681b815229edb5c7b67440c5804353561c8?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-3888/)󠁿

 [AlexCruz1989](https://profiles.wordpress.org/alexcruz1989/) March 24, 2017

The only bbcode plugin that works. Thanks.

 [ Read all 6 reviews ](https://wordpress.org/support/plugin/bbpress-bbcode/reviews/)

## Contributors & Developers

“bbPress2 BBCode” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ antonchanning ](https://profiles.wordpress.org/antonchanning/)

[Translate “bbPress2 BBCode” into your language.](https://translate.wordpress.org/projects/wp-plugins/bbpress-bbcode)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/bbpress-bbcode/), check
out the [SVN repository](https://plugins.svn.wordpress.org/bbpress-bbcode/), or 
subscribe to the [development log](https://plugins.trac.wordpress.org/log/bbpress-bbcode/)
by [RSS](https://plugins.trac.wordpress.org/log/bbpress-bbcode/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.0.1

 * Tested and works with 4.5.2
 * No new features

#### 2.0

 * Replaced support for “Viper’s Video Quicktags” with support for the more
    simple“
   Video Audio BBCode” plugin. The former was causing conflicts with the shortcode
   whitelist.
 * All audio and video bbcodes moved to ‘Video Audio BBCode’ plugin.

#### 1.5.1

 * Added support for buddypress private messages

#### 1.5

 * Fixed bug that stopped the bbcode working in the BuddyPress activity stream.

#### 1.4

 * Added support for [freesound] tag.
 * Added support for [user] tag to display content only to logged in users.
 * Added support for [guest] tag to display content only to non-logged in users.

#### 1.3

 * Added support for buddypress activity updates
 * Added support for buddypress group forums

#### 1.2

 * Added support for [video] tag in a way that enhances Viper’s support. New tag
   auto
    detects if it contains a youtube or googlevideo url and tries to render
   as if it was a  tag or [gvideo] tag if so. If Viper’s is installed, it supports
   auto detecting all of the video quicktags that support urls before resorting 
   to Viper’s normal behaviour. Did this to support old posts imported from a Phorum
   forum that supported a generic [video] tag for youtube, googlevideo etc.

#### 1.1

 * I can’t actually remember what this version changed now, I forgot to add this
   note
    at the time! o.O Possibly this is the version where I allowed as an alias
   for [gvideo]

#### 1.0

 * Detects if Viper’s Video Quicktags is installed, and if not supports  and [gvideo]
   tags natively.
 * Improved code structure.

#### 0.3

 * Added support for bbpress-shortcode-whitelist plugin

#### 0.2

 * Fixed quote tags to work with multiple variations
 * If quote name matches a registered user’s login name:
    - It replaces their user login name with their display name
 *  - Creates link to their profile page if buddypress is installed
 *  - else creates link to their bbpress forum page if bbpress is installed
 * Added css style classes to much of the output html to allow much fun custom styling…
 * Restored support for [gvideo] tag as no conflict with VVQ exists, since the latter
   uses a tag instead.

#### 0.1

 * Initial version. Fork from b0ingball bbcode.
 * Adds support for bbcode to bbpress
 * Fixes behaviour of [quote] and [url] tags
 * Temporarilly disables  and [gvideo] tags to avoid conflict with Vipers Video 
   Quicktags.

## Meta

 *  Version **2.0**
 *  Last updated **10 years ago**
 *  Active installations **100+**
 *  WordPress version ** 2.5 or higher **
 *  Tested up to **4.5.33**
 * Tags
 * [bbcode](https://wordpress.org/plugins/tags/bbcode/)[bbPress](https://wordpress.org/plugins/tags/bbpress/)
   [bbpress-plugin](https://wordpress.org/plugins/tags/bbpress-plugin/)[bbpress2](https://wordpress.org/plugins/tags/bbpress2/)
   [buddypress](https://wordpress.org/plugins/tags/buddypress/)
 *  [Advanced View](https://wordpress.org/plugins/bbpress-bbcode/advanced/)

## Ratings

 3.7 out of 5 stars.

 *  [  4 5-star reviews     ](https://wordpress.org/support/plugin/bbpress-bbcode/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/bbpress-bbcode/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/bbpress-bbcode/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/bbpress-bbcode/reviews/?filter=2)
 *  [  2 1-star reviews     ](https://wordpress.org/support/plugin/bbpress-bbcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/bbpress-bbcode/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/bbpress-bbcode/reviews/)

## Contributors

 *   [ antonchanning ](https://profiles.wordpress.org/antonchanning/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/bbpress-bbcode/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://bbpressbbcode.chantech.org/donate/)