|
Post by tunescool on Aug 8, 2010 2:45:18 GMT -8
alrite wormo.... thats what the code does, removes new thread from some boards, thats why i wanted to use it. i want to just exclude boards just like it is now is the sub board different on your browser than what it is on mine
|
|
|
Post by Wormopolis on Aug 8, 2010 3:15:50 GMT -8
no it looks the same to me as the screen shot, but the featured celebs board has all of its sub-boards in a row underneath, whereas the news board has the 2 sub-boards on the right side of the cell. THAT is what I thought you were pointing to when you kept saying it was different.
making a code to REMOVE the "new thread" after it was already put there by one code is kinda pointless. it would be better to just have the code that puts the "new thread" there in the first place, NOT put it there for certain boards. that could would be:
|
|
|
Post by Wormopolis on Aug 8, 2010 3:20:00 GMT -8
<script type="text/javascript"> <!-- // Add "New Thread" Link Into Main Page Board Cells // by Wormopolis - Wormocodes.proboards.com// keep header intact boardsToExclude="board1|board2|board3"; linkstuff="<font style='font-weight: bold; font-size:9'>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; if (!holdthis.match(new RegExp("board=("+boardsToExclude+")($|&)"))) nwcl2.appendChild(nwlnk); } } // --> </script>
|
|
|
Post by tunescool on Aug 8, 2010 3:54:47 GMT -8
everything works, and the sub boards are back to normal. before i put this one in i took out the old one and saved. none of the sub boards showed up, why would that be, what connection does that have
|
|
|
Post by Wormopolis on Aug 8, 2010 16:43:30 GMT -8
there is a code in there that puts sub-boards into the cell that the new thread code creates. they were written to work together. if you rmeove the new thread code, the sub-board will no longer work. it was one of your requests.
|
|
|
Post by tunescool on Jan 15, 2012 15:57:35 GMT -8
wormer could you make it so it doesnt show for guests. i never asked for them both not to work together if one isnt in there but if thats the way they are
<script type="text/javascript"> <!-- // Add "New Thread" Link Into Main Page Board Cells // by Wormopolis - [url]Wormocodes.proboards.com[/url] // keep header intact
boardsToExclude="nookfeat|ass|staff|meet|ads|develop|convo|archives"; linkstuff="<font style='font-weight: bold; font-size:9'>New Thread</font>"; //can be HTML
if (pb_username!='Guest') { 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.className='lefthandcell'; 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; if (!holdthis.match(new RegExp("board=("+boardsToExclude+")($|&)"))) nwcl2.appendChild(nwlnk); } } } // --> </script>
|
|
|
Post by Wormopolis on Jan 15, 2012 17:48:28 GMT -8
new thread or sub-board?
|
|
|
Post by tunescool on Jan 15, 2012 19:18:31 GMT -8
the code i posted
|
|
|
Post by Wormopolis on Jan 15, 2012 20:38:56 GMT -8
recopy
|
|
|
Post by tunescool on Jan 15, 2012 21:18:40 GMT -8
works, thanks
|
|
|
Post by tunescool on Jan 22, 2012 10:49:27 GMT -8
i just noticed the sub boards arent showing up for guests now and the (17 Sub Boards) thing is showing up. i did say just in the code i posted?
<script type="text/javascript"> <!-- // Add "New Thread" Link Into Main Page Board Cells // by Wormopolis - [url]Wormocodes.proboards.com[/url] // keep header intact
boardsToExclude="nookfeat|ass|staff|meet|ads|develop|convo|archives"; linkstuff="<font style='font-weight: bold; font-size:9'>New Thread</font>"; //can be HTML
if (pb_username!='Guest') { 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.className='lefthandcell'; 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; if (!holdthis.match(new RegExp("board=("+boardsToExclude+")($|&)"))) nwcl2.appendChild(nwlnk); } } } // --> </script>
<script type="text/javascript"> <!-- // Sub Boards On Main Page - Under Board/To Rite Of Description/Exclude
var fjumpList=document.getElementById('forumjump').options;
boardsToIgnore="archives|board2"; boardsToAffect="convo|board2"; boardsImg="http://i709.photobucket.com/albums/ww95/tunescool/nook/grey12.jpg";
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"); rgxp2=new RegExp("^("+boardsToAffect+")$",""); rgxp3=new RegExp("^("+boardsToIgnore+")$",""); for (j=0; j<fjumpList.length; j++) { if (fjumpList[j].value.match(rgxp)) { while (fjumpList[j+1] && fjumpList[j+1].innerHTML.match(/-{3}\s/)) { holdstuff+="<a href='"+ fjumpList[j+1].value +"'><font color='116600' style='font-weight: bold; font-size:10'>"+ fjumpList[j+1].innerHTML.replace('--- ','') +"</font></a>, "; j++; } holdstuff=holdstuff.substr(0,holdstuff.length-2); break; } } if (!bname.match(rgxp3)) { if(bname.match(rgxp2)){ var t = document.createElement("tr").appendChild(document.createElement("td")); t.className="windowbg boardcells"; t.colSpan=3; t.innerHTML="<b></b> " + holdstuff; t=t.parentNode.appendChild(document.createElement("td")); t.style.backgroundColor="#FFFFFF"; tds[i].parentNode.parentNode.insertBefore(t.parentNode, tds[i].parentNode.nextSibling); continue; } dest.innerHTML=holdstuff; dest.align="right"; tds[i].firstChild.rows[0].cells[1].appendChild(dest); } } } // --> </script>
|
|
|
Post by Wormopolis on Jan 22, 2012 15:35:24 GMT -8
well because the new thread code setup the cell where the sub-boards used to go. once you had that disabled for guests, there wasnt a cell anymore to put it.
<script type="text/javascript"> <!-- // Add "New Thread" Link Into Main Page Board Cells // by Wormopolis - [url]Wormocodes.proboards.com[/url] // keep header intact
boardsToExclude="nookfeat|ass|staff|meet|ads|develop|convo|archives"; linkstuff="<font style='font-weight: bold; font-size:9'>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.className='lefthandcell'; 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; if (!holdthis.match(new RegExp("board=("+boardsToExclude+")($|&)")) && pb_username!='Guest') nwcl2.appendChild(nwlnk); } }
// --> </script>
|
|
|
Post by tunescool on Jan 22, 2012 16:03:48 GMT -8
theyre there but it moved them up where the new thread was, can you move it back down in the board cell, just for guests i looked at it the first time but didnt notice the sub boards, i should be checking browsers and guests everytime something is done. i just found out some of my archives havent been working for guests for like 2 months when i asked todge something. thats when i noticed this didnt work. my infocenter doesnt work, my sites screwed up rite now
|
|
|
Post by Wormopolis on Jan 22, 2012 22:20:52 GMT -8
not without jacking it up for members when "new thread" IS there.
|
|
|
Post by tunescool on Jan 22, 2012 22:49:01 GMT -8
ill just leave it
|
|