Post by Ross on Jul 29, 2005 13:46:42 GMT
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
elindir - 101support.proboards43.com
do not reproduce, edit or redistribute without permission */
if(!location.href.match(/ion=headers/)) {
var test = "#nosignature#";
var sig = document.getElementsByTagName("font");
for(e=0; e<sig.length; e++) {
if(sig[e].size=="2" && sig[e].innerHTML.match(test) && sig[e].parentNode.colSpan=="3")
{
sig[e].innerHTML = sig[e].innerHTML.replace(test,'');
sig[e].parentNode.parentNode.parentNode.lastChild.firstChild.lastChild.style.display = 'none';
}
else if(sig[e].size=="1" && sig[e].innerHTML.match(test) && sig[e].parentNode.width=="100%")
{
sig[e].innerHTML=sig[e].innerHTML.replace(test,'');
}
}
}
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">Diable 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(test))
{
document.postForm.message.value = document.postForm.message.value.replace(test,'');
document.getElementById('signature').checked = true;
}
document.postForm.onsubmit = function()
{
if(document.getElementById('signature').checked==true)
document.postForm.message.value += test;
return true;
}
}
//-->
</script>
Any problems or suggestions for improvements then let me know
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
elindir - 101support.proboards43.com
do not reproduce, edit or redistribute without permission */
if(!location.href.match(/ion=headers/)) {
var test = "#nosignature#";
var sig = document.getElementsByTagName("font");
for(e=0; e<sig.length; e++) {
if(sig[e].size=="2" && sig[e].innerHTML.match(test) && sig[e].parentNode.colSpan=="3")
{
sig[e].innerHTML = sig[e].innerHTML.replace(test,'');
sig[e].parentNode.parentNode.parentNode.lastChild.firstChild.lastChild.style.display = 'none';
}
else if(sig[e].size=="1" && sig[e].innerHTML.match(test) && sig[e].parentNode.width=="100%")
{
sig[e].innerHTML=sig[e].innerHTML.replace(test,'');
}
}
}
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">Diable 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(test))
{
document.postForm.message.value = document.postForm.message.value.replace(test,'');
document.getElementById('signature').checked = true;
}
document.postForm.onsubmit = function()
{
if(document.getElementById('signature').checked==true)
document.postForm.message.value += test;
return true;
}
}
//-->
</script>
Any problems or suggestions for improvements then let me know