Post by CrAzY_J on Sept 17, 2005 9:25:39 GMT -8
Description: this will add a bar between the stickied threads and the none stickied threads.
preview: Preview
<script language="javascript">
/*
Sticky Splitter V1.0
Created by CrAzY_J - hatakeforum.proboards30.com
Do not redistribute or modifify this code without the permission of it's creator
*/
var sticks=/sticky|stickylock/i
if(location.href.match('board=')){
var Tab=document.getElementsByTagName('table');
for(t=0;t<Tab.length;t++){
if(Tab[t].cellPadding=='4' && Tab[t].cellSpacing=='1' && Tab[t].rows[0].cells[0].className=='titlebg'){
var Tr=Tab[t].getElementsByTagName('tr');
for(r=0;r<Tr.length;r++){
if(Tr[r].cells[0].width=='5%' && Tr[r].cells[0].className=='catbg')
Tr[r].cells[2].innerHTML=Tr[r].cells[2].innerHTML.replace('Subject','Important Threads')
if(Tr[r].cells[0].width=='5%' && Tr[r].cells[0].className=='windowbg2' && !Tr[r].innerHTML.match(sticks)){
var Irow=Tab[t].insertRow(r-1);
var iCell1=Irow.insertCell(0);var iCell2=Irow.insertCell(1);
iCell1.colSpan=document.ammForm?2:1;
var iCell3=Irow.insertCell(2);var iCell4=Irow.insertCell(3);
var iCell5=Irow.insertCell(4);var iCell6=Irow.insertCell(5);
var iCell7=Irow.insertCell(6);
iCell1.className='catbg';iCell3.innerHTML='<font size="2" class="cattext">Normal Threads</font>';
iCell2.className='catbg';iCell4.innerHTML='<font size="2" class="cattext">Started By</font>';
iCell3.className='catbg';iCell5.innerHTML='<font size="2" class="cattext">Replies</font>';
iCell4.className='catbg';iCell6.innerHTML='<font size="2" class="cattext">Views</font>';
iCell5.className='catbg';iCell7.innerHTML='<font size="2" class="cattext">Last Post</font>';
iCell6.className='catbg';iCell7.className='catbg';
break;
}}}}}
</script>
Edit: Goes in Global Footers
*Bug fix 12/28/10: now works in advanced mnoderation correctly (Eton) - Wormo
preview: Preview
<script language="javascript">
/*
Sticky Splitter V1.0
Created by CrAzY_J - hatakeforum.proboards30.com
Do not redistribute or modifify this code without the permission of it's creator
*/
var sticks=/sticky|stickylock/i
if(location.href.match('board=')){
var Tab=document.getElementsByTagName('table');
for(t=0;t<Tab.length;t++){
if(Tab[t].cellPadding=='4' && Tab[t].cellSpacing=='1' && Tab[t].rows[0].cells[0].className=='titlebg'){
var Tr=Tab[t].getElementsByTagName('tr');
for(r=0;r<Tr.length;r++){
if(Tr[r].cells[0].width=='5%' && Tr[r].cells[0].className=='catbg')
Tr[r].cells[2].innerHTML=Tr[r].cells[2].innerHTML.replace('Subject','Important Threads')
if(Tr[r].cells[0].width=='5%' && Tr[r].cells[0].className=='windowbg2' && !Tr[r].innerHTML.match(sticks)){
var Irow=Tab[t].insertRow(r-1);
var iCell1=Irow.insertCell(0);var iCell2=Irow.insertCell(1);
iCell1.colSpan=document.ammForm?2:1;
var iCell3=Irow.insertCell(2);var iCell4=Irow.insertCell(3);
var iCell5=Irow.insertCell(4);var iCell6=Irow.insertCell(5);
var iCell7=Irow.insertCell(6);
iCell1.className='catbg';iCell3.innerHTML='<font size="2" class="cattext">Normal Threads</font>';
iCell2.className='catbg';iCell4.innerHTML='<font size="2" class="cattext">Started By</font>';
iCell3.className='catbg';iCell5.innerHTML='<font size="2" class="cattext">Replies</font>';
iCell4.className='catbg';iCell6.innerHTML='<font size="2" class="cattext">Views</font>';
iCell5.className='catbg';iCell7.innerHTML='<font size="2" class="cattext">Last Post</font>';
iCell6.className='catbg';iCell7.className='catbg';
break;
}}}}}
</script>
Edit: Goes in Global Footers
*Bug fix 12/28/10: now works in advanced mnoderation correctly (Eton) - Wormo