"<a href=""Javascript:list();"" tabindex=""-1"">" & getCurrentIcon(strIconEditorList,"Insert List","align=""top""") & "</a>" & vbNewLine & _"<a href=""Javascript:spoiler();"" tabindex=""-1"">" & getCurrentIcon(strIconEditorTags,"Insert Spoiler","align=""top""") & "</a>" & vbNewLinefunction strike() {
var text = getText();
if (helpstat) {
alert("Strike-Through Tag Makes the enclosed text have a line through it.\n\nUSE: This is some stricken text");
} else if (basic) {
AddTxt="[s]" + text + "[ /s]";
AddText(AddTxt);
} else {
if (text) {
txt=prompt("Text to be stricken.",text);
} else {
txt=prompt("Text to be stricken.","Text");
}
if (txt!=null) {
AddTxt="[s]"+txt+"[ /s]";
AddText(AddTxt);
}
}
}function spoiler() {
var text = getText();
if (helpstat) {
alert("The Spoiler Tag makes the enclosed text HIDDEN.\n\nUSE: [spoiler]This is some hidden text[ /spoiler]");
} else if (basic) {
AddTxt="[spoiler]" + text + "[ /spoiler]";
AddText(AddTxt);
} else {
if (text) {
txt=prompt("Text to be made hidden.",text);
} else {
txt=prompt("Text to be made hidden.","Text");
}
if (txt!=null) {
AddTxt="[spoiler]"+txt+"[/ spoiler]";
AddText(AddTxt);
}
}
}Originally posted by leatherlips
In inc_post_buttons.asp look for and add the part in red:
Then in inc_func_common.asp look for:Code:function strike() {
var text = getText();
if (helpstat) {
alert("Strike-Through Tag Makes the enclosed text have a line through it.\n\nUSE:This is some stricken text");
} else if (basic) {
AddTxt="[s]" + text + "[ /s]";
AddText(AddTxt);
} else {
if (text) {
txt=prompt("Text to be stricken.",text);
} else {
txt=prompt("Text to be stricken.","Text");
}
if (txt!=null) {
AddTxt="[s]"+txt+"[ /s]";
AddText(AddTxt);
}
}
}
If you do not find this bit of code in "inc_func_common.asp", look in the javascript folder (js\) for a file titled "inc_code.js". Then just copy/paste where it belongs in that file instead.<
function spoiler() {
var text = getText();
if (helpstat) {
alert("The Spoiler Tag makes the enclosed text HIDDEN.\n\nUSE: [spoiler]This is some hidden text[ /spoiler]");
} else if (basic) {
AddTxt="[spoiler]" + text + "[ /spoiler]";
AddText(AddTxt);
} else {
if (text) {
txt=prompt("Text to be made hidden.",text);
} else {
txt=prompt("Text to be made hidden.","Text");
}
if (txt!=null) {
AddTxt="[spoiler]"+txt+"[/ spoiler]";
AddText(AddTxt);
}
}
}function tag() {
var text = getText();
if (helpstat) {
alert("The tag function makes the enclosed text HIDDEN.\n\nUSE: [tag]This is some hidden text[/tag]");
} else if (basic) {
AddTxt="[tag]" + text + "[/tag]";
AddText(AddTxt);
} else {
if (text) {
txt=prompt("Text to be made hidden.",text);
} else {
txt=prompt("Text to be made hidden.","Text");
}
if (txt!=null) {
AddTxt="[tag]"+txt+"[/tag]";
AddText(AddTxt);
}
}
}fString = doCode(fString, "[spoiler]", "[/ spoiler]", "<font color=""" & CColor & """>", "</font id=""" & CColor & """>")fString = doCode(fString, "[tag]", "[/tag]", "<font color=""" & CColor & """>", "</font id=""" & CColor & """>")"<a href=""Javascript:spoiler();"" tabindex=""-1"">" & getCurrentIcon(strIconEditorTags,"Insert Spoiler","align=""top""") & "</a>" & vbNewLine"<a href=""Javascript:tag();"" tabindex=""-1"">" & getCurrentIcon(strIconEditorTags,"Insert Tags","align=""top""") & "</a>" & vbNewLine