Post by Ross on Jul 29, 2005 5:51:31 GMT -8
Global Footer
This will add a check box below "Disable Smilies" giving you the option to remove your signature from that post
<script type="text/javascript">
<!--
/* disable signature checkbox
ross - 101support.proboards43.com
do not reproduce, edit or redistribute without permission */
if(!location.href.match(/ion=headers/)) {
var disableSigtest = "#nosignature#";
var sig = document.getElementsByTagName("font");
for(e=0; e<sig.length; e++) {
if(sig[e].size=="2" && sig[e].innerHTML.match(disableSigtest) && sig[e].parentNode.colSpan=="3")
{
sig[e].innerHTML = sig[e].innerHTML.replace(disableSigtest ,'');
sig[e].parentNode.parentNode.parentNode.lastChild.firstChild.lastChild.style.display = 'none';
}
else if(sig[e].size=="1" && sig[e].innerHTML.match(disableSigtest) && sig[e].parentNode.width=="100%")
{
sig[e].innerHTML=sig[e].innerHTML.replace(disableSigtest,'');
}
}
}
if(document.postForm && document.postForm.notify) {
target = document.postForm.notify.parentNode.parentNode;
var irow = document.createElement('tr');
irow.className = "windowbg";
target.parentNode.insertBefore(irow, target)
var desCell = target.previousSibling.insertCell(0);
desCell.innerHTML = '<font size="2">Disable Signature:</font>';
var checkCell = target.previousSibling.insertCell(1);
checkCell.innerHTML='<input type="checkbox" id="signature" /> <font size="1">Check this box to hide your signature</font>';
if(document.postForm.message.value.match(disableSigtest ))
{
document.postForm.message.value = document.postForm.message.value.replace(disableSigtest ,'');
document.getElementById('signature').checked = true;
}
function disableSigCheck()
{
if(document.getElementById('signature').checked==true)
document.postForm.message.value += disableSigtest ;
return true;
}
if (document.postForm.addEventListener) {
document.postForm.addEventListener('submit',disableSigCheck,true);
} else {
document.postForm.attachEvent('onsubmit',disableSigCheck);
}
}
//-->
</script>
*Modified 8/14/2012 - used event handlers so it plays well with other codes - Wormopolis
This will add a check box below "Disable Smilies" giving you the option to remove your signature from that post
<script type="text/javascript">
<!--
/* disable signature checkbox
ross - 101support.proboards43.com
do not reproduce, edit or redistribute without permission */
if(!location.href.match(/ion=headers/)) {
var disableSigtest = "#nosignature#";
var sig = document.getElementsByTagName("font");
for(e=0; e<sig.length; e++) {
if(sig[e].size=="2" && sig[e].innerHTML.match(disableSigtest) && sig[e].parentNode.colSpan=="3")
{
sig[e].innerHTML = sig[e].innerHTML.replace(disableSigtest ,'');
sig[e].parentNode.parentNode.parentNode.lastChild.firstChild.lastChild.style.display = 'none';
}
else if(sig[e].size=="1" && sig[e].innerHTML.match(disableSigtest) && sig[e].parentNode.width=="100%")
{
sig[e].innerHTML=sig[e].innerHTML.replace(disableSigtest,'');
}
}
}
if(document.postForm && document.postForm.notify) {
target = document.postForm.notify.parentNode.parentNode;
var irow = document.createElement('tr');
irow.className = "windowbg";
target.parentNode.insertBefore(irow, target)
var desCell = target.previousSibling.insertCell(0);
desCell.innerHTML = '<font size="2">Disable Signature:</font>';
var checkCell = target.previousSibling.insertCell(1);
checkCell.innerHTML='<input type="checkbox" id="signature" /> <font size="1">Check this box to hide your signature</font>';
if(document.postForm.message.value.match(disableSigtest ))
{
document.postForm.message.value = document.postForm.message.value.replace(disableSigtest ,'');
document.getElementById('signature').checked = true;
}
function disableSigCheck()
{
if(document.getElementById('signature').checked==true)
document.postForm.message.value += disableSigtest ;
return true;
}
if (document.postForm.addEventListener) {
document.postForm.addEventListener('submit',disableSigCheck,true);
} else {
document.postForm.attachEvent('onsubmit',disableSigCheck);
}
}
//-->
</script>
*Modified 8/14/2012 - used event handlers so it plays well with other codes - Wormopolis