[wordpress插件] bbPress2 BBCodebbPress2 BBCode

wordpress 插件 文章 2020-03-01 12:00 649 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

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

此插件为wordpress,bbpress和buddypress添加了对bbcode标记的支持。

It integrates with the ‘bbPress shortcode whitelist’ plugin to provide a safe

它与“ bbPress短代码白名单”插件集成,以提供安全的

way of enabling BBCode without giving your users access to all shortcodes.

启用BBCode而不让用户访问所有短代码的方法。

Bold: bold

 粗体:[b]粗体[/ b]

Italics: italics

斜体字:[i]斜体字[/ i]

Underline: underline

下划线:[u]下划线[/ u]

URL: https://wordpress.org/ WordPress

网址:[url] https://wordpress.org/ [/ url] [url = https://wordpress.org/] WordPress [/ url]

Image: [img=Code is Poetry]https://s.w.org/style/images/codeispoetry.png[/img]

图片:[img] https://s.w.org/style/images/codeispoetry.png [/ img] [img =代码就是诗歌] https://s.w.org/style/images/codeispoetry.png [/ img]

Quote:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit,

[quote=NAME]Lorem ipsum dolor sit amet[/quote] [quote="NAME"]Lorem ipsum dolor sit amet[/quote] [

Quote:

Lorem ipsum dolor坐amet,[/ quote] [quote = NAME] Lorem ipsum dolor坐amet [/ quote] [quote =“ NAME”] Lorem ipsum dolor坐amet [/ quote] [

quote author=NAME]Lorem ipsum dolor sit amet

[quote author="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]

颜色:[color =“ red”]命名为红色[/ color] [color =“ ff0000”]十六进制红色[/ color] [color =#ff0000]再次为十六进制红色[/ color]

Strikeout:striked this out

删除线:[s]删除了此线[/ s]

Center Text:[center]center me[/center]

中心文字:[center]使我居中[/ center]

Computer code:

function HelloWorld($greet = 'World') { return 'Hello '.$greet } 

计算机代码:[代码]函数HelloWorld($ greet ='World'){返回'Hello'。$ greet} [/ code]

Font size: 10px font size

字体大小:[size = 10] 10px字体大小[/ size]

Ordered lists: [ol][li][/li][/ol]

有序列表:[ol] [li] [/ li] [/ ol]

Unordered lists: [ul][li][/li][/ul]

无序列表:[ul] [li] [/ li] [/ ul]

List Item: [li]item[/li]

清单项目:[li]项[/ li]

Named Spoiler: [spoiler=two plus two]four[/spoiler]

命名为剧透:[spoiler = 2加2] four [/ spoiler]

Unnamed Spoiler: [spoiler]Boo![/spoiler]

未命名的剧透:[spoiler]嘘![/ spoiler]

Contents appear to logged in users only: [user]This is a secret message[/user]

内容仅显示为登录用户:[user]这是一条秘密消息[/ user]

Contents appear to non-logged in users only: [guest]Log in to see secret message...[/guest]

内容仅显示为未登录用户:[guest]登录以查看秘密消息... [/ guest]

I have enhanced support for the [url] and

tags, and added potentially

我增强了对[url]和[quote]标签的支持,并增加了可能的内容

useful css style class names in the html output of the tags, to allow for

标签的html输出中有用的css样式类名称,以允许

exciting theming potential.

令人兴奋的主题潜力。

For example:

例如:

[quote=NAME]QUOTE

  [quote = NAME] QUOTE [/ quote]

will render as:

将呈现为:

NAME
QUOTE

  
NAME
QUOTE

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

或者,如果NAME与系统上用户的登录名匹配,它将显示为:

DISPLAY_NAME
QUOTE

  
“> DISPLAY_NAME
QUOTE

Where DISPLAY_NAME is the display name that user.

DISPLAY_NAME是该用户的显示名称。

With BuddyPress installed the name

安装BuddyPress后,名称为

also becomes a link to their profile page, otherwise if bbPress is installed, it becomes a

也将成为其个人资料页面的链接,否则,如果安装了bbPress,它将成为一个

link to their forum user page.

链接到他们的论坛用户页面。

安装步骤

    1. Upload the bbpress-bbcode folder and its contents to the /wp-content/plugins/ directory
    2. bbpress-bbcode 文件夹及其内容上传到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

下载地址
https://downloads.wordpress.org/plugin/bbpress-bbcode.2.0.1.zip
-EOF-

AI助手支持GPT4.0