MyBB Community Forums

Full Version: Abbreviations
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was wondering if anyone could make a plugin where the admin can type in a word, perhaps, LOL, and when a user hovers over that word, in a description box thing will say Laugh Out Loud.
You can do this with a MyCode.

Title: Abbreviations
Short Description: Add a tooltip definition to abbreviations

Regular Expression:

\[abbr\=(.*?)\](.*?)\[/abbr\]

Replacement:

<abbr title="$1">$2</abbr>

Usage:

[abbr=Laugh Out Loud]LOL[/abbr]
Haha.. I know that. But I dont want the users to be able to make them. I want to make them in the ACP.
In that case, if no one creates a free plugin for you, you could try this.
You can use the Advanced MyCode Permissions plugin to restrict the groups that can use it.