|
Post by Wormopolis on Jul 24, 2009 20:47:29 GMT -8
this MIGHT push down the sub-boards a little, but since its in the same cell as new thread, its governed by that cells dimensions and properties..
find this line:
var dest=document.createElement('div');
and after it add:
dest.style.paddingTop="3";
|
|
|
Post by Wormopolis on Jul 24, 2009 20:48:47 GMT -8
</font></a>, "; style='font-size:10' is where i have it, it didnt work no no.. it has to go inside the font tag: holdstuff+="<a href='"+ fjumpList[j+1].value +"'><font color='FF0000' style='font-size:10'>"+ fjumpList[j+1].innerHTML.replace('--- ','') +"</font></a>, ";
|
|
|
Post by tunescool on Jul 24, 2009 20:51:16 GMT -8
that worked
|
|
|
Post by tunescool on Jul 24, 2009 20:54:18 GMT -8
sub boards disappeared after the font tag
|
|
|
Post by Wormopolis on Jul 24, 2009 20:54:39 GMT -8
recopy
|
|
|
Post by Wormopolis on Jul 24, 2009 20:55:59 GMT -8
stupid double quotes...
|
|
|
Post by Wormopolis on Jul 24, 2009 20:58:18 GMT -8
just this request alone has gained you 2 posting ranks... its the energizer bunny request...
|
|
|
Post by tunescool on Jul 24, 2009 21:03:03 GMT -8
alrite, everything is what i want. thanks for all your time and everything. i just saw this dest.style.paddingTop="3"; i cant even tell, ill look at it over the next day, cause it seems the same too
|
|
|
Post by Wormopolis on Jul 24, 2009 21:04:30 GMT -8
there is a difference.. its just really small. 3 pixels.
if you increase it to 4 it starts pushing the board height down, but you can play around with that to find a number you like more.
|
|
|
Post by tunescool on Aug 15, 2009 7:24:19 GMT -8
i had a major problem after i was putting a code in. every code that had spaces to start a line had / / / / / before the code line.
i had to recopy every code, i copied the three you gave me and the last post is still 3 lines. can you just make a code for two lines. i thought it was in one of the codes you gave me but im always having problems with it anyway
|
|
|
Post by Wormopolis on Aug 16, 2009 7:11:49 GMT -8
|
|
|
Post by tunescool on Aug 16, 2009 16:51:06 GMT -8
yea i looked rite at it and didnt think anything of the mods after that cause it was already in my headers and i copied everything just days before this problem into my test site. it didnt work on my test site but i didnt care it was just a test site. everything was working on my site but for some reason it was just the original last post cell that i copied along with everything, but it was working. so i just recopied what you linked, i couldnt find exactly this line
if(TD.width=="50%" && TD.className=="windowbg2"){
just this in new thread if ( tds[r].width=="50%" && tds[r].className.match(/windowbg/) &&
and this in the sub board code (tds.width=="50%" && tds.className.match(/windowbg/)
all i did was change the 50s to 60s one at a time like you told me before and nothing happened im stuck with now with the on/off icons there, undefined there, and neither the new thread or the sub boards work
this is what i have
<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) { temp=lastPostCell[l].firstChild.innerHTML.split(/<br>/i); newtemp=temp[2]+"<br>"+temp[1]+" "+temp[0]; lastPostCell[l].firstChild.innerHTML=newtemp; } lastPostCell[l].previousSibling.previousSibling.previousSibling.width = '60%'; }} // --> </script>
<script type="text/javascript"> <!-- // add "new thread" link into main page board cells // by Wormopolis - [url]Wormocodes.proboards.com[/url] // keep header intact
linkstuff="<font style='font-size:10'>New Thread</font>"; //can be HTML
for (tds=document.getElementsByTagName('td'), r=0; r<tds.length; r++) { if ( tds[r].width=="50%" && tds[r].className.match(/windowbg/) && tds[r].align=="left") { holdthis=tds[r].getElementsByTagName('a')[0].href; tds[r].style.padding=0; nwtbl=tds[r].appendChild(document.createElement('table')); nwtbl.width="100%"; nwRw=nwtbl.insertRow(0); nwcl2=nwRw.insertCell(0); nwcl1=nwRw.insertCell(0); nwcl1.appendChild(tds[r].firstChild); nwcl1.appendChild(tds[r].firstChild); nwcl1.appendChild(tds[r].firstChild); nwcl2.align="right" nwcl2.vAlign="top" nwlnk=document.createElement('a'); nwlnk.href=holdthis+"&action=post"; nwlnk.innerHTML=linkstuff; nwcl2.appendChild(nwlnk);} }
// --> </script>
<script type="text/javascript"> <!-- var fjumpList=document.getElementById('forumjump').options;
for (tds=document.getElementsByTagName('td'), i=0; i<tds.length; i++) { if (tds[i].width=="50%" && tds[i].className.match(/windowbg/) && tds[i].align=="left" && tds[i].firstChild.innerHTML.match(/sub-board/)) { tds[i].firstChild.rows[0].cells[0].innerHTML=tds[i].firstChild.rows[0].cells[0].innerHTML.replace(/\(\d+\ssub-board(s?)\)/,''); bname=tds[i].getElementsByTagName('a')[0].href.split('board=')[1]; btitle=tds[i].getElementsByTagName('b')[0].innerHTML; var dest=document.createElement('div'); dest.style.paddingTop="1"; 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 +"'><font color='116600' style='font-size:10'>"+ fjumpList[j+1].innerHTML.replace('--- ','') +"</font></a>, "; j++; } holdstuff=holdstuff.substr(0,holdstuff.length-2); break; } } dest.innerHTML=holdstuff; dest.align="right"; tds[i].firstChild.rows[0].cells[1].appendChild(dest); } }
// --> </script>
|
|
|
Post by tunescool on Aug 16, 2009 23:03:01 GMT -8
the last post is 2 lines tho and centered
|
|
|
Post by Wormopolis on Aug 17, 2009 1:59:16 GMT -8
|
|
|
Post by Wormopolis on Aug 17, 2009 2:08:22 GMT -8
change this line in the top code
lastPostCell[l].previousSibling.previousSibling.previousSibling.width = '60%';
to this:
lastPostCell[l].previousSibling.previousSibling.previousSibling.width = '50%';
|
|