Post by Peter on Oct 31, 2004 12:34:00 GMT
Code by InVaDeRJeLLo
Ok here we go.. this is like infinites..(which uses my original code) but it's been tweaked loads to remove all the ///'s from your board....if your using conforums.. use the right main page footer please
Proboards Main Page Footer
Conforums Main Page Footers
Board Footers
If your using the proboards cell highlight for the thread cells.. replace it with this one in your board footers
Enjoy ^_^
Ok here we go.. this is like infinites..(which uses my original code) but it's been tweaked loads to remove all the ///'s from your board....if your using conforums.. use the right main page footer please
Proboards Main Page Footer
<script>
var TD=document.getElementsByTagName("TD")
for(t=0;t<TD.length;t++){
if(TD[t].width=="60%" && TD[t].innerHTML.match("Total Topics:")){
if (TD[t].innerHTML.match(/\/\/\//i)){
var Mod=TD[t].getElementsByTagName("b")[2];
var Blah=Mod.innerHTML.split("///")
var Sec=Blah[1].split(" by ")[1]
Mod.innerHTML=Blah[0] + "</a> by " + Sec
} else{}}
if (location.href.indexOf("action=recent")!=-1 || location.href.indexOf("action=usersrecentposts")!=-1 || location.href.indexOf("action=search2")!=-1){
if (TD[t].width=="75%" && TD[t].className=="titlebg" && TD[t].innerHTML.match("/" + "//")){
TD[t].innerHTML=TD[t].innerHTML.split("/" + "//")[0]
}}}
</script>
Conforums Main Page Footers
<script>
var TD=document.getElementsByTagName("TD")
for(t=0;t<TD.length;t++)
if(TD[t].width=="60%" && TD[t].innerHTML.match("Total Topics:")){
if(TD[t].getElementsByTagName("b")[2].innerHTML.match("///")){
var Mod=TD[t].getElementsByTagName("b")[2];
var Blah=Mod.innerHTML.split("///")
var Sec=Blah[1].split("(")[1]
Mod.innerHTML=Blah[0] + "</a> (" + Sec
}}
</script>
Board Footers
<script>
// Post Name + Sub- Heading Coded By Jello
//Tweaked by "Alien"
var td = document.getElementsByTagName('TD');
for(a=0; a<td.length; a++) {
if(td[a].width=="48%"){
var part = td[a].innerHTML.split("/" + "//");
if(td[a].innerHTML.match("/"+"//")) {
table = "<font size=2>"+part[0]+"</font></a><BR /><font size=1>"+part[1]+"</font>";
td[a].innerHTML= ""+table+"";
}}
if(location.href.indexOf("display&num")!=-1){
if(document.title.match("///")){
if(td[a].innerHTML.match("Topic:") && td[a].width=='80%' && td[a].innerHTML.match("///")){var T=td[a].innerHTML.split("///");
td[a].innerHTML=T[0] + " (" + T[1].split("(")[1]}
if(td[a].innerHTML.match("on:</B>") && td[a-2].height=="100%"){
var Blarg=td[a].innerHTML.split("///")
var Parl=Blarg[1].split("</B>")
td[a].innerHTML=Blarg[0] + "</B> " + Parl[1] + Parl [2];
if(td[a].innerHTML.match("Today")){
td[a].innerHTML=Blarg[0] + "</B> " + Parl[1] + Parl[2] + Parl[3]}}
if (td[a].vAlign=="bottom" && td[a].align=="right" && td[a].innerHTML.match(/Previous Topic/i)){
tl=td[a-1].innerHTML.split("<B" + "R>")
td[a-1].innerHTML=""+tl[0]+"<BR />"+tl[1]+"<BR />"+tl[2]+"<BR />"+tl[3].split('/'+'//')[0]+"<BR />"+tl[4]+""
}
if (td[a].className=="welcomebg" && td[a].innerHTML.match(/? /i)){
var wel=td[a].innerHTML.split("<B" + "R>");
td[a].innerHTML=""+wel[0]+"<BR />"+wel[1].split('/'+'//')[0]+" ?"
}}}}
if(location.href.indexOf('action=post&')!=-1) {} else {
if(location.href.indexOf('action=post')!=-1) {
var Table=document.getElementsByTagName("table")
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].innerHTML.match("Subject") && Table[t].rows[r].cells[c].className=="windowbg"){Table[t].insertRow(1).insertCell().innerHTML="<font size='2'><b>Extra:<b></font>";Table[t].rows[1].insertCell().innerHTML="<input name='myfield' type='text' size='40'>";}
var Sub=document.getElementById("subject");
Sub.maxLength="200";
var My=document.getElementById("myfield");
My.maxLength="50"
function change(){Sub.value=Sub.value + "///" + My.value}
document.forms[0].onsubmit=change;
}}
document.title=document.title.split('/'+'//')[0]
</script>
If your using the proboards cell highlight for the thread cells.. replace it with this one in your board footers
<SCRIPT LANGUAGE="JavaScript">
<!--
/*
Cell Highlight & Link
Copyright ? 2003 Craig Suffolk, ProBoards.com
All Rights Reserved
*/
var mouseOverColor = 'HEX COLOR';
var statusMessage = 'TEXT';
window.status = statusMessage;
cellHigh = document.getElementsByTagName('TD');
for(ch=0;ch<cellHigh.length;ch++) {
if((cellHigh[ch].className=="windowbg2" && cellHigh[ch].width=="66%") || (cellHigh[ch].className=="windowbg" && cellHigh[ch].width=="48%")) {
if (cellHigh[ch].width=="48%") {var num=0;} else {var num=1;}
cellHigh[ch].onmouseover = function(){this.style.cursor='hand';this.style.backgroundColor=mouseOverColor; window.status=this.getElementsByTagName('b')[0].innerHTML.split('</FONT>')[0];};
cellHigh[ch].onmouseout = function(){this.style.backgroundColor=this.bgColor;window.status=statusMessage;};
cellHigh[ch].onclick = function(){location = this.getElementsByTagName('a')[num].href;};
}}
// -->
</script>
Enjoy ^_^