vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   BB Code Enhancements - Text Background Highlight (https://vborg.vbsupport.ru/showthread.php?t=211941)

Chadi 04-21-2009 10:00 PM

Text Background Highlight
 
Text Background Highlight

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

See screenshot for example.

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:


All times are GMT. The time now is 10:28 AM.

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.00996 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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