Mask Text (spoiler) BBCode

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

Mask Text (spoiler) BBCode

Post by mrgtb » Sun Dec 10, 2017 7:57 pm

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: 20339
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Mask Text (spoiler) BBCode

Post by Mick » Mon Dec 11, 2017 9:37 am

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

There are no ‘threads’ in phpBB, they are topics.

Post Reply

Return to “Custom BBCode Development and Requests”

Who is online

Users browsing this forum: No registered users and 5 guests