- Displayed to users when they reply to the thread.
[ARTICLE]
·
[ARTICLE=option]
- Article
Displays an article with an optional source attribution.
示例:
[ARTICLE=https://en.wikipedia.org/wiki/Article_(publishing)]
A news article discusses current or recent news of either general interest (i.e. daily newspapers) or of a specific topic (i.e. political or trade news magazines, club newsletters, or technology news websites).
A news article can include accounts of eyewitnesses to the happening event. It can contain photographs, accounts, statistics, graphs, recollections, interviews, polls, debates on the topic, etc. Headlines can be used to focus the reader’s attention on a particular (or main) part of the article. The writer can also give facts and detailed information following answers to general questions like who, what, when, where, why and how.
[/ARTICLE]
输出:
文章:
A news article discusses current or recent news of either general interest (i.e. daily newspapers) or of a specific topic (i.e. political or trade news magazines, club newsletters, or technology news websites).
A news article can include accounts of eyewitnesses to the happening event. It can contain photographs, accounts, statistics, graphs, recollections, interviews, polls, debates on the topic, etc. Headlines can be used to focus the reader’s attention on a particular (or main) part of the article. The writer can also give facts and detailed information following answers to general questions like who, what, when, where, why and how.
[BIMG]
·
[BIMG=option]
- Block image
Displays an image, allowing it to be resized, aligned or floated, and compared with another image.
- This tag hides the text until the user clicks the <b>Like button</b> in the message.
[ENCADRE]
·
[ENCADRE=option]
- Encadre
This BB Code inserts a text box to the right of a text (absolute position). It has to be inserted just before the content. (width customizable in %)
示例:
[ENCADRE]This is a text box with a long text. Can be used with an article for example.[/ENCADRE]Content
[ENCADRE width=30]This is a text box with a long text. Can be used with an article for example.[/ENCADRE]Content
输出:
Content
Content
[USERSEXC=option]
- Exclude users
Hides the text from users that is listed in the list of parameters of the BB-code.
示例:
[USERSEXC=Alex,John,Bryan]Hello World![/USERSEXC] - Displayed to all users except Alex, John, Bryan.
- Appears only for all users except with ids 1, 2, 3.
[FIELDSET]
·
[FIELDSET=option]
- Fieldset
This BB Code inserts a fieldset
示例:
[fieldset]This is a fieldset[/fieldset]
[fieldset title="Title"]This is a fieldset[/fieldset]
[fieldset title="Title" width=80]This is a fieldset[/fieldset]
输出:
字段集:
This is a fieldset
Title
This is a fieldset
Title
This is a fieldset
[FLEFT]
- Float left
Make a block float on the left
示例:
[fleft]Make me float on the left[/fleft]
输出:
Make me float on the left
[FRIGHT]
- Float right
Make a block float on the right
示例:
[FRIGHT]Make me float on the right[/FRIGHT]
输出:
Make me float on the right
[CLUB]
- For club members
The information inside the code is displayed only to members of the club.
示例:
[CLUB]Hello World![/CLUB] - Hidden text for club members
[HIDE]
·
[HIDE=option]
- For registered users only
Tag [HIDE] is used for hidden content. If [HIDE=(condition)] is specified, the condition will be applied to the hidden content. Note: After the = sign, you must enclose the conditions in parentheses to indicate the start and end of condition processing. Inside, you can use any condition grouping.
Allowed expressions (tags):
posts: Number of user posts.
likes: User reaction count.
reactions: User reaction count (same as likes).
trophies: Number of user trophies.
days: Number of days since user registration.
isMemberOf(id): User group, for multiple groups you can use comma-separated values.
username: User's username.
user_id: User's identifier.
user_state: User's state.
is_staff: Flag indicating whether the user is a staff member.
is_admin: Flag indicating whether the user is an administrator.
is_moderator: Flag indicating whether the user is a moderator.
Allowed operators:
Arithmetic operators:
Arithmetic operators are used for performing mathematical calculations:
+
-
*
/
% (modulus)
** (exponentiation)
Comparison operators:
Comparison operators are used for comparing values and returning a boolean result:
== (equal to)
=== (strictly equal to)
!= (not equal to)
!== (strictly not equal to)
< (less than)
> (greater than)
<= (less than or equal to)
>= (greater than or equal to)
Logical operators:
Logical operators are used for performing logical operations and returning a boolean result:
and or && (logical AND)
or or || (logical OR)
not or ! (logical NOT)
Bitwise operators:
Bitwise operators are performed on binary representations of numbers:
& (bitwise AND)
| (bitwise OR)
^ (bitwise XOR)
String operators:
The ~ operator is used for string concatenation:
~ (string concatenation)
Array operators:
Array operators are used for checking element membership in an array:
in (element present in array)
not in (element not present in array)
Numeric operators:
The .. operator is used to create a range of numbers:
.. (number range)
Ternary operator:
The ?: operator is used to perform conditional operations in a single line:
?: (ternary operator)
示例:
[HIDE]Hello World![/HIDE] - only registered users see the hidden text
[HIDE=(posts > 1 or likes > 1)]Hello world![/HIDE] - The hidden text "Hello world!" will be displayed if the number of user posts is greater than 1 OR the number of likes is greater than 1.
[HIDE=(posts > 1 and likes > 1)]Hello world![/HIDE] - The hidden text "Hello world!" will be displayed if the number of user posts is greater than 1 AND the number of likes is greater than 1.
[HIDE=(days > 1 or user_state == "valid")]Hello World![/HIDE] - The hidden text "Hello World!" will be displayed if the number of days since user registration is greater than 1 OR the user state is "valid".
[HIDE=(isMemberOf(2) or trophies >= 0)]Hello World![/HIDE] - The hidden text "Hello World!" will be displayed if the user is a member of group 2 OR the number of user trophies is greater than or equal to 0.
[HIDE=(is_staff)]Hello World![/HIDE] - The hidden text "Hello World!" will be displayed if the user is a staff member.
输出:
View hidden content is available for registered users!
- only registered users see the hidden text
message > 1 (0) or like > 1 (0)
- The hidden text "Hello world!" will be displayed if the number of user posts is greater than 1 OR the number of likes is greater than 1.
message > 1 (0) and like > 1 (0)
- The hidden text "Hello world!" will be displayed if the number of user posts is greater than 1 AND the number of likes is greater than 1.
day > 1 (0) or 用户状态 is "valid" (valid)
Hello World!
- The hidden text "Hello World!" will be displayed if the number of days since user registration is greater than 1 OR the user state is "valid".
Member group(s): 注册用户 or point >= 0 (0)
Hello World!
- The hidden text "Hello World!" will be displayed if the user is a member of group 2 OR the number of user trophies is greater than or equal to 0.
管理成员
- The hidden text "Hello World!" will be displayed if the user is a staff member.
[GROUPS=option]
- For user groups
The tag hides content from people who are not members of X,Y,Z user groups.
示例:
[GROUPS=2]Hello World![/GROUPS] - Displayed only for group members with ID 2.
输出:
Content of this hidden block can only be seen by members of: 注册用户
- Displayed only for group members with ID 2.
[USERS=option]
- For users
Hides the text from users, except for the parameters listed in the list of BB-code.
示例:
[USERS=Alex,John,Bryan]Hello World![/USERS] - Displayed only by user Alex, John, Bryan.
输出:
Hidden text for users:
- Displayed only by user Alex, John, Bryan.
[GALLERY=option]
- 图库嵌入
用于显示媒体项目和相册的BB代码。
示例:
[GALLERY=media, X]Gallery BB 代码[/GALLERY]
输出:
[GALLERY=media, X]Gallery BB 代码[/GALLERY]
[GVIEW]
·
[GVIEW=option]
- GVIEW
This BB Code displays documents using the "Google Docs - Viewer" (supports many different file types:pdf,ppt,doc,xls...).
Default line:
[hr]
Unformatted line:
[hr=0]
Solid line:
[hr=1]
Lightly faded on both sides:
[hr=2]
Significantly faded on both sides:
[hr=3]
Faded to left:
[hr=4]
Faded from right:
[hr=5]
输出:
Default line: Unformatted line: Solid line: Lightly faded on both sides: Significantly faded on both sides: Faded to left: Faded from right:
[JUSTIFY]
- Justify
示例:
[justify]justified text example
line 1
line 2
line 3[/justify]!
输出:
justified text example
line 1
line 2
line 3
!
[LATEX]
·
[LATEX=option]
- LaTeX
Renders LaTeX markup.
示例:
[LATEX]c=\sqrt{a^2+b^2}[/LATEX]
输出:
函数:
\[c=\sqrt{a^2+b^2}\]
[ALERT]
·
[ALERT=option]
- Mod:Alert
Moderator only Alert banner
示例:
[alert=Title]Alert[/alert]
输出:
titleAlert
[INFORMATION]
·
[INFORMATION=option]
- Mod:Info
Moderator only Information banner
示例:
[information=Title]Information[/information]
输出:
titleInformation
[STOP]
·
[STOP=option]
- Mod:Stop
Moderator only Stop banner
示例:
[stop=Title]Stop[/stop]
输出:
titleStop
[WARNING]
·
[WARNING=option]
- Mod:Warning
Moderator only Warning banner
示例:
[warning=Title]Warning[/warning]
输出:
titleWarning
[DAYS=option]
- Number of days
Number of days from the date of registration on the forum, which the user needs to be able to view
示例:
[DAYS=5]Hello World![/DAYS] - Only registered users who are registered not earlier than 5 days ago are displayed.
- Displays users who have 5 or more posts on the forum.
[TROPHIES=option]
- Number of trophies
Number of trophies on the forum, which the user needs to be able to view
示例:
[TROPHIES=5]Hello World![/TROPHIES] - It is displayed only to registered users, the number of points for trophies on the forum which is greater than or equal to 5.