|
Post by Wormopolis on Jul 21, 2009 19:18:06 GMT -8
go ahead and add that code to your main footer so it will be easier to see what needs to be moved.
|
|
|
Post by tunescool on Jul 21, 2009 22:18:43 GMT -8
alrite
|
|
|
Post by Wormopolis on Jul 22, 2009 8:04:55 GMT -8
change the resize code to:
<script type="text/javascript"> <!-- var lastPostCell = document.getElementsByTagName('td'); for(l=0; l<lastPostCell.length; l++) { if(lastPostCell[l].className == 'windowbg2' && lastPostCell[l].width == '24%') { lastPostCell[l].width = '30%';lastPostCell[l].align = 'center'; if (lastPostCell[l].firstChild.innerHTML && lastPostCell[l].firstChild.innerHTML.match(/<br>/i)) { temp=lastPostCell[l].firstChild.innerHTML.split(/<br>/i); newtemp=temp[2]+"<br>"+temp[1]+" "+temp[0]; lastPostCell[l].firstChild.innerHTML=newtemp; } tcell=lastPostCell[l].previousSibling.previousSibling.previousSibling; tcell.width = '60%'; if (tcell.getElementsByTagName('div') && tcell.getElementsByTagName('div')[0].id.match(/sub_/)) { subdiv=tcell.getElementsByTagName('div')[0]; tcell.appendChild(subdiv); } }} // --> </script>
|
|
|
Post by tunescool on Jul 22, 2009 8:16:54 GMT -8
this happened
|
|
|
Post by Wormopolis on Jul 22, 2009 8:39:04 GMT -8
woah. odd. it should have just pushed the div to the bottom.. there wasnt anything in there about changing its size...
I'm going to have to put all those codes in on a test site then to see what caused the resize.
|
|
|
Post by tunescool on Jul 23, 2009 2:54:37 GMT -8
would it be easier if i put one in that has them on the bottom? i dint realize it was on the top when i put it in
|
|
|
Post by Wormopolis on Jul 23, 2009 10:09:56 GMT -8
well it would be a start. especially if you have it run after the new thread code. then we could just have it align right.
|
|
|
Post by tunescool on Jul 23, 2009 10:56:00 GMT -8
|
|
|
Post by Wormopolis on Jul 23, 2009 14:52:51 GMT -8
put this under new thread code:
<script type="text/javascript"> <!-- var fjumpList=document.getElementById('forumjump').options;
for (tds=document.getElementsByTagName('td'), i=0; i<tds.length; i++) { if (tds.width=="50%" && tds.className.match(/windowbg/) && tds.align=="left" && tds.firstChild.innerHTML.match(/sub-board/)) { bname=tds.getElementsByTagName('a')[0].href.split('board=')[1]; btitle=tds.getElementsByTagName('b')[0].innerHTML; var dest=document.createElement('div'); dest.innerHTML=""; rgxp=new RegExp("\\\/index.cgi\\\?board="+bname,"i"); for (j=0; j<fjumpList.length; j++) { if (fjumpList[j].value.match(rgxp)) { while (fjumpList[j+1].innerHTML.match(/-{3}\s/)) { holdstuff.innerHTML+="<a href='"+ fjumpList[j+1].value +"'>"+ fjumpList[j+1].innerHTML.replace('--- ','') +"<br></a>"; j++; } break; } } dest.innerHTML=holdstuff; dest.align="right"; tds.appendChild(dest); } }
// --> </script>
|
|
|
Post by tunescool on Jul 23, 2009 22:13:00 GMT -8
what should i do with the sub board code
|
|
|
Post by Wormopolis on Jul 23, 2009 23:23:12 GMT -8
this one should replace it.. but you need to turn back on the sub-boards shown on main page from your general settings.
|
|
|
Post by tunescool on Jul 23, 2009 23:57:49 GMT -8
i took out the sub board code and put the sub boards on
|
|
|
Post by Wormopolis on Jul 24, 2009 0:14:59 GMT -8
dammit... I thought I had it..
replace with this:
<script type="text/javascript"> <!-- var fjumpList=document.getElementById('forumjump').options;
for (tds=document.getElementsByTagName('td'), i=0; i<tds.length; i++) { if (tds.width=="50%" && tds.className.match(/windowbg/) && tds.align=="left" && tds.firstChild.innerHTML.match(/sub-board/)) { bname=tds.getElementsByTagName('a')[0].href.split('board=')[1]; btitle=tds.getElementsByTagName('b')[0].innerHTML; var dest=document.createElement('div'); var holdstuff; dest.innerHTML=holdstuff=""; rgxp=new RegExp("\\\/index.cgi\\\?board="+bname,"i"); for (j=0; j<fjumpList.length; j++) { if (fjumpList[j].value.match(rgxp)) { while (fjumpList[j+1].innerHTML.match(/-{3}\s/)) { holdstuff+="<a href='"+ fjumpList[j+1].value +"'>"+ fjumpList[j+1].innerHTML.replace('--- ','') +"<br></a>"; j++; } break; } } dest.innerHTML=holdstuff; dest.align="right"; tds.appendChild(dest); } }
// --> </script>
|
|
|
Post by tunescool on Jul 24, 2009 0:28:18 GMT -8
|
|
|
Post by Wormopolis on Jul 24, 2009 0:41:52 GMT -8
what do you want sub-boards seperated by? this will be an easy fix.
see this line:
holdstuff+="<a href='"+ fjumpList[j+1].value +"'>"+ fjumpList[j+1].innerHTML.replace('--- ','') +"<br></a>";
the <br> in there is what is causing the new line. replace it with whatever you want to seperate the sub-boards with.
|
|