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

Comments
  #2  
Old 08 Aug 2010, 04:51
Juggernaut's Avatar
Juggernaut Juggernaut is offline
 
Join Date: Dec 2009
Very nice bb code
it would be cool if you put the password bbcode here as well

Last edited by Juggernaut; 08 Aug 2010 at 05:32.
Reply With Quote
  #3  
Old 08 Aug 2010, 10:34
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Real name: Dr.osama
thanxx man

installed + 5 stars
__________________
Reply With Quote
  #4  
Old 08 Aug 2010, 11:32
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
That is already the default style highlight code in vb 4. This will do it in templates automatically.


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

Reply With Quote
  #5  
Old 08 Aug 2010, 13:02
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Destron View Post
Very nice bb code
it would be cool if you put the password bbcode here as well
I didn't create that BB Code so I won't post it here but will PM you info on it... Actually it kind of stinks because the password is revealed when you quote the post, so it's just for fun. I was talking with someone about rewriting it to store them in the database but quite frankly it hasn't been a priority.

Originally Posted by Boofo View Post
That is already the default style highlight code in vb 4. This will do it in templates automatically.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
I see that highlight is used when searching and such but I don't see any bb code implementation of it. If you're suggesting I use the code you posted as a replacement it's certainly just as valid but my code is more easily editable for the user to change the highlight color if so inclined. It may even be a smart idea so as not to confuse it with text highlighted by vBulletin automatically.
__________________
-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
  #6  
Old 08 Aug 2010, 13:20
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I was just letting you know it was already there, that's all. I didn't know if you knew it or not. I use the default highlight code for my Thread Starter in Postbit hack, that is how I knew. No offense meant, sir.
Reply With Quote
  #7  
Old 08 Aug 2010, 13:36
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
No offense taken, Thanks for the info.
__________________
-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
  #8  
Old 08 Aug 2010, 14:40
mitch84 mitch84 is offline
 
Join Date: Mar 2008
work fine, installed, thx
Reply With Quote
  #9  
Old 04 Sep 2010, 15:59
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Real name: Col
another good one...!!!!
Reply With Quote
  #10  
Old 05 Jan 2011, 23:41
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Real name: Adam H.
Wonderful.

Installed and working

4.1 PL2
Reply With Quote
  #11  
Old 17 Oct 2011, 00:09
Trangalleiro's Avatar
Trangalleiro Trangalleiro is offline
 
Join Date: Feb 2011
Real name: Luis
Hello

Thanks BirdOPrey5 for the MOD, installed and working perfectly in 4.1.7, as always.

Sorry for my English.

Greetings, Luis.
Reply With Quote
  #12  
Old 16 Dec 2011, 02:51
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Right now it highlights the bottom word.
It would be a nice improvement if it change with the increase font size and not just highlight the bottom of the word.

If the font size is increased.
How to get all of the entire word highlighted? <-- top to bottom
Reply With Quote
  #13  
Old 16 Dec 2011, 07:34
pantani's Avatar
pantani pantani is offline
 
Join Date: Dec 2007
Works well on 4.1.8 thanks
Reply With Quote
  #14  
Old 16 Dec 2011, 10:48
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Mr_Running View Post
Right now it highlights the bottom word.
It would be a nice improvement if it change with the increase font size and not just highlight the bottom of the word.

If the font size is increased.
How to get all of the entire word highlighted? <-- top to bottom
Maybe you have a custom style? Link to your site? For most people it highlights the whole word.
__________________
-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
  #15  
Old 16 Dec 2011, 15:24
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Upgrading shortly to 4.1.9

@BirdOPrey5 If it's still an issue may I send you the url by PM?

I hope your feeling better


Edit: Done the upgrade to 4.1.9 and the issue remains.

Last edited by Mr_Running; 16 Dec 2011 at 16:10.
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 17:39.

Layout Options | Width: Wide Color: