這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

bbPress2 BBCode

外掛說明

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:
function HelloWorld($greet = 'World') { return 'Hello '.$greet } 

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.

螢幕擷圖

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

安裝方式

  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

常見問題集

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.

使用者評論

2023 年 7 月 18 日
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.
2023 年 4 月 24 日
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
閱讀全部 6 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈bbPress2 BBCode〉的開發相關工作。

參與者

將〈bbPress2 BBCode〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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.