|
Post by tunescool on Mar 3, 2011 3:16:17 GMT -8
i did from evan all the way to kristen without a problem, i created their sub boards and everything was fine. so for some reason the problem starts at emily
|
|
|
Post by Wormopolis on Mar 3, 2011 17:11:37 GMT -8
change this line
dest.innerHTML=holdstuff;
to this for me
dest.innerHTML=holdstuff; if (location.href.match(/debugsb/)) alert(holdstuff);
|
|
|
Post by tunescool on Mar 3, 2011 17:49:58 GMT -8
that put all the sub boards i have in the boards that use the default(sub boards to rite) and the excluded boards new cell
they all have different amounts of the sub boards, and they all start with the archives forums sub boards
|
|
|
Post by Wormopolis on Mar 3, 2011 17:56:02 GMT -8
I just wanted to examine what was in that variable to make sure it was THAT code doing it and not some other code. stay tuned.
|
|
|
Post by Wormopolis on Mar 3, 2011 18:00:04 GMT -8
you replaced the wrong line
the one I wanted you to replace was at the bottom.
change the line you replaced BACK to dest.innerHTML=holdstuff="";
then change the line at the bottom to what I said
|
|
|
Post by tunescool on Mar 3, 2011 18:11:12 GMT -8
alrite
|
|
|
Post by Wormopolis on Mar 3, 2011 21:37:51 GMT -8
change this line for me
rgxp=new RegExp("\\\/index.cgi\\\?board="+bname,"i");
to this
rgxp=new RegExp("\\\/index.cgi\\\?board="+bname+"$","i");
|
|
|
Post by tunescool on Mar 4, 2011 0:37:44 GMT -8
problem solved, im glad you could figure it out rite away it seemed like the freakiest thing to me. thanks, should i change that first line you you told me to change
|
|
|
Post by Wormopolis on Mar 4, 2011 1:00:43 GMT -8
you can get rid of the alert if you want. it wont affect anything if you leave it in however. it only shows up if you put "debugsb" into the url anyways
|
|
|
Post by tunescool on Mar 21, 2011 13:56:32 GMT -8
im changing my backgrounds to one color and i took the windowbgs out of that code you made to change the backgrounds of the last post and posts and replies to the same background and it took out the background for the sub boards in the exclusion code, which i wanted but the cell under posts and replies is in the code and i just want to change it to a hex color. that cell is in the sub board code too, can you just change it to a color
|
|
|
Post by Wormopolis on Mar 21, 2011 20:02:19 GMT -8
what? I have no idea what you are asking there.
is this related to the same code as in the OP?
|
|
|
Post by tunescool on Mar 21, 2011 21:06:11 GMT -8
thats the gray background cell under posts and replies, if i take the url out it turns black or the cell disappears, i want to use just a color
<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="mkapics|convo|ads"; boardsImg="http://i709.photobucket.com/albums/ww95/tunescool/nook/grey12.jpg";
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/)) { tds.firstChild.rows[0].cells[0].innerHTML=tds.firstChild.rows[0].cells[0].innerHTML.replace(/\(\d+\ssub-board(s?)\)/,''); bname=tds.getElementsByTagName('a')[0].href.split('board=')[1]; btitle=tds.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.backgroundImage="url("+boardsImg+")"; tds.parentNode.parentNode.insertBefore(t.parentNode, tds.parentNode.nextSibling); continue; } dest.innerHTML=holdstuff; dest.align="right"; tds.firstChild.rows[0].cells[1].appendChild(dest); } } } // --> </script>
|
|
|
Post by Wormopolis on Mar 21, 2011 22:57:24 GMT -8
change
t.style.backgroundImage="url("+boardsImg+")";
to
t.style.backgroundColor='#FF0000";
|
|
|
Post by tunescool on Mar 22, 2011 0:47:17 GMT -8
you had a ' instead of a ". thanks, the last posts were getting hard to read, maybe everyone will stop whining about my layout
|
|
|
Post by Wormopolis on Mar 22, 2011 1:18:27 GMT -8
oh sorry about that. Half dazed currently.
|
|