|
Post by allthingsofgillian on Oct 30, 2012 7:41:08 GMT -8
I need a code that highlights the boards on the main page to show where the new posts have been made. Then when you click there, you are taken to the sub-boards (if any) and it shows highlighted boards there to show where the posts have been made. I have screened my forum to show examples and highlighted to show what I would like. simplyjodie.boards.net/index.cgiExamples: So basically, when you have clicked on the boards I would like the highlighting to then disappear until someone posts again. I hope this makes sense. Thank you! P.S. Also if there are drop down menu's is there a code to highlight the titles to the ones that have recently been posted? If not, highlighting the whole board to that drop down menu is fine like above.
|
|
|
Post by allthingsofgillian on Oct 31, 2012 11:03:16 GMT -8
Anyone??
|
|
|
Post by Wormopolis on Oct 31, 2012 22:00:46 GMT -8
on the main page, the "on/off" icons on the left of the boards is the only real way to know when there are new posts in a board. if something is in a sub-board, then the sub-boards on/off will be on when you go inside. your first image shows highlighted rows on boards with the on icon, but the other boards have off icons meaning there havent been new posts in those boards since you were last there.
you also seem to have a code affecting the sub-boards listing. which code is it?
as for specific threadsin the board, that information just isnt accessible from the main page.
|
|
|
Post by allthingsofgillian on Nov 1, 2012 6:09:32 GMT -8
It's your code Wormo:
Enter in Sub-Board Footer
<!--!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!SUB BOARDS INTO COLUMNS!!!!!!!!!!!!!!!!!!!!!!!!!--> <script type="text/javascript"> <!-- // Sub-boards into columns v1.5 // By Wormopolis // Please keep header intact, no reposting
column_setup=3; //edit how many columns you want showLastPost=true;
// No need to edit below unless you know what you are doing if (!location.href.match(/thread=/)) { sub_array = new Array(); iTd=document.getElementsByTagName('td'); for (i=0; i<iTd.length; i++) { if (iTd[i].width=='66%' && iTd[i].className=='windowbg2' ) { extra=""; if (showLastPost && iTd[i].nextSibling.nextSibling.nextSibling.firstChild.innerHTML) extra="last post " + iTd[i].nextSibling.nextSibling.nextSibling.innerHTML; sub_array[sub_array.length]=iTd[i].innerHTML+extra; sub_boards_parent=iTd[i].parentNode; grr=sub_boards_parent.firstChild; sub_boards_parent.removeChild(grr); grr=sub_boards_parent.firstChild; sub_boards_parent.removeChild(grr); sub_boards_parent.style.display="none"; } } header_kills=sub_boards_parent.parentNode.firstChild.childNodes; new_header=sub_boards_parent.parentNode.firstChild.cloneNode(true); sub_boards_parent.parentNode.firstChild.removeChild(header_kills[3]); sub_boards_parent.parentNode.firstChild.removeChild(header_kills[2]); sub_boards_parent.parentNode.firstChild.removeChild(header_kills[1]); sub_boards_parent.parentNode.cellPadding=0; sub_boards_parent.parentNode.cellSpacing=0; sub_boards_parent.parentNode.firstChild.firstChild.colSpan=column_setup; var newRow=document.createElement('tr'); for (j=0; j<sub_array.length; j++) { newCell=document.createElement('td'); newCell.className='windowbg2'; newCell.vAlign='top'; newCell.innerHTML=sub_array[j]; newRow.appendChild(newCell); if ((j+1)%column_setup==0 && (j+1)!=sub_array.length) { sub_boards_parent.parentNode.appendChild(newRow); newRow=document.createElement('tr'); } } if (j%column_setup!=0) { for (k=0; k<(column_setup-(sub_array.length%column_setup)); k++) { newCell=document.createElement('td'); newCell.className='windowbg2'; newRow.appendChild(newCell); } } sub_boards_parent.parentNode.appendChild(newRow); } // --> </script>
|
|
|
Post by Wormopolis on Nov 1, 2012 22:06:41 GMT -8
still looking for easiest solution
|
|
|
Post by Wormopolis on Nov 3, 2012 21:10:45 GMT -8
|
|