To get access to the attachments Subscribe now

Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[1.6] Abbreviations
04-29-2010, 06:15 AM (This post was last modified: 03-31-2012 10:20 PM by Lennart.)
Post: #1
[1.6] Abbreviations
There is a new version of this plugin for MyBB 1.6.6+ 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, 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:

.png  manage.png (Size: 71.37 KB / Downloads: 67)
ACP overview + deleting

.png  Abbreviations - Add abbreviation_1272483824295.png (Size: 12.7 KB / Downloads: 75)
ACP adding

.png  thread with hint.png (Size: 80.58 KB / Downloads: 54)
Turns out in the showthread as

.png  Board Settings - Abbreviations plugin_1272485521632.png (Size: 13.6 KB / Downloads: 44)
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: 28)
With downloading this plugin you agree with the 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
Visit this user's website Find all posts by this user
Quote this message in a reply
04-29-2010, 07:12 AM
Post: #2
Wink RE: Abbreviations
Great addon lennart let me be the first to say thank youTongue
Find all posts by this user
Quote this message in a reply
04-29-2010, 07:37 AM
Post: #3
RE: Abbreviations
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?
Find all posts by this user
Quote this message in a reply
04-29-2010, 08:13 AM
Post: #4
RE: Abbreviations
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 cannot view this code until you login or register
replace with custom CSS like I did with color:red; here:
Code:
You cannot view this code until you login or register
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
Visit this user's website Find all posts by this user
Quote this message in a reply
Today, 00:00 AM
Advertisement
05-13-2010, 07:15 AM
Post: #5
RE: Abbreviations
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?
Find all posts by this user
Quote this message in a reply
05-14-2010, 03:17 AM
Post: #6
RE: Abbreviations
Thank you Smile

Dotted underlines hmm, you could try something like that:
Code:
You cannot view this code until you login or register

Found via google, didn't try it.

Forum Admin
Visit this user's website Find all posts by this user
Quote this message in a reply
05-15-2010, 07:20 AM (This post was last modified: 05-15-2010 07:22 AM by Disciple of Nagash.)
Post: #7
RE: Abbreviations
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?"
Find all posts by this user
Quote this message in a reply
05-15-2010, 07:57 AM
Post: #8
RE: Abbreviations
I understand.
Could you please try the following:
In the plugin file at line 156 find:
PHP Code:
You cannot view this code until you login or register
replace with:
PHP Code:
You cannot view this code until you login or register

If that does not work out I'll have to look for a better regex...

Forum Admin
Visit this user's website Find all posts by this user
Quote this message in a reply
Today, 00:00 AM
Advertisement
Hostgator
05-15-2010, 08:49 AM
Post: #9
RE: Abbreviations
Hey,

That didn't work. It through up about 2/3 pages worth of database errors?
Find all posts by this user
Quote this message in a reply
05-15-2010, 11:07 AM
Post: #10
RE: Abbreviations
Database errors? Something was wrong then lol Big Grin

Forum Admin
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MybbAddons | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication
This site is property of Lennart Sauter, powered by Zaiendo.de.