geke hand
E Z B O A R D
Quick Reply

<< updated: 2/11/2005

Summary: Add a form to reply to the topic from the topic page.

Details:

To use the "linkEmoticons" option, you must have the ezURL script in place on your board.

HEAD: (box #1)

<script type="text/javascript">
/* FUNCTION TO GET ELEMENTS WITH TAG/ATTRIBUTE/VALUE */
function getElementsByAttribute (tag, attr, value, stopat) {
var re;
var foundels;
var iFound;
var sAttrValue;

checkels = document.getElementsByTagName(tag);
foundels = new Array();

for (el = 0; el < checkels.length; el++) {
sAttrValue = checkels[el].getAttribute(attr, 2);
re = new RegExp(value, "ig");
if (re.test(sAttrValue) != 0) {
iFound = foundels.push(checkels[el]);
if (stopat > 0 && iFound >= (stopat)) {
el = checkels.length;
}
}
}

return foundels;
}
/* END FUNCTION TO GET ELEMENTS WITH TAG/ATTRIBUTE/VALUE */
</script>

HEAD Notes:

This is a new support function which gets the "add reply button" so that the Quick Reply can be placed where we want it.

FOOTER: (box #4)

FOOTER Notes:

You can comment out the includePersonalPhoto and includeSignature lines to turn those features on or off by default for quick replies.

There are some labels for the two boxes that are commented out by default. Uncomment them if you want labels on the boxes.

To add "Re: " to the subject, change the line:

QRSubject.value = document.title.replace(" - www.ezboard.com", "");

to:

QRSubject.value = "Re: " + document.title.replace(" - www.ezboard.com", "");

This script DOES NOT work with the following layouts:

These layouts don't show the addreply button. It may be possible to name the "next topic" button "addreplybutton" on CLEAN in order to use the script, but I have not tested that configuration.

History:

2/11/2005 - added html style, removed requirement for changing add/reply image.
2/11/2005 - fixed Prev/Next issue
6/27/2004 - fixed Opera/Safari bug (innerText changed to innerHTML)
1/1/2004 - added more options, display of options
8/21/2003 - added plain text / ezcodes option
7/27/2003 - added option for emoticon list link
7/11/2003 - added info for "Re:" in subject line.
3/28/2003 - created

Credits:

written by phalen180 Prev/Next update help from Disco Deek

E Z B O A R D

design by G E K E . N E T
best viewed in 1024x768 screen resolution using a standards compliant browser
logo based on a public domain drawing of a hand making the sign of the cross, no disrespect is intended
all other contents and code copyright © 2002-2005 jonathan cook

Valid HTML 4.01! Valid CSS!