NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Feb 7, 2012 9:37:54 GMT -8
Firefox, Internet Explorer
Goes in Main Footer. Allows you to use a board for description purposes. The new message spans the width of the forum part of your board. Optional pieces of coding to insert large amounts of HTML code included. If you want to edit the cell use CSS like so:
<style type="text/css"> <!-- .newbg {
} --> </style>
For best results disable posting on the board(s) as no one will have direct access to it/them or be able to see updates. (Place above any codes that get rid of whole columns of the board...Remove On/Off Icon Row, Remove Posts Row,ect.)
<script type="text/javascript"> //<!-- //Create Header from Board //by NetMaster with thanks to Wormopolis //Leave Disclaimer in tact
var titles =[ ["Welcome Board","Welcome to our Forum Spill"], ["About Us","<div id="inserthere"> </div>"] //No coma on last entry. ];
//Only edit if you know what to do if(pb_action == 'home'){ var awaytd = document.getElementsByTagName('td');
for(i=0;i<awaytd.length;i++){ for(j=0;j<titles.length;j++){ var rgx=new RegExp(titles[j][0],'g'); var replace=titles[j][1]; if(awaytd.innerHTML.match(rgx) && awaytd.className=='windowbg2') { awaytd.style.display="none"; awaytd[i+1].style.display="none"; awaytd[i+2].style.display="none"; awaytd[i-1].style.display="none"; awaytd[i+3].colSpan="5"; awaytd[i+3].className="newbg"; awaytd[i+3].innerHTML=replace; } } } } //--> </script>
Board Title: Use the Boards display title (not the board id)
Replacement text: Type whatever you want displayed instead of the board.
Optional DIV: For inserting large chunks of HTML. If you choose this option you'll need the code below also.
<table id="inserted"><tr><td>Type out a whole big paragraph or use any type of HTML and it will get placed in the div above instead of seeing the board.</td></tr></table>
<script type="text/javascript"> //<!--
var headdiv = document.getElementById('inserthere'); var divcontent = document.getElementById('inserted');
if(pb_action == 'home'){ headdiv.appendChild(divcontent); } //--> </script>
|
|