|
Post by Wormopolis on Jul 14, 2009 17:40:50 GMT -8
the number wont be there when we are done. I DID notice it was putting the page drop on "viewing" if that happened to be there, so recopy the pagedrop code from the database.
THEN...
immediately after the code to add "new thread" (by the way, I updated that code so you can put in board you DONT want "new thread" to appear - check database), insert this:
<script type="text/javascript"> <!-- // mod script to merge newthread script with pagedrop script
if (location.href.match(/newtpage/)) {
for (tds=document.getElementsByTagName('td'), e=0; e<tds.length; e++) { if (tds[e].width=='66%' && tds[e].className=='windowbg2' && tds[e].align=='left' && tds[e].firstChild.nodeName.match(/table/i)) { if (tds[e].firstChild.getElementsByTagName('span').length) { fel=tds[e].getElementsByTagName('td')[0].firstChild.firstChild.nextSibling;
tds[e].firstChild.rows[0].cells[1].appendChild(document.createElement('br')); tds[e].firstChild.rows[0].cells[1].appendChild(document.createElement('br')); tds[e].firstChild.rows[0].cells[1].appendChild(document.createElement('br')); fel.style.fontSize='8'; fel.innerHTML=fel.innerHTML.replace(/\(\d+\ssub-board(s?)\)/,'Sub-Boards'); tds[e].firstChild.rows[0].cells[1].appendChild(fel); } } }
} // --> </script>
box around what? the sub-board list?
|
|
|
Post by tunescool on Jul 14, 2009 18:41:34 GMT -8
i recopied sub board, i cant find new thread in database or requests. yea the the box around the sub board list. it will still show up my link color when its on the rite? without the underline?
|
|
|
Post by Wormopolis on Jul 14, 2009 20:50:53 GMT -8
the sub-board box uses the exact same colors as the pagedrop box that appears when you hover over the "Page 1 of 2" thing in the header/footer bar for threads.
the new thread code is currently in the submissions area until I officially decide its been tested fully.
|
|
|
Post by tunescool on Jul 15, 2009 0:07:56 GMT -8
so it still isnt on the rite underneath new link
|
|
|
Post by Wormopolis on Jul 15, 2009 8:14:30 GMT -8
<script type="text/javascript"> <!-- // mod script to merge newthread script with pagedrop script
if (true) {
for (tds=document.getElementsByTagName('td'), e=0; e<tds.length; e++) { if (tds[e].width=='66%' && tds[e].className=='windowbg2' && tds[e].align=='left' && tds[e].firstChild.nodeName.match(/table/i)) { if (tds[e].firstChild.getElementsByTagName('span').length) { fel=tds[e].getElementsByTagName('td')[0].firstChild.firstChild.nextSibling; if (fel.innerHTML.match(/viewing/i)) fel=fel.nextSibling; tds[e].firstChild.rows[0].cells[1].appendChild(document.createElement('br')); tds[e].firstChild.rows[0].cells[1].appendChild(document.createElement('br')); tds[e].firstChild.rows[0].cells[1].appendChild(document.createElement('br')); fel.style.fontSize='8'; fel.innerHTML=fel.innerHTML.replace(/\(\d+\ssub-board(s?)\)/,'Sub-Boards'); tds[e].firstChild.rows[0].cells[1].appendChild(fel); } } }
} // --> </script>
|
|
|
Post by tunescool on Jul 15, 2009 10:04:37 GMT -8
its rite where i want it but my forums are are wide as hell
|
|
|
Post by Wormopolis on Jul 15, 2009 14:27:00 GMT -8
The forum width? Its skinnier then the ones I have here on WC... is it supposed to be skinnier then that?
THIS code changed the forum width?
|
|
|
Post by Wormopolis on Jul 15, 2009 14:30:35 GMT -8
Make sure you dont have multiple copies of the codes in there... I think I saw 2 copies of everything when I checked source. The pagedrop code should be in main footer. the new thread code should be in main footer (or since you want it on sub-boards it can be in global footer), and the combining code should be after both of those codes. if the new thread code is in global footer, then the combining code should be too.
|
|
|
Post by tunescool on Jul 15, 2009 17:47:27 GMT -8
|
|
|
Post by Wormopolis on Jul 15, 2009 18:01:36 GMT -8
ah.. that makes more sense. see these lines in the combining code:
tds[e].firstChild.rows[0].cells[1].appendChild(document.createElement('br'));
those are what change the height. delete one of them to reduce height.
|
|
|
Post by tunescool on Jul 16, 2009 5:01:59 GMT -8
i cant have it my colors or without the underline?
|
|
|
Post by Wormopolis on Jul 16, 2009 5:16:46 GMT -8
the underline comes from this line:
dest.innerHTML='<span onmouseover="load_subboards_PageSpan(this,this.nextSibling);window.clearTimeout(removePageSpan);" onmouseout="hidePageSpan(event,1);" style="cursor: pointer; text-decoration: underline" class="pagejump"> '+dest_stuff +'</span>';
change the text-decoration: underline to text-decoration: none
and by colors, you meant the color of the text "Sub-boards"?
|
|
|
Post by tunescool on Jul 16, 2009 5:32:38 GMT -8
can the sub boards be lower, it was down there, then it got higher
|
|
|
Post by Wormopolis on Jul 16, 2009 9:35:11 GMT -8
you took out too many of those
tds[e].firstChild.rows[0].cells[1].appendChild(document.createElement('br'));
lines. put one back.
you also erased the entire line when you tried to get rid of the underline. thats why the drop downs no longer work. You need to put that line back.
|
|
|
Post by tunescool on Jul 16, 2009 11:41:59 GMT -8
if i put another one of these in tds[e].firstChild.rows[0].cells[1].appendChild(document.createElement('br')); my forums get higher
|
|