|
Post by Wormopolis on Aug 15, 2010 2:33:27 GMT -8
Browser Tested: IE and FF placement: Global Header and Main Footer
This will remove the "New Topics" button from the menu bar and place it in the Info Center when on main page. just removes it everywhere else.
Global Header code (very top):
<script type="text/javascript"> <!-- // remove "new topics" from all pages // by Wormo
for (lnks=document.getElementsByTagName('a'), l=0; l<lnks.length; l++) { if (lnks[l].href.match(/newestthreads/)) { lnks[l].nextSibling.nodeValue=''; lnks[l].style.display='none'; lnks[l].id='nwtopicsbtn'; break; } } // --> </script>
code for top of Main Footer:
<script type="text/javascript"> <!-- // relocate "new topics" button into infocenter // by Wormo
if (pb_action=='home' && document.getElementById('nwtopicsbtn')) { for (lnks=document.getElementsByTagName('a'), l=lnks.length-1; l>0; l--) { if (lnks[l].href.match(/action=recent$/)) { lnks[l].parentNode.appendChild(document.createElement('br')); lnks[l].parentNode.appendChild(document.getElementById('nwtopicsbtn')); document.getElementById('nwtopicsbtn').style.display=''; break; } } } // --> </script>
|
|