<***** type="text/java*****">
/* QUICK REPLY: Add quick reply to topic listings
Before you can use this *****, you must change your "add reply" image as follows:
Old image: http://www.somehost.com/someimage.gif
New image: 'http://www.somehost.com/someimage.gif' name='addreplybutton'
*/
if ( document.location.href.indexOf(".showMessage") != -1 ) {
/* Comment the lines below out or change the value to false
to assume that we will NOT include personal photo
or signature,
or use emoticons
or to show a link to the emoticon list
or to hide the subject box */
// For the following options
// use 0 for never,
// 1 for always,
// 2 to show checkbox (unchecked),
// 3 to show checkbox (checked)
includePersonalPhoto = 1;
includeSignature = 1;
useEmoticons = 3;
convertLinks = 3;
stayInTopic = 2;
linkEmoticonList = false;
postType = "ezcodes"; // use "text" for plain text
showSubjectBox = true;
subjectSize = 60;
messageCols = 60;
messageRows = 4;
addReplyButton = document.getElementsByName("addreplybutton").item(1);
QRCell = addReplyButton.parentNode;
while ( QRCell.nodeName != "TR" ) {
QRCell = QRCell.parentNode;
}
QRCell = QRCell.getElementsByTagName("td").item(0);
QRForm = document.createElement("form");
QRForm.method = "post";
QRForm.action = document.location.href.replace(/.showMessage[^\?]*\?/, ".addReplyFromWeb?");
QRForm.name = "PostMessage";
QRSubject = document.createElement("input");
QRSubject.value = document.title.replace(" - www.ezboard.com", "");
QRSubject.id = "quickreplysubject";
QRSubject.name = "subject";
if ( showSubjectBox ) {
QRSubject.type = "text";
QRSubject.className = "inputbox";
QRSubject.maxLength = 60;
QRSubject.size = subjectSize;
QRSubject.tabIndex = 3;
QRSubject.style.marginRight = "3px";
} else {
QRSubject.type = "hidden";
}
QRBody = document.createElement("textarea");
QRBody.rows = messageRows;
QRBody.cols = messageCols;
QRBody.id = "quickreplybody";
QRBody.className = "inputbox";
QRBody.value = "";
QRBody.name = "body";
QRBody.tabIndex = 4;
QRSubmit = document.createElement("input");
QRSubmit.type = "submit";
QRSubmit.className = "inputbutton";
QRSubmit.id = "quickreplysubmit";
QRSubmit.value = "Quick Reply";
QRSubmit.tabIndex = 5;
QRCell.align = "right";
QRCell.appendChild(QRForm);
/* Uncomment the commented lines to add labels for the two boxes */
// QRForm.appendChild(document.createTextNode("Subject: "));
QRForm.appendChild(QRSubject);
QRForm.appendChild(QRSubmit);
// QRForm.appendChild(document.createElement("br"));
// QRForm.appendChild(document.createTextNode("Message: "));
QRForm.appendChild(document.createElement("br"));
QRForm.appendChild(QRBody);
QRForm.appendChild(document.createElement("br"));
if ( includeSignature > 0) {
QRForm.appendChild(QROption("includeSignature","Include custom signature.", includeSignature));
}
if ( includePersonalPhoto > 0) {
QRForm.appendChild(QROption("includePersonalPhoto","Include personal photo.", includePersonalPhoto));
}
if ( useEmoticons > 0 ) {
QRForm.appendChild(QROption("emoticons","Use Emoticons.",useEmoticons));
}
if ( convertLinks > 0 ) {
QRForm.appendChild(QROption("convertLinks","Convert URL links.",convertLinks));
}
if ( stayInTopic > 0) {
QRForm.appendChild(QROption("stayInTopic","Stay in topic", stayInTopic));
}
QRpt = document.createElement("input");
QRpt.type = "hidden";
QRpt.name = "postType";
QRpt.value = postType;
QRForm.appendChild(QRpt);
if ( linkEmoticonList ) {
eListLink = document.createElement("a");
eListLink.href = "http://" + ezFullPub + ".ezboard.com/b" + ezBoardID + ".showEmoticonsHelp";
eListLink.target = "_blank";
eListLink.innerHTML = "complete emoticon list";
QRForm.appendChild(document.createElement("br"));
QRForm.appendChild(eListLink);
}
}
function QROption(sName, sLabel, iShowState) {
if ( iShowState > 0 ) {
QROpt = document.createElement("span");
QROpt.id = "span" + sName;
QRCheckBox = document.createElement("input");
QRCheckBox.name = sName;
QRCheckBox.id = sName;
QRCheckBox.value = "on";
if ( iShowState > 1 ) {
QRCheckBox.type = "checkbox";
// checkbox label
QRCheckBoxLabel = document.createElement("label");
QRCheckBoxLabel.htmlFor = sName;
QRCheckBoxLabel.innerText = sLabel;
if ( iShowState > 2 ) {
QRCheckBox.defaultChecked = true;
}
QROpt.appendChild(QRCheckBox);
QROpt.appendChild(QRCheckBoxLabel);
} else {
QRCheckBox.type = "hidden";
QROpt.appendChild(QRCheckBox);
}
return QROpt;
}
}
/* END QUICK REPLY */
Official Astros Site
Orange Whoop Ass