Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Highlight BBCode - Highlights text with a yellow box (BB Code) Details »
Highlight BBCode - Highlights text with a yellow box (BB Code)
Mod Version: 1.00, by BirdOPrey5 (IB Staff) BirdOPrey5 is offline
Developer Last Online: Jul 2019 I like it Show Printable Version Email this Page

vB Version: 4.0.x Rating: (10 votes - 4.90 average) Installs: 53
Released: 08 Aug 2010 Last Update: Never Downloads: 0
Not Supported Re-usable Code Translations  

This is a simple bbcode to highlight text with a yellow box. You can of course change the color to your needs.

This has been confirmed working in the latest releases of IE, FF, Chrome, Safari, and Opera.

Demo: here.

Add a new BBCode

Title: Highlight
BB Code Tag Name: hl
Replacement:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

OR
Replacement:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(Thanks to Boofo who pointed this out, you may want to use the second option if you have a custom skin, it may look better. Best to try both and see which you prefer.)
Example: [hl]This is a highlight test[/hl]
Description: This highlights selected text.
Use Option: No
Button Image: (optional)

Remove Tag If Empty: Yes
All Disable Options: No

The above implementation fixes the color of the highlight at yellow and the text black for easy use. If you prefer you may also install it with a variable highlight color. If you prefer to have the user choose the highlight color then instead add the following:

Title: Highlight
BB Code Tag Name: hl
Replacement:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Example: [hl="cyan"]This is a highlight test[/hl]
Description: This highlights selected text.
Use Option: Yes
Button Image: (optional)

Remove Tag If Empty: Yes
All Disable Options: No

You can use standard color names in the option such as red, blue, green, yellow, etc...
You can also use hex color codes preceded by the # sign for exact colors, such as #0000FF
Click here for common hex color codes.

Please mark as installed if you use this.

Check My Profile for other BB Code enhancements. They work on all versions.

Screenshot:

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
BB Code Enhancements Highlight BBCode - Highlights text with a yellow box (BB Code) BirdOPrey5 vBulletin 3.8 Add-ons 0 08 Aug 2010 03:35

  #16  
Old 16 Dec 2011, 16:00
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Originally Posted by BirdOPrey5 View Post
For most people it highlights the whole word.
It's really noticeable with a font of 5, 6, 7
Reply With Quote
  #17  
Old 16 Dec 2011, 17:31
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
You need to put the [hl] tags INSIDE the Size tags...

wrong:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

right:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Example of the difference: http://www.qapla.com/mods/showthread...?p=283#post283
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #18  
Old 23 Mar 2012, 20:26
cstreater cstreater is offline
 
Join Date: May 2010
Has anyone noticed that highlight is a built in BBCode in 4.x, but for some reason they didn't include a button for it?

Code is [highlight]
Reply With Quote
  #19  
Old 23 Mar 2012, 22:19
Trevor Matthews Trevor Matthews is offline
 
Join Date: Oct 2010
Well spotted, I wonder why that isn't a button?
Thanks for the info.
Reply With Quote
  #20  
Old 23 May 2013, 03:51
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Real name: Paul L
Just too cool. Another fine mini-MOD. BoP5 rocks!! Added to our BBCodes. And, this is so much better than the 'hidden' [hightlight] BBCode in 4.x
__________________
"It is a capital mistake to theorize in advance of the facts." - Sherlock Holmes
Kubuntu Forums . Net | ZB BLOCK | StopForumSpam

Last edited by Snowhog; 23 May 2013 at 04:02.
Reply With Quote
  #21  
Old 23 May 2013, 09:18
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Originally Posted by cstreater View Post
Has anyone noticed that highlight is a built in BBCode in 4.x, but for some reason they didn't include a button for it?

Code is [highlight]

I wonder what else is hidden in the WYSIWYG???
Reply With Quote
  #22  
Old 23 Jan 2016, 17:35
Webmist's Avatar
Webmist Webmist is offline
 
Join Date: Jan 2006
Real name: JJ
I've expanded on this with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

added this to the additional.css file:
.highlighter {padding-top: 2px; padding-left: 5px; border: 2px solid #333333; color: #333333;}

You could even make a duplicate (i.e. hl16) and add font size 16px to the CSS by changing .highlighter to .hl16.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 09:59.

Layout Options | Width: Wide Color: