Highlight, Spoiler and Hide BBCodes

Highlight

Highlight BBCode is a BBCode that will display the content with highlight color combination. BBCode is very simple to use, and it allows you to add attributes to set text and background colors for highlighting.

[highlight]{content}[/highlight]
[highlight color="{color}" background="{color}"]{content}[/highlight]

Highlight Example

To change default highlight colors, go to the Feature BBCodes panel.

Spoiler

Spoiler BBCode is a very interesting BBCode that will hide the content displaying text with the same color as the background. When you hover over with cursor, the hidden content will be revealed.

[spoiler]{content}[/spoiler]
[spoiler color="{color}" hover="{color}"]{content}[/spoiler]

Spoiler Example

To change default spoiler colors, go to the Feature BBCodes panel.

Hide

BBCode Hide can be used to hide parts of the post, and show them only when reader fulfils the terms of the Hide BBCode. The plugin implements 4 versions of the Hide BBCode.

Hide block shows messages to users that don’t have the right to see the hidden content. You can change these messages, via the Feature BBCodes panel.

Basic Use – Show to logged in users

Hide BBCode without any attributes will hide the content for non-logged in users:

[hide]{content}[/hide]

Show to users with specified number of posts

Attribute hide has to be set to the number of posts user needs to have to be able to see the hidden content.

[hide hide={post_count}]{content}[/hide]

Show to user that replied to the current topic

Attribute hide has to be set to ‘reply’, and user needs to reply to the current topic to be able to see the hidden content.

[hide hide="reply"]{content}[/hide]

Show to user that said thanks for topic/reply

Attribute hide has to be set to ‘thanks’, and user needs to say thanks for the topic or reply that contains the Hide BBCode to be able to see the hidden content.

[hide hide="thanks"]{content}[/hide]
0
0
33
Rate this article

You are not allowed to rate this post.

Leave a Comment