MyBB Community Forums

Full Version: Replicating the Javascript prompt for other code buttons.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When someone clicks the Hyperlink code button, that little Javascript prompt appears to enter in the =*texthere* and the stuff in between the tags.

Is there any way to add that functionality to other code buttons? I have ones such as a User CP Link and a Acronym tag that this would be useful for (since it needs the =*texthere* to function).

[acronym=*fulltext*]*shorthandname*[/acronym]

Basically, I need a prompt to appear to enter the fulltext field and one after that for the shorthandname field. I assuming it is copying and pasting what the Hyperlink code button uses, but I couldn't find it anywhere. x_x

Any help is greatly appreciated. Smile
(Bump.)

If anyone knows how to do this, it would be extremely helpful. ^.^