|
Post by Wormopolis on Dec 20, 2008 3:53:31 GMT -8
Browser tested: IE and FF placement: global footer
hides signatures from profiles and posts, only registered members will be able to see them.
<script type="text/javascript"> <!-- // hide signatures from guests // by Wormopolis // do not repost
if (pb_username=='Guest') { if (location.href.match(/action=display/i)) { tds=document.getElementsByTagName('td'); for (a=0; a<tds.length; a++) { if (tds[a].getElementsByTagName('hr').length>0 && tds[a].getElementsByTagName('table').length==0) { if (tds[a].parentNode.nextSibling.getElementsByTagName('hr').length>0) { sig_poss=tds[a].parentNode.nextSibling.getElementsByTagName('hr')[0].parentNode; sig_poss.style.display="none"; } } } } if (location.href.match(/action=viewprofile/i)) { tbs=document.getElementsByTagName('b'); for (b=0; b<tbs.length; b++) { if (tbs[b].innerHTML=='Signature') { sig_poss1 = tbs[b].parentNode.parentNode.parentNode; sig_poss2 = tbs[b].parentNode.parentNode.parentNode.nextSibling; sig_poss1.style.display="none"; sig_poss2.style.display="none"; } } } } // --> </script>
Preview: self explanatory
|
|