How i make bbcode for background color in font

Get help developing custom BBCodes or request one.
Post Reply
PB190
Registered User
Posts: 134
Joined: Mon Apr 30, 2018 2:50 pm

How i make bbcode for background color in font

Post by PB190 » Sun May 20, 2018 9:17 am

Hello, how i make bbcode for background color in text ?

Like this:

Image


I need know

BBCode Usage:
HTML Replacement:
Help Line:


Thanks

User avatar
david63
Jr. Extension Validator
Posts: 14471
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: How i make bbcode for background color in font

Post by david63 » Sun May 20, 2018 9:19 am

What have you tried so far?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

PB190
Registered User
Posts: 134
Joined: Mon Apr 30, 2018 2:50 pm

Re: How i make bbcode for background color in font

Post by PB190 » Sun May 20, 2018 10:09 am

nothing, i just try find it here https://www.phpbb.com/customise/db/custom_bbcodes-26
nothing...

PB190
Registered User
Posts: 134
Joined: Mon Apr 30, 2018 2:50 pm

Re: How i make bbcode for background color in font

Post by PB190 » Sun May 20, 2018 10:45 am

I try add this from
https://www.phpbb.com/support/docs/en/3 ... in-phpbb3/

Coloured background

BBCode usage:

Code: Select all

[background={COLOR}]{TEXT}[/background]
HTML replacement:

Code: Select all

<span style="background-color: {COLOR};">{TEXT}</span>
Example usage:

Code: Select all

[background=yellow]text on a yellow background[/background]

But this code is useless,
Last edited by PB190 on Sun May 20, 2018 2:07 pm, edited 1 time in total.

PB190
Registered User
Posts: 134
Joined: Mon Apr 30, 2018 2:50 pm

Re: How i make bbcode for background color in font

Post by PB190 » Sun May 20, 2018 2:06 pm

I find it !

Code: Select all

[hil]{TEXT}[/hil]

Code: Select all

<span style="background-color: #FFFF00">{TEXT}</span>

Code: Select all

Highlight: [hil]your text[/hil]

Post Reply

Return to “Custom BBCode Development and Requests”

Who is online

Users browsing this forum: No registered users and 12 guests