Post by Peter on Oct 31, 2004 12:20:16 GMT
Code by Black Plastered
In this code, most of the info center replaces the TD which says: "Hey, BP, you have 0 messages, 0 are new." After that, the script grabs the TD that says: "Hey, BP, you have 0 messages, 0 are new." and it puts it in a new table under the header. For a preview go here: bptestboard.proboards29.com/index.cgi
The code goes in the Main Footer and Nowhere Else
That should work right there, comments please. ;D
EDIT: Im trying to start writing bigger codes so i can become good like Petey .... cant you tell ? look at my avatar ....
In this code, most of the info center replaces the TD which says: "Hey, BP, you have 0 messages, 0 are new." After that, the script grabs the TD that says: "Hey, BP, you have 0 messages, 0 are new." and it puts it in a new table under the header. For a preview go here: bptestboard.proboards29.com/index.cgi
The code goes in the Main Footer and Nowhere Else
<script>
//Info Center In Header by Black Plastered and some by InVaDeRJeLLo
//Do not post anywhere without my permission or edit without my permission
if(location.href.indexOf(/action=(hea|pro|vie|ad|sea|recent|cal|mem|boa|im|mlall|notify)/i)!=-1){} else {
var TD=document.getElementsByTagName('TD');
var Table=document.getElementsByTagName('Table')
var Message=TD[2].innerHTML.split('<B'+'R>')[0];
var Insert=Table[0].insertRow().insertCell();
Insert.innerHTML='<center>' +Message+ '</center>';
Insert.className='windowbg'
Insert.height='24'
for(t=0;t<Table.length;t++){
for(r=0;r<Table[t].rows.length;r++){
for(c=0;c<Table[t].rows[r].cells.length;c++){
if(Table[t].rows[r].cells[c].width=="60%" && Table[t].rows[r].cells[c].align=="left"){
var B=Table[t].rows[r].cells[c].getElementsByTagName("B")
var Topics=B[0].innerHTML
var Posts=B[1].innerHTML
var Last=B[2].innerHTML
var A=Table[t].rows[r].cells[c+1].getElementsByTagName("A")
var Mem=A[0].outerHTML
var New=A[1].outerHTML
TD[2].innerHTML='<center><b>Total Topics: </b>' +Topics+ ' - <b>Total Posts: </b>' +Posts+ ' - <b>Total Members: </b>' +Mem+ ' - <b>Newest Member: </b> ' +New+ '<b'+'r><b>Last Updated Topic: </b>' +Last+ '</center>'}}}}}
</script>
That should work right there, comments please. ;D
EDIT: Im trying to start writing bigger codes so i can become good like Petey .... cant you tell ? look at my avatar ....