Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Aug 9, 2005 10:51:04 GMT
Main Footer:This lets you give boards a "fake" post or thread count <script type="text/javascript"> <!-- function changePost(board,posts,threads) { var td = document.getElementsByTagName('td'); for(i=0; i<td.length; i++) { if(td.width == '66%' && td.innerHTML.match(new RegExp('board='+board))) { cThread = td[i+1].firstChild.innerHTML.replace(',',''); threads += parseInt(cThread); td[i+1].firstChild.innerHTML = threads; cPost = td[i+2].firstChild.innerHTML.replace(',',''); posts += parseInt(cPost); td[i+2].firstChild.innerHTML = posts; break; } } }
changePost('general',200,150);
//--> </script>changePost(' general', 200, 150); The Blue line is the one you need to edit with the board ID, the additional posts and the additional threads You can repeat that line for each board you want to change.
|
|
Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Apr 4, 2007 22:51:48 GMT
|
|