PDA

View Full Version : BB Code Enhancements - Text Background Highlight


Chadi
04-21-2009, 10:00 PM
Text Background Highlight

This will automatically add a simple css background color to your selected text.

See screenshot: click here (http://www.pingy.us/?v=motto.png)

Installation
Upload attached highlight.png icon to your forum's image folder
Go to admincp > bbcode manager
Click "add new bbcode"
Fill in the following fields
Title: Highlighter
BB Code Tag Name: highlight
Replacement (see below)
Example: john 1
Description: This allows you to highlight text.

Button: /images/highlight.png The rest of the options can be left to default.

Replacement:
<style type="text/css">
.background-highlight {
background-color: #4D528C;
padding: 1px;
color: white;
line-height: 21px;
}
</style>

<span class="background-highlight">{param}</span>

Customizations
If you know css, change the colors and variations to what you want. Otherwise, use this tutorial (http://htmldog.com/guides/cssbeginner/)

Live Demo
http://www.talkjesus.com/press-stand/53-talk-jesus-10-commandments-rule.html
(the purple highlighted text below "our little motto")

Isaiah 55:11
11so shall my word be that goes out from my mouth;
it shall not return to me empty,
but it shall accomplish that which I purpose,
and shall succeed in the thing for which I sent it.
Check out my other mods:

Mods
Thread Listing by Letter with ABC Navigation Menu (https://vborg.vbsupport.ru/showthread.php?t=211939)
Text Background Highlight (https://vborg.vbsupport.ru/showthread.php?t=211940)
ESV Bible Verse with Audio (https://vborg.vbsupport.ru/showthread.php?t=211936)
My Shelfari Bookshelf Profile Tab (https://vborg.vbsupport.ru/showthread.php?t=212050)
Postbit Mini Box: Member Info Icons (https://vborg.vbsupport.ru/showthread.php?t=212052)
MixPod Playlist MP3 Player in Profile (https://vborg.vbsupport.ru/showthread.php?p=1801014)
Styles
Green Earth Admin Style (https://vborg.vbsupport.ru/showthread.php?p=1801526)
Purple Element Admin Style (https://vborg.vbsupport.ru/showthread.php?t=212035) Please show your appreciation by voting and clicking install :up:

* Please Note: No Support Provided via PM or Email, only in This Thread for those who click Install *

Fantanews
06-05-2009, 09:38 PM
Is it possible to set the background color too?

RTMdotORG
06-05-2009, 10:47 PM
Is it possible to set the background color too?

yes, change the background color is the css....

Emmmmrz
01-05-2010, 01:06 AM
Is it possible to set the background color too?

yes, change the background color is the css....

I believe they are asking if it's possible for the user to select the background color, much like the font color, so you could have dark green text with a light green background, or white text with a black background.

And personally, that's what I am looking for as well.

mgurain
07-06-2010, 09:56 PM
I believe they are asking if it's possible for the user to select the background color, much like the font color, so you could have dark green text with a light green background, or white text with a black background.

And personally, that's what I am looking for as well.

Me too ?