vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   BB Code Enhancements - Text Background Highlight (https://vborg.vbsupport.ru/showthread.php?t=211940)

Chadi 04-21-2009 10:00 PM

Text Background Highlight
 
1 Attachment(s)
Text Background Highlight

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

See screenshot: click here

Installation
  1. Upload attached highlight.png icon to your forum's image folder
  2. Go to admincp > bbcode manager
  3. Click "add new bbcode"
  4. Fill in the following fields
    • Title: Highlighter
    • BB Code Tag Name: highlight
    • Replacement (see below)
    • Example: [bible]john 1[/bible]
    • Description: This allows you to highlight text.
    • Button: /images/highlight.png
The rest of the options can be left to default.

Replacement:
Code:

<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

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

Quote:

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:
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

Quote:

Originally Posted by Fantanews (Post 1824179)
Is it possible to set the background color too?

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

Emmmmrz 01-05-2010 01:06 AM

Quote:

Originally Posted by Fantanews (Post 1824179)
Is it possible to set the background color too?

Quote:

Originally Posted by RTMdotORG (Post 1824217)
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

Quote:

Originally Posted by Emmmmrz (Post 1947442)
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 ?


All times are GMT. The time now is 02:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01078 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete