Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Tooltip or Abbreviation Custom BBCode Details »»
Tooltip or Abbreviation Custom BBCode
Version: 1.00, by CvP CvP is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.1.7 Rating:
Released: 10-28-2011 Last Update: Never Installs: 17
 
No support by the author.

Originally posted here.
Pretty simple bbcode that uses pure html (no js)

AdminCP -> Custom BBCodes -> Add New BBCode

Tag Name: abbr
Replacement:
Code:
<abbr title="{option}">{param}</abbr>
Example:
Code:
[abbr="vBulletin Solutions Inc."]VBSI[/abbr]
Description: This tag allows you to put a "tooltip" over a text. You can use this for words like UN (United Nations) or WWW (World Wide Web) etc.
Use Option: YES

Settings Screenshot and preview attached.


If the abbr word does not look different than normal text (it should look like the preview image), you can add this code to
admincp > style manager > edit templates > additional.css

Code:
abbr {
 border-bottom: 1px dotted black;
 cursor: help;
}
Note: Tested on vB 4.1.7 but should work for all vB4 and even vB3.

Screenshots

File Type: png settings.PNG (58.0 KB, 0 views)
File Type: png preview.png (6.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-29-2011, 11:38 AM
MyPeSePe's Avatar
MyPeSePe MyPeSePe is offline
 
Join Date: Sep 2011
Location: Phonesfera
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This pretty well, but as he realizes the user if that text is a description?

Reply With Quote
  #3  
Old 10-29-2011, 01:08 PM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you please rephrase your question?

Depending on the browser, the text will have dotted underline (as shown in preview image). You can also apply custom styles on it. Would you like me to provide some?
Reply With Quote
  #4  
Old 10-29-2011, 04:01 PM
RonH.'s Avatar
RonH. RonH. is offline
 
Join Date: May 2004
Location: Splendora, TX
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like it. Marked Installed.
Reply With Quote
  #5  
Old 10-29-2011, 05:34 PM
MyPeSePe's Avatar
MyPeSePe MyPeSePe is offline
 
Join Date: Sep 2011
Location: Phonesfera
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<abbr title="{option}"><em><strong><u>{param}</u></strong></em></abbr>
put it this way, to make it. thanks
Reply With Quote
  #6  
Old 10-29-2011, 05:39 PM
stator's Avatar
stator stator is offline
 
Join Date: Jan 2009
Location: Egypt
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wrong section, post it here: vBulletin 4.x Template Modifications
Reply With Quote
  #7  
Old 10-29-2011, 08:51 PM
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
Posts: 541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice idea
thanks
Reply With Quote
  #8  
Old 10-30-2011, 03:31 PM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MyPeSePe View Post
Code:
<abbr title="{option}"><em><strong><u>{param}</u></strong></em></abbr>
put it this way, to make it. thanks
Understood. You are free to use it that way but I wont put it like that. I don't like tag soup.

vBulletin 4 has default css codes what will make it look as the preview. If it does not for you, add this to additional.css template:
Code:
abbr {
 border-bottom: 1px dotted black;
 cursor: help;
}
Quote:
Originally Posted by stator View Post
Wrong section, post it here: vBulletin 4.x Template Modifications
I'm pretty sure this is the right place for bbcodes. Moderators can move it if needed. Thanks.
Reply With Quote
  #9  
Old 10-30-2011, 05:06 PM
grey_goose grey_goose is offline
 
Join Date: Jun 2009
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. Awww, I don't even get a mention for prompting this?

2. The css didn't work for me. I added a
Code:
<span class="abbr">
in the bbcode and then it worked.
Reply With Quote
  #10  
Old 11-01-2011, 10:20 PM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by grey_goose View Post
1. Awww, I don't even get a mention for prompting this?

2. The css didn't work for me. I added a
Code:
<span class="abbr">
in the bbcode and then it worked.
that means you put a . before abbr in css. There should not be any dots.
Reply With Quote
Reply

Thread Tools

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


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06939 seconds
  • Memory Usage 2,317KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete