I created some new custom functions for UBB Threads so I could break up the $ubbt_instant_ubbcode variable and everything is working great except for the "?" in the font colors -I can't seem to get the prompt for the user to enter the color. No errors on the page, it just doesn't work. Attached is the tamplate -any ideas? I verified that the language strings the the java script function needs are there. This one has me pulling my hair out -I'm just too tired right now to see it...
You redefine function DoPrompt further down in the page. It's most likely that this function is the one the browser is interpreting, and since there is no catch to see if action=="color", it goes on it's merry little way
I am tying to make the instant ubbcode markup a little friendlier and am having good progress with firefox, but I can not get it to work with IE. The goal is to be able to double click a word, then choose formatting, and the changes are immediately applied. You can test it with firefox to get the idea.
If you know how to do this, please download the attachment and do your best
I reworked the way how Instant UBB Code functions behave.
The buttons for Center, Superscript and Subscript were added and the behavior of some of the tags was changed. Now you are able to highlight a word first, and then press one of the following tags: Bold, Italics, Underline, Quote, Code, Center, Superscript and Subscript.
These enhancements work in Internet Explorer, Firefox and Mozilla. They don't work in Konqueror, not sure about other browsers.