There is a javascript for IF to remove birthdays/forthcoming events sections at the bottom of the forum when there are none, and when there are some it reapears, the code is:
Code:
<script type='text/javascript'>
<!--
// remove birthdays/forthcoming events when there are none
// code by ticlo/Stefan
e = document.getElementsByTagName('TD')
for (n = 0; n < e.length; n++) {
if (e[n].className == 'pformstrip' && (e[n].innerHTML.match(/^Forthcoming Calendar Events within the next [0-9]+ days$/) || e[n].innerHTML.match(/^Today's Birthdays$/))){
for (pt = e[n].parentNode; pt.nodeName != 'TABLE'; pt = pt.parentNode);
nr = pt.rows[e[n].parentNode.rowIndex + 1]
if (nr.cells[1].getElementsByTagName('A').length == 0){
e[n].parentNode.style.display = 'none'
nr.style.display = 'none'
}}}
// -->
</script>
The problem is, i dont know where to add it on my IPB, i think i will have to edit a file using my FTP, but I dont know which one. Can someone tell me if this IF script will work with IPB, and if it will work can you tell me where it goes please?