Mask Text (spoiler) BBCode

Get help developing custom BBCodes or request one.
Post Reply
User avatar
mrgtb
Registered User
Posts: 603
Joined: Wed Oct 03, 2007 10:51 am

Mask Text (spoiler) BBCode

Post by mrgtb »

This can be used as a kind of spoiler to mask certain things you write (it can be used "inline" with text written). And it doesn't matter if a person uses coloured text either other than default colour for posts.

Add a new BBCODE using this below.

BBCode usage:

Code: Select all

[mask]{TEXT}[/mask]
HTML replacement:

Code: Select all

<span class="mask">{TEXT}</span>
Help line:

Code: Select all

Mask text: [mask]text[/mask]
Add this to the very bottom of your CSS theme file.

Open: /styles/prosilver/theme/common.css

Add at the bottom:

Code: Select all

/* Custom mask bbcode
---------------------------------------- */

.mask {
   cursor: pointer;
   opacity: 0.04;
}

.mask:hover {
   opacity: 1;
}
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26456
Joined: Fri Aug 29, 2008 9:49 am

Re: Mask Text (spoiler) BBCode

Post by Mick »

The correct place to add new BBCodes is by clicking the 'New Contributions' button here.

Please note: Custom BBCodes that require file modifications aren't allowed.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
Post Reply

Return to “Custom BBCode Development and Requests”