To get access to the attachments Subscribe now

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[1.6] Abbreviations
#1
There is a new version of this plugin for MyBB 1.6.6+ [Image: external.png]here!


Name: Abbreviations
Description: If your users do like abbreviations, you might like this plugin.
It allows the admin to add common abbreviations and a explanation of these abbreviations in Admin CP and these explanations will be displayed if a user hovers over an abbreviation in a post.
For better understanding, [Image: external.png]this is the original request by Disciple of Nagash, credits to him.
You can of course use this for any help text or something else too.

Features:
- fully language compatible using language files (english and german language included!)
- settings as known from all of my plugins
- complete new ACP page under configuration

Note: If you do add a lot of abbreviations, it might slow down your forum. Decrease the ammount if you feel that sites are loading slower.
Demo: -
Version: 1.1
Compatibility: 1.4.x / 1.6.x
Adds files: yes
Changes files: no
Adds templates: no
Changes templates: no
Adds to database: yes
Changes database: no

Screenshots:
   
ACP overview + deleting
   
ACP adding
   
Turns out in the showthread as
   
Settings page

Installation:
Inside the ZIP-Archive you will find several folders, upload all of them to your MyBB-root. Install+Activate the plugin.
Then you should see a new menu item under config in ACP called "Abbreviations". Add new abbreviations there.
At the end, don't forget to adjust the settings to your needs!

Upgrade from Version 1.0 to 1.1:
Overwrite the old inc/plugins/abbreaviations.php with the new one from the archive. You don't need to activate/install the plugin again.

Download for subscribers:

.zip   Abbreviations.zip (Size: 6.92 KB / Downloads: 29)
With downloading this plugin you agree with the [Image: external.png]license rules.

Changelog:
1.0 first release
1.1 fixed abbreviations inside other words (only stand alone words are now taken as abbreviations)
Forum Admin
Reply
#2
Wink 
Great addon lennart let me be the first to say thank youTongue
Reply
#3
Nooooooo! I wanted to be the first to say thank you! Curse you Scarface! Smile

Anyway I have tested this and it is working great. The only thing I would like is the ability to format the abbreviation, so it stands out and makes it clear that is a abbrev that can be hovered over?
Reply
#4
That can be done of course, I can eighter add a setting for it or you can do it yourself.

Find in the inc/plugins/abbreviations.php in line 156:
Code:
You are not allowed to see code.
replace with custom CSS like I did with color:red; here:
Code:
You are not allowed to see code.
Note: The \" are necessary to be placed before and after the content of style.

Matching CSS attributes could be for example:
underlined text: text-decoration:underline
italic text: font-style:italic
Don't forget to close CSS arguments with ;

Best regards and thanks to you two
Lennart Sauter
Forum Admin
Reply
#5
Just wanted to say I did this and it is working fantastically! One of the best and easiest plugins ever!

One quick question - do you know what the CSS attribute is for a dotted underline?
Reply
#6
Thank you Smile

Dotted underlines hmm, you could try something like that:
Code:
You are not allowed to see code.

Found via google, didn't try it.
Forum Admin
Reply
#7
Hey, that worked - thanks very much.

However I have noted a slight issued with the plugin, either picking up letters out of words when it shouldn't, for example one of my abbrev is BB which is an abbrev of Biting Blade. However it highlights BB if I write MyBB. Basically it should not be selecting letters out of the middle of a word.

Secondly, it also seems to get confused over which abbrev to us. If I have two abbrev such as:

WHFB = Warhammer Fantasy Battle
FB = Fell Blade

It is for some reason only show the abbrev for the FB in WHFB.

Hope that makes sense?

EDIT: It is also doing it if someone write in capitals, such as I have an abbrev AT = Abyssal Terror, but it will highlight the AT if someone writes "WHAT?"
Reply
#8
I understand.
Could you please try the following:
In the plugin file at line 156 find:
You are not allowed to see php code.replace with:
You are not allowed to see php code.
If that does not work out I'll have to look for a better regex...
Forum Admin
Reply
#9
Hey,

That didn't work. It through up about 2/3 pages worth of database errors?
Reply
#10
Database errors? Something was wrong then lol Big Grin
Forum Admin
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)