|
Post by tunescool on Sept 23, 2010 21:32:23 GMT -8
i made one board for my archive thing. im gonna use sub boards to link to the lists but dont want to have them listed on the main page. can you put an option for me to list any forum i dont want to have the sub boards show up on the main page. what is the limit for sub boards in a forum?
todge made it really easy to do, all i have to do is use the ubbc list function in a post, the first one is the thread, the second one is the thumbnail, and the third is the description, its really cool. it makes me want to work on my archives, otherwise its boring as hell and it takes forever
<script type="text/javascript"> <!-- var fjumpList=document.getElementById('forumjump').options;
boardsToIgnore="board1|board2"; boardsToAffect="nookfeat|ads|hidfeatsubsforum|archives"; 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="windowbg2"; t.innerHTML="<b></b> " + holdstuff; t=t.parentNode.appendChild(document.createElement("td")); t.className="windowbg"; t.colSpan=2; t.style.backgroundImage="url("+boardsImg+")"; 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 Sept 27, 2010 0:23:36 GMT -8
boardsToAffect seems to be the governing variable here. if you dont want it to list subforums for that board, dont include it in the variable.
as for limit on sub-boards, PBS has told people in the pas there isnt a set limit, HOWEVER, there IS a limit on the amount of textspace the database has for storing all the sub-board names.
for example, lets say you have 100 sub-boards, with names like "aa","ab","ac"..."ns","nt","nu"
the total space the database has to store would be 100*3-1 (the comma counts as a char). so 299 characters. now if you were to create a different board with 100 3 char names like "aaa","aab","aac"..."haa","hab","hac" the database would have to store 100*4-1
so the length of the names you give as ids of the subboards affects how many subboards you can have under each board. I dont know what that text limit is, but I remember someone saying they were trying to make a subboard for every member on their site and it maxed out on them. if you keep the ids short, you can have more subboards, but its harder to identify them by sight.
|
|
|
Post by tunescool on Sept 27, 2010 0:54:25 GMT -8
i had you change it so the default is to the rite of the board description for sub boards. i moved it to boards to affect cause i was namimg them long and was showing on the rite
|
|
|
Post by Wormopolis on Sept 30, 2010 1:03:53 GMT -8
modified the code in the first post, but Im not sure if its what you are after...
|
|
|
Post by tunescool on Sept 30, 2010 1:33:26 GMT -8
the boards i want to exclude wont show up on the main page at all, what you just did leaves them to the rite which the code does by default already
|
|
|
Post by Wormopolis on Sept 30, 2010 9:44:08 GMT -8
recopy
|
|
|
Post by tunescool on Sept 30, 2010 10:02:38 GMT -8
yea thanks, sorry for the confusion i thought i was clear enough
|
|
|
Post by Wormopolis on Sept 30, 2010 10:47:54 GMT -8
You were.. I just wasnt reading the code clearly. I didnt realize the existing variable wasnt for inclusion but rather differentiation.
|
|
|
Post by tunescool on Sept 30, 2010 11:27:59 GMT -8
todge Just made a code to move the last post cell and ive added on/off icons. aaron added that cell under boards for the sub boards and made the post/reply cells and last post one cell so i could add a background to match those cells. now the last post cell is in a different place with the new on/off icon and the code has to be modified so the proper cells have the background, but as one cell. aaron is in school or something he hasnt replied to one of my threads in over weeks, can you take care of it. oh and the sub boards are in the wrong cell now, everything has to be rearranged. its a big mess you can see on my normal site
|
|
|
Post by Wormopolis on Sept 30, 2010 16:07:28 GMT -8
I would remove whatever you did. you wont be able to use a code that was written with normal board configuration in mind. you are going to need a custom code for whatever you are wanting to do.
|
|
|
Post by tunescool on Sept 30, 2010 16:26:29 GMT -8
i figured out half of it myself but realized if the sub boards were under the board cell it would look way to obnoxious with the cell smaller, plus im putting side tables back in which makes everything thinner. so its good where it is, can you just add a background for the on/off cells in this code.
also can you JUST add a background for the one cell that the sub boards are in the the sub boards code. it spans the on/off cell, new last post position, and board cell. then theresa new cell ater that id like to just keep there
<style type="text/css"> .ICtitlereclass {height: 14px; background-image: url(http://i709.photobucket.com/albums/ww95/tunescool/nook/gryl017.gif);} .ICreclass {background-image: url(http://i709.photobucket.com/albums/ww95/tunescool/nook/gryl017.gif);} .boardcells {background-image: url(http://i709.photobucket.com/albums/ww95/tunescool/nook/grey12.jpg);} .threadcells {background-image: url(http://i709.photobucket.com/albums/ww95/tunescool/nook/grey12.jpg);} </style>
<script type="text/javascript"> <!-- // Infocenter Font Title Reclass Board Thread Cells //if (document.postForm) { for (tds=document.getElementsByTagName('td'), i=0; i<tds.length; i++) { if (tds[i].className=='catbg' && tds[i].innerHTML.match(/(forum statistics|today's birthdays|users online|active users|events this month)/i)) { tds[i].parentNode.parentNode.parentNode.cellSpacing=0; if (!tds[i].innerHTML.match(/forum statistics/i)) { tds[i].className+=' ICtitlereclass'; hold=tds[i].getElementsByTagName('font')[0]; hold.size=''; hold.className+=" ICtitlefontreclass"; } tds[i].parentNode.nextSibling.firstChild.className+=" ICreclass"; tds[i].parentNode.nextSibling.firstChild.nextSibling.className+=" ICreclass"; } if (tds[i].className.match(/windowbg/) && tds[i].width.match(/^(1|23|24)%/)) { tds[i].className+=' boardcells'; } if (tds[i].className.match(/windowbg/) && tds[i].width.match(/^(4|14|15|20)%/)) { tds[i].className+=' threadcells'; } }
// --> </script>
|
|
|
Post by tunescool on Oct 5, 2010 16:00:36 GMT -8
all i need is put the sub boards under the board cell with the background i have, and add the on/off cell to the code you made. you havent been around on here but please wormer you know its easy as hell
that avatar randie had was you?, god it bugs me you look like my moms boyfriend, i cant stand him you know i got issues
|
|
|
Post by Wormopolis on Oct 5, 2010 23:52:40 GMT -8
lol.. yeah. the infamous camping beard pic. ppl tell me I look like an axe murderer in that one.
the code you posted was for the info center so it confuses me when you mention bus-boards with it. I have a sleep study thing tomorrow night so I will work on your issue while Im waiting to fall asleep.
|
|
|
Post by tunescool on Oct 6, 2010 1:16:23 GMT -8
that code has my board and thread cells changed to a background image, i wanna add the on/off icons to it because its a background thing and it all fits because its a background thing
|
|
|
Post by Wormopolis on Oct 6, 2010 16:27:33 GMT -8
yeah you are right. the code title tricked me.
what percentage are you using for the on/off cells now?
|
|