[CB] Lock Thread After X Amount Of Posts Feb 1, 2007 19:02:29 GMT -8 Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by Tylr on Feb 1, 2007 19:02:29 GMT -8 I'd suggest putting this in a board footer, but if you want it to apply to the entire forum, global footer. Posts to lock thread atPosts per page<script language="JavaScript"><!--// Locky thready after X amounty of postitys by T.J.// Original: support.proboards.comvar poststolock=300var postsperpage=15// No Editif(location.href.match('board=') && location.href.match('thread=')){var td=document.getElementsByTagName('td')for(i=0;i<td.length;i++){if(td.align=="left" && td.width=="55%" && td.innerHTML.match('« Reply #')){var num=td.innerHTML.split('#')[1].split(' ')[0]}}if(num>=poststolock){var ah=document.getElementsByTagName('a')for(a=0;a<ah.length;a++){if(ah.href.match('action=post')){ah.style.display='none'}}var td=document.getElementsByTagName('td')for(i=0;i<td.length;i++){if(td.width=="100%" && td.className=="titlebg" && td.innerHTML.match('Quick Reply')){td.parentNode.parentNode.style.display='none'}}}var ah=document.getElementsByTagName('a')for(a=0;a<ah.length;a++){if(ah.href.match('page=') && ah.href.split('page=')[1]>=poststolock/postsperpage && ah[a+1].innerHTML.match('search')){var ah=document.getElementsByTagName('a')for(a=0;a<ah.length;a++){if(ah.href.match('action=post')){ah.style.display='none'}}var td=document.getElementsByTagName('td')for(i=0;i<td.length;i++){if(td.width=="100%" && td.className=="titlebg" && td.innerHTML.match('Quick Reply')){td.parentNode.parentNode.style.display='none'}}}}}// --></script>(Repost if header stays intact)