PDA

View Full Version : Replacing vBcode button


Brian Cruz
01-17-2002, 06:20 PM
I want to replace the "PHP" button with a "Spoiler" one. I already created a spolier tag, and it works fine, it's just a matter of getting the PHP button to do that instead of PHP. This is what I've done so far:

In the vbcode_buttons template, I replaced:


><input type="button" class="bginput" value="PHP" title="PHP CODE" onclick="vbcode(this.form,'PHP','')" onmouseover="stat('php')"


with


><input type="button" class="bginput" value="SPOILER" title="SPOILER CODE" onclick="vbcode(this.form,'SPOILER','')" onmouseover="stat('spoiler')"


And then in the vbcode_language.js file, I replaced:


php_text = "Insert text with PHP syntax highlighting";


with


spoiler_text = "Insert spoilers into your message";


Is there anything else I need to do?