Post by Former Member on Sept 8, 2011 17:00:13 GMT -8
Preview
The only parts that need edited are these variables.
Forum_Width = "800"
Your_Logo = "URL"
Forum_Name = "Forum Name Here"
guest = "20" //word spacing for welcome message at guest view
member = "9" //word spacing for welcome message at member view
They're at the beginning of the script part of the code.
If you have a forum resize code, get rid of it.
This code resizes your boards for you.
Just make sure that you change the width of your image according to the width of your forum if you want your welcome table and forum to be the same width,
You can change the width of your image below, with the CSS part of the code (logo_image)
That should be about it ;D
GLOBAL HEADER
GLOBAL FOOTER
The only parts that need edited are these variables.
Forum_Width = "800"
Your_Logo = "URL"
Forum_Name = "Forum Name Here"
guest = "20" //word spacing for welcome message at guest view
member = "9" //word spacing for welcome message at member view
They're at the beginning of the script part of the code.
If you have a forum resize code, get rid of it.
This code resizes your boards for you.
Just make sure that you change the width of your image according to the width of your forum if you want your welcome table and forum to be the same width,
You can change the width of your image below, with the CSS part of the code (logo_image)
That should be about it ;D
GLOBAL HEADER
<style type="text/css">
//Games Welcome Table Remodel V1 (Style/HTML)
//Placement: Main Header for Home Page, Global Header for all pages
//Please Leave This Header Intact
//Please Donot Repost Or Claim As Your Own
//GamesDimensions.proboards.com
#welcome_table{background-color:black; border-style:none;}
#welcome_table a{text-decoration:none;}
#logo_cell{text-align:center; width:100%;}
#logo_image{width:800; height:200;}
#welcome_cell{text-align:center; font-size:12px;font-weight:bold; border-bottom:solid;border-color:#000000;border-width:1px;}
#menu_cell{text-align:center;border-bottom:solid;border-color:#000000;border-width:1px;}
#menu a{font-size:16px; font-weight:bold;text-decoration:none;}
</style>
<table id ='welcome_table' width='92%' align='center'><tr><td id ='logo_cell'></td></tr><tr><td><br/></td></tr><tr><td id='welcome_cell'></td></tr><tr><td id='menu_cell'></td></tr></table>
GLOBAL FOOTER
<script type="text/javascript">
//Games Welcome Table Remodel V1 (Script)
//Placement: Main Footer for Home Page, Global Footer for all pages
//Please Leave This Header Intact
//Please Donot Repost Or Claim As Your Own
//GamesDimensions.proboards.com
//Edit Below
Forum_Width = "800"
Your_Logo = "URL"
Forum_Name = "Forum Name Here"
guest = "20" //word spacing for welcome message at guest view
member = "9" //word spacing for welcome message at member view
//No Need To Edit Below
forum = document.getElementsByTagName("table");
for (i = 0; i < forum.length; i++) {
if (forum[i].width === "92%") {
forum[i].width = Forum_Width;
}
}
if (pb_username === "Guest") {
font = document.getElementsByTagName("font")[2];
font.innerHTML = font.innerHTML.slice(0, -23) + "<br />";
}
welcome = document.getElementById("welcome_cell");
welcome.style.wordSpacing = "6";
document.getElementsByTagName("table")[0].style.display = "none";
document.getElementsByTagName("td")[1].style.display = "none";
td2 = document.getElementsByTagName("td")[2];
td2.innerHTML = td2.innerHTML.replace(/Hey, (.+?),/g, "Welcome to "+ Forum_Name +" "+ pb_displayname+", ").replace(/new./g, "new. ").replace(/Welcome Guest/i, "Welcome to "+ Forum_Name +"");
document.getElementsByTagName("br")[2].style.display = "none";
td5 = document.getElementsByTagName("td")[5];
td5.innerHTML = td5.innerHTML.replace(/(\[|\])/g, "").replace(/New Topics/g, "New-Topics");
logo = document.getElementById("logo_cell");
logo.innerHTML= "<img src = "+ Your_Logo +" id = 'logo_image'>";
welcome.innerHTML = td2.innerHTML;
menu = document.getElementById("menu_cell");
menu.innerHTML = td5.innerHTML;
if (pb_username === "Guest") {
menu.style.wordSpacing = guest;
} else {
menu.style.wordSpacing = member;
}
</script>