Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Abbreviations/Acronyms (MathJax Compatible) Details »»
Abbreviations/Acronyms (MathJax Compatible)
Version: 1.4.2, by MarkFL MarkFL is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: End-User Options - Version: 4.2.x Rating:
Released: 10-26-2015 Last Update: 02-18-2017 Installs: 17
DB Changes Uses Plugins
Additional Files Translations  
No support by the author.

Overview

This product allows you to define a set of abbreviations/acronyms that will have a tooltip explanation defined for your users who may not be familiar with these abbreviations and will find an explanation useful. You can define which areas of your site this product is active and your users can also decide if they wish for the product to be active for them in their settings. If you use MathJax on your site for mathematical expressions, you will find this product is completely compatible with it, and will not break such expressions.

Upon installation, a custom user profile field is auto-created to allow your users control over use of this product, and this field is deleted if you uninstall the product.



The product settings are divided into two primary groups: the first pertaining to the abbreviations/acronyms and the second to your implementation of MathJax. If you are not using MathJax, then you can simply ignore that section.



Abbreviations/Acronyms Details

Here you will find a textarea for defining your list of abbreviations and acronyms. Each one should be place on a separate line, with the abbreviation/acronym first, then a pipe symbol ("|"), followed by the explanation you want to appear in the tooltip. If you wish for your tooltip to contain line breaks, then use "\n" (without the quotes) for these breaks. When you save your settings, the list is alphabetically sorted to make locating these definitions easier in the future.

Next, you can set the areas of your site in which this product will be active, including Posts, Signatures, Private Messages, Visitor Messages and Group Messages.

You can then set whether you wish for this product to be active for guests.



MathJax Details

If you do not use MathJax, then you need not make any changes here.

If you do use MathJax, then first you need to define whether you have their script(s) manually defined in your templates or if you are using my product for its dynamic implementation. I recommend using my product for the most reliable and efficient compatibility.

If you use MathJax's default delimiters, then you need not change them, as the defaults are already defined by this product. However, if you have defined your own delimiters, then all delimiters you have defined need to be given in the delimiter settings.

Updates:

Version 1.1:
  • I discovered a MySQL function I was using was deprecated as of 5.5, so I replaced it with a query.
  • Fixed bug whereby the preview of a post in a new thread now shows the acronyms.

Version 1.2:
  • Fixed bug where "/" character in an abbreviation caused a PHP error.
  • Fixed bug where acronym at the beginning of a text string will now work.

Version 1.3:
  • Profile filed number of auto-created field cached so a db query is no longer required each time text is parsed.

Version 1.3.1:
  • HTML special characters may now be used in abbreviations/acronyms.

Version 1.4:
  • Admin options processing more efficient.
  • Added setting for "Active Forums."
  • Fixed issue where hex colors within COLOR BBCode containing abbreviations broke posts.

Version 1.4.1:
  • Dotted underline is now the same color as the text.

Version 1.4.2:
  • Fixed issue with non-Latin characters.

Compatibility:

Tested and working on VB 4.2.x and should work on all 4.x versions of vBulletin.

Backup/Warning:

This product alters your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:

1.) Download and extract the attached .zip file.
2.) Upload the contents of the "upload" folder to your forum's root directory.
3.) Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
4.) Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
5.) Click "Import."
6.) You MUST enable the product in the settings before it will function.
7.) Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.

Support for this product can be found here:

Download Now

File Type: zip MarkFL - Acronyms And MathJax v1.4.2.zip (7.9 KB, 24 views)

Screenshots

File Type: png markfl_acrojax_tooltip.png (106.5 KB, 0 views)
File Type: png markfl_acrojax_ucp.png (5.9 KB, 0 views)
File Type: jpg markfl_acrojax_acp.jpg (73.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
furnival

Comments
  #22  
Old 12-15-2016, 02:19 AM
KevinL KevinL is offline
 
Join Date: Apr 2005
Posts: 1,287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great work once again!

Any future plans (or could it be added) that this is only allowed in certain forums? Some of the forums the abbreviations aren't really needed or mean different things.

Thanks again!
Reply With Quote
Благодарность от:
MarkFL
  #23  
Old 12-15-2016, 02:26 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KevinL View Post
Great work once again!

Any future plans (or could it be added) that this is only allowed in certain forums? Some of the forums the abbreviations aren't really needed or mean different things.

Thanks again!
I hadn't planned on it, but I can add a setting for active forums. However, having forum-specific lists of acronyms I don't plan on doing as that would be overly convoluted and simply not worth the effort to code.
Reply With Quote
Благодарность от:
KevinL
  #24  
Old 12-15-2016, 02:30 AM
KevinL KevinL is offline
 
Join Date: Apr 2005
Posts: 1,287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
I hadn't planned on it, but I can add a setting for active forums. However, having forum-specific lists of acronyms I don't plan on doing as that would be overly convoluted and simply not worth the effort to code.
Excellent! No. One set is perfect as long as it can be shut off - or not included in chosen forums.

Also I just noticed it trying to rewrite a color code. In the post the color was changed to [ COLOR=#0000CD ] And there was an abbreviation for CD so it broke the code and distorted the whole post. Not sure if there is a way to combat that. But I thought I would bring it to your attention.

Thanks Mark!
Reply With Quote
  #25  
Old 12-15-2016, 02:41 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KevinL View Post
Excellent! No. One set is perfect as long as it can be shut off - or not included in chosen forums.

Also I just noticed it trying to rewrite a color code. In the post the color was changed to [ COLOR=#0000CD ] And there was an abbreviation for CD so it broke the code and distorted the whole post. Not sure if there is a way to combat that. But I thought I would bring it to your attention.

Thanks Mark!
Thanks for letting me know...I will include a fix for this along with the active forums setting.
Reply With Quote
  #26  
Old 12-15-2016, 03:30 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update - Version 1.4:
  • Admin options processing more efficient.
  • Added setting for "Active Forums."
  • Fixed issue where hex colors within COLOR BBCode containing abbreviations broke posts.
Reply With Quote
  #27  
Old 12-15-2016, 10:13 AM
KevinL KevinL is offline
 
Join Date: Apr 2005
Posts: 1,287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the update.

Another thing that was noticed if browsing the site on mobile or tablet the underlined words are now tiny compared to the normal words. It can get a little distracting if there are enough abbreviations.

Thanks again Mark
Reply With Quote
  #28  
Old 12-15-2016, 10:26 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't use any mobile devices, so I wouldn't be able to test that. That likely has to do with a HTML shortcoming in the browsers those devices use.
Reply With Quote
  #29  
Old 12-15-2016, 01:21 PM
KevinL KevinL is offline
 
Join Date: Apr 2005
Posts: 1,287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only way I could fix it if I added the following to the headinclude template. If I didn't include the If statement it distorted the rest of the forum. This issue only seems to come up on Chrome for mobile. Firefox mobile seems to work without issue

Code:
<vb:if condition="THIS_SCRIPT == 'showthread'">
<meta name="viewport" content="width=auto, initial-scale=1">
</vb:if>
I was looking to use something like this https://osvaldas.info/elegant-css-an...obile-friendly within your mod but I didn't know where to start right now haha It seems to be working OK except for mobile devices but you already stated it wouldn't work so we're good.

Thanks for the great work Mark!
Reply With Quote
  #30  
Old 02-07-2017, 11:43 AM
hugoroger hugoroger is offline
 
Join Date: Sep 2012
Location: Brazil
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice @MarkFL! I installed this one to use it combined with the blurbs plugin. Question. Do you know if we can configure the abbreviation to be a hyperlink? As in, instead of just appearing the help text, can we add a link to it ? I tried using bbcode to add it but it didn't work. Is this something possible?
Reply With Quote
  #31  
Old 02-07-2017, 12:01 PM
hugoroger hugoroger is offline
 
Join Date: Sep 2012
Location: Brazil
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey again Mark! Just wanted to add a quick folloe up.

Okay.. so I went ahead and installed this plug in (FUZZY SEO Auto Linker) to try to create links in the blurbs but apparently it didn't work. :/

I have an example here. Where I used the blurb plug in to add the word : "joyXwriter" to the bottom of all posts. Now, you can see I configured the hyperlink correctly because in the OP, I added the same sample word by text and the auto linked picked up. Does the plugin(Abbreviations/Acronyms) support this option with HTML or BBcode?
Reply With Quote
Reply


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 08:33 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.08951 seconds
  • Memory Usage 2,356KB
  • Queries Executed 26 (?)
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
  • (1)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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