This is a JavaScript "hack" to implement a version of the "Instant Code" routines I have seen on a variety of boards. Some of the code is from the various versions posted here; I hope that the authors do not mind that I built with it. A major improvement over the ones that I have seen is that the same code will work on all the posting forms.
In the editpost, newreply and newthread templates, add the line
just before the </HEAD> code.
Wherever you want to add the Instant Code Helper (I put it just after the Message: and blurb, beside the composition window), add the code
In the main forum directory, not the Admin directory, place the two JavaScript files, instantcode.js and instanthtml.js. In the Images directory, place the transparent vertical bar, transparent.gif. (See the following message for the files, as they are no longer on my board since the 2.0.3 upgrade.)
In the editpost, newreply and newthread templates, add the line
Code:
<SCRIPT LANGUAGE="JavaScript" SRC="instantcode.js"></SCRIPT>
Wherever you want to add the Instant Code Helper (I put it just after the Message: and blurb, beside the composition window), add the code
Code:
<SCRIPT LANGUAGE="JavaScript" SRC="instanthtml.js"></SCRIPT>
Comment