Post by modskins on Oct 12, 2009 14:36:32 GMT -5
<!---Alert When PMing Admins----->
<script type="text/javascript">
<!--
//Alert when pming admins
if(location.href.match(/=pmsend&to=(admin|admin2)/i)){
Alert('Please follow our guidelines when pming the admins');
}
//-->
</script>
<!-----Move Hey X...-------->
<script type="text/javascript">
<!--
/* move hey x... by elindir */
var pos="0"; // 1 for above buttons, 0 for below
var pclass='titlebg'; //Class of the Box
//Do not edit below
var table = document.getElementsByTagName("table");
var iPM = table[0].insertRow(2-pos).insertCell(0);
var td = document.getElementsByTagName('td');
var PM= td[2].innerHTML;
td[2].style.display="none";
iPM.innerHTML='<table class='+pclass+' width="100% cellspacing="1"><tr><td width="100%"><center>'+PM+'<\/center><\/td><\/tr><\/table>';
// -->
</script>
<!----Left Side Tables and Chat Box Header---->
<! =====
START Smangii's {LEFT} Side Tables *REVISED*
Global Header
===== -->
<script>
// Resize the welcome table - can be % or a number of pixels
document.getElementsByTagName('table')[0].style.width='95%';
</script>
<style type="text/css">
#sidetables { width: 200px; margin-bottom: 20px; margin-right: 20px; }
</style>
<table width="70%" align="center" cellpadding="0px" cellspacing="0px">
<tr>
<td vAlign="top">
<! ===== BOX #1 START ===== -->
<table id="sidetables" class="bordercolor" cellpadding="4" cellspacing="1">
<tr><td align="center" class="titlebg">
Welcome:
</td></tr><tr>
<td class="windowbg">
</table>
<! ===== BOX #2 START ===== -->
<table id="sidetables" class="bordercolor" cellpadding="4" cellspacing="1">
<tr><td align="center" class="titlebg">
Important News:
</td></tr><tr>
<td class="windowbg">
<b>Sign ups for years 1, 2, and 3 are now all open!</b>
<br></br>
<br>Everytime you post you earn 5 galleons to spend at Diagon Alley or Hogsmeade!</br>
<br></br>
HOGWARTS IS NOW BACK IS ABOUT TO OPEN ON SEPTEMBER TENTH FOR ANY STUDENTS HERE RIGHT NOW. IF YOU'RE NOT A STUDENT, JOIN NOW TO INSURE YOU GET GOOD GRADES.
</td></tr></table>
<! ===== BOX #3 START ===== -->
<table id="sidetables" class="bordercolor" cellpadding="4" cellspacing="1">
<tr><td align="center" class="titlebg">
House Points and Chat Box
</td></tr>
<tr><td class="windowbg">
Gryffindor: 200
Slytherin: 150
Hufflepuf: 0
Ravenclaw: 0
<br></br>
<b><!-- BEGIN CBOX - www.cbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="188" height="245" src="http://www6.cbox.ws/box/?boxid=492161&boxtag=p23pfm&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#DBE2ED 1px solid;" id="cboxmain"></iframe></div>
<div><iframe frameborder="0" width="183" height="75" src="http://www6.cbox.ws/box/?boxid=492161&boxtag=p23pfm&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#DBE2ED 1px solid;border-top:0px" id="cboxform"></iframe></div>
</div>
<!-- END CBOX --></b>
</td></tr></table>
<! -- ***NOTE*** Place any extra added side tables above this line // -->
</td><td align="center" vAlign="top" width="100%">
<div id="wel"></div>
<script type="text/javascript">
<!--
var welcomeTable = document.getElementsByTagName("table").item(0);
document.getElementById("wel").appendChild(welcomeTable);
//-->
</script>
<!----Hogwarts Is Now Back Clock----->
<script type="text/javascript">
// Clock With Same Time for All Timezones By Mithras
// www.support.proboards.com
// Do not repost -- this header must remain in tact.
var timeZone;
var Message = new Array(9);
var clockLabel;
var timeString;
var message
// ** Edit **
timeZone = -12;
clockLabel = "Hogwarts is now back time--";
Message[0] = " :: Early Morning";
Message[1] = " :: Dawn";
Message[2] = " :: Morning";
Message[3] = " :: Noon";
Message[4] = " :: Afternoon";
Message[5] = " :: Evening";
Message[6] = " :: Dusk";
Message[7] = " :: Night";
Message[8] = " :: Midnight";
// ** Do Not Edit **
var time = new Date();
var timezoneoffset = time.getTimezoneOffset();
var minutes;
var hours;
time.setTime(time.getTime() + timezoneoffset*60*1000);
time.setTime(time.getTime() + timeZone*60*60*1000);
timeString = clockLabel + ' ';
if(time.getHours() > 12) {
timeString += time.getHours() - 12;
} else {
timeString += time.getHours();
}
timeString += ':';
if(time.getMinutes() < 10)
timeString += '0' + time.getMinutes();
else
timeString += time.getMinutes();
if(time.getHours()<6) {
currentMessage = Message[0];
} else if (time.getHours() == 6 && time.getMinutes() == 0) {
currentMessage = Message[1];
} else if (time.getHours() >= 6 && time.getHours() < 12) {
currentMessage = Message[2];
} else if (time.getHours() == 12 && time.getMinutes() == 0) {
currentMessage = Message[3];
} else if (time.getHours() >= 12 && time.getHours() < 17) {
currentMessage = Message[4];
} else if (time.getHours() >= 17 && time.getHours() < 21) {
currentMessage = Message[5];
} else if (time.getHours() == 21 && time.getMinutes() == 0) {
currentMessage = Message[6];
} else if (time.getHours() >= 21 && time.getHours() < 24) {
currentMessage = Message[7];
} else if (time.getHours() == 24 && time.getMinutes() == 0) {
currentMessage = Message[8];
} else {
currentMessage = " ";
}
timeString += currentMessage
document.write('<div align="center" class="clock">' + timeString + '<br><\/div>')
</script>
<div id="pageOverlay" style="display: none;background-color: #000000; opacity: 0.0; filter:alpha(opacity=0); width: 100%; height: 100%; position: absolute; top: 0; left: 0;" onclick="PM_Notifier.doCollapse(1);"></div>
<div style="position: absolute; right: 0%; top: 0px;">
<div class="windowbg" style="border: 1px solid black; width: 100px; height: 100px; display: none; position: relative; top: 0px; right: 0px;" id="pmHolder">
<span style="float: left;">
<a title="Close" onclick="PM_Notifier.doExpand()" href="javascript: void(0)" id="theA">
<img style="border-right: 1px solid black;" src="http://img174.imageshack.us/img174/88/exclamationsb1.png" border="0" height="100" width="100">
</a>
</span>
<div id="spanRight" style="float: right; text-align: center;">
<span style="margin: 0 auto; display: none;" id="pmNot_theInfo">
<span id="pmNot_newPms"></span>
<br />
[<a href="/index.cgi?action=pm">Inbox</a> | <a href="/index.cgi?action=pmsend">New Message</a> | <a href="javascript: void(0)" onclick="PM_Notifier.doCollapse(1, 1);">Don't Show Again</a>]
</span>
</div>
</div>
</div>
<!---Right Side Tables Header----->
<! =====
START Smangii's {RIGHT} Side Tables *REVISED*
Global Header
===== -->
<script>
// Resize the welcome table - can be % or a number of pixels
document.getElementsByTagName('table')[0].style.width='95%';
</script>
<style type="text/css">
#sidetables { width: 200px; margin-bottom: 20px; margin-left: 20px; }
</style>
<table width="95%" align="center" cellpadding="0px" cellspacing="0px">
<tr>
<td align="center" vAlign="top" width="100%">
<script type="text/javascript">
<!--
// welcome table edits
document.getElementsByTagName('td')[2].style.display="none";
document.getElementsByTagName('font')[1].style.display="none";
//-->
</script>
<script>
document.getElementsByTagName("br")[0].style.display='none';
</script>
<script type="text/javascript">
<!--
var iCell = document.getElementsByTagName("td").item(5).firstChild;
for(c = 0; c < iCell.childNodes.length; c ++){
if(iCell.childNodes.item(c).nodeType == 3){
iCell.removeChild(iCell.childNodes.item(c));
}
}
//-->
</script>
<!---Ez Modified Text Menu---->
<script type="text/javascript">
<!--
/* Ez Modified Text Menu (no brackets & bolded) by Smangii
smangii.proboards78.com
This header must remain Intact
Open-Source */
var menu = document.getElementsByTagName('td');
for(e=0; e<menu.length; e++)
{
if(menu[e].className.match(/menubg/i))
{
menu[e].innerHTML = menu[e].innerHTML.bold(/menubg/,'');
menu[e].innerHTML = menu[e].innerHTML.replace(/(\[|])/gi,'');
}}
//-->
</script>
<!---CrossFury Version 1.0--->
<script src="http://pb.proscripts.co.uk/uploads/CFHeader.js">
<!--
/*
Project: CrossFury Version 1.0 © Shin, 2005
This code may be used provided that you do not edit or repost this code without my prior permission, and that you do NOT remove this header. This script's coding is my official property, so please do not attempt to claim any of it as your own. This header must always remain intact.
This part of the code goes in your Global Header ONLY.
Both parts of the code must be properly installed to work.
*/
//-->
</script>
<script type="text/javascript">
<!--
AddOns[0]=new ProfileAddOn("Codesmade","true","select","admin","Codes Made","0","Where members can see how many codes you have made");
//-->
</script>
global footer
<!----Subboards for Subboards---->
<script type="text/Javascript">
// Sub-Sub-Boards v1 by Chris of Studio Zero (http://studiozero.proboards44.com)
// Do not redistribute without permission of the creator
// Don't edit unless instructed to.
var ssb = {
cid: "subsubboardscatid",
installed: false,
on: "images.proboards.com/on.gif",
off: "images.proboards.com/off.gif",
version: "1.0.0"
};
document.write("<script type='text/Javascript' src='http://iycatacombs.com/codes/subsubv1/globalfooters.js'><\/script>");
</script>
<!----Customize PM Font, Smilies, and Color---->
<script type="text/javascript">
<!--
tablew = document.getElementsByTagName('TABLE');
for(t=0;t<tablew.length;t++) {
if(tablew[t].width=="92%"){
tablew[t].width='878';
}
}
// -->
</script>
<script type="text/javascript">
<!--
/*Remove Message Icon - By iAlex*/
if(document.postForm && document.postForm.icon){
document.postForm.icon.parentNode.parentNode.style.display='none';
}
if(location.href.match(/board=/) && !location.href.match(/action/)){
var iTd=document.getElementsByTagName('td');
for(i=0;i<iTd.length;i++){
if(iTd.item(i).className.match(/(windowbg|catbg)$/) && iTd.item(i).width.match(/^4(8|3)%/) && iTd.item(i-1).width=="5%"){
iTd.item(i-1).style.display='none';
}
if(iTd.item(i).colSpan=="7"||iTd.item(i).colSpan=="8"){
iTd.item(i).colSpan=iTd.item(i).colSpan-1;
}
}
}
if(location.href.match(/action=(display|recent|calendarview|search2|pmview|userrecent)/) || location.href.match(/index.cgi$/) && document.title.match(/Preview/) && document.postForm){
var iTd=document.getElementsByTagName('td');
for(i=0;i<iTd.length;i++){
if(iTd.item(i).width=="5%" && iTd.item(i).align=="left" && iTd.item(i).vAlign=="middle" && iTd.item(i).firstChild.nodeName=="IMG" && iTd.item(i).firstChild.alt.match(/^(\s)$/)){
iTd.item(i).style.display='none';
}
}
}
//-->
</script>
<!----Remove Views Cell---->
<script>
//remove views cell
//wooper
var TD = document.getElementsByTagName("TD");
for (i=0;i<TD.length;i++)
{
if(TD.width=="4%" && TD[i-1].width=="4%" && (TD.className == "windowbg" || TD.className == "catbg"))
{
TD.style.display = "none";
}
}
</script>
<script type="text/javascript">
<!--
if(location.href.match(/ion=(display|search2|(user)?recent)/)) {
var bit=document.getElementsByTagName('td')
for(i=0;i<bit.length;i++){
if(bit.innerHTML.match(/\(Read (.+?) times\)/)){
var reg=RegExp.$1
bit.innerHTML=bit.innerHTML.replace('(Read '+reg+' times)','')
}
}
}
//-->
</script>
<script type="text/javascript">
<!--
var i = document.getElementsByTagName('i');
for(t=0; t<i.length; t++)
if(i[t].innerHTML == 'Last Edit:')
i[t].parentNode.style.display = 'none';
//-->
</script>
<!----Align Mini Profile---->
<script type="text/javascript">
<!--
/* Align mini-profile */
var ialign="center";
var td=document.getElementsByTagName('td')
for (m=0;m<td.length;m++) {
if (td[m].className.match(/windowbg/i) && td[m].width=="20%"){
td[m].align=ialign;
}
}
//-->
</script>
<!----Rename Smilies, Email, Etc.---->
<script type="text/javascript">
<!--
/* switch-it */
var font=document.getElementsByTagName("font");
function switchit(t1,t2){
for(i=0;i<font.length;i++){
var f=font.innerHTML;
if(f.match(t1) && !location.href.match(/(headers|modify)/)){
font.innerHTML=f.replace(t1,t2);
}
}
}
switchit('Smilies','Smileys');
switchit('Email','E-mail');
switchit('Web Site','Website');
switchit('Back to Top','Return to Top');
switchit('Mark All Boards Read','Mark As Read');
switchit('Search This Board','Search');
switchit('Search This Thread','Search');
switchit('Mark as Read','Mark As Read');
switchit('Delete All Messages','Delete All');
switchit('Mark All Messages Read','Mark As Read');
// -->
</script>
<!----Set Max Posted Image Size---->
<script type="text/javascript">
<!--
/* set max posted image size with click to enlarge by california */
var maxWidth=500;
var maxHeight=300;
var img=document.getElementsByTagName("img");
for(i=0;i<img.length;i++){
if(img.alt.match(/\[image\]/i)){
img.onload=function(){
if(this.width>maxWidth){
this.style.height=""+(this.height*maxWidth/this.width)+"px";
this.style.width=""+maxWidth+"px";
this.style.cursor="pointer";
this.onclick=function(){
window.open(this.src,'imgwin','');
}
}
if(this.height>maxHeight){
this.style.width=""+(this.width*maxHeight/this.height)+"px";
this.style.height=""+maxHeight+"px";
this.onclick=function(){
window.open(this.src,'imgwin','');
}
}
}
}
}
// -->
</script>
<!----AV/SIG Permissions V. 1.3---->
<script type="text/javascript">
<!--
// av/sig permissions v 1.3
// by Wormopolis - wormocodes.proboards.com
// Do not repost - keep header intact
var defaultDisplay = false; //set to true if you want avs/sigs on by default
tds=document.getElementsByTagName('td');
// board display
if (location.href.match(/action=display/) && location.href.match(/thread=/)) {
for (i=0; i<tds.length; i++) {
if (tds.className.match(/windowbg/) && tds.width=="20%" && tds.vAlign=="top" && tds.getElementsByTagName('a').length>2) {
if (tds.innerHTML.match(/×\[(a?s?)\]×/)) {
res=RegExp.$1;
tds.innerHTML=tds.innerHTML.replace(/×\[(a?s?)\]×/,'');
if (!res.match(/a/)) {
for (im=tds.getElementsByTagName('img'), a=0; a<im.length; a++) {
if (im.alt=="[avatar]") {
im.style.display="none";
break;
}
}
}
if (!res.match(/s/)) {
chk=tds.nextSibling.getElementsByTagName('table')[0].rows;
if (chk[chk.length-1].getElementsByTagName('hr').length) {
chk[chk.length -1].getElementsByTagName('table')[0].nextSibling.style.display = "none";
}
}
} else {
// display if default is true
if (!defaultDisplay) {
for (im=tds.getElementsByTagName('img'), a=0; a<im.length; a++) {
if (im.alt=="[avatar]") {
im.style.display="none";
break;
}
}
chk=tds.nextSibling.getElementsByTagName('table')[0].rows;
if (chk[chk.length-1].getElementsByTagName('hr').length) {
chk[chk.length -1].style.display = "none";
}
}
}
}
}
}
// profile display
if (location.href.match(/action=viewprofile/)) {
for (i=0; i<tds.length; i++) {
if (tds.className.match(/windowbg/) && tds.width=="20%" && tds.vAlign=="top") {
if (tds.innerHTML.match(/×\[(a?s?)\]×/)) {
res=RegExp.$1;
tds.innerHTML=tds.innerHTML.replace(/×\[(a?s?)\]×/,'');
if (!res.match(/a/)) {
for (im=tds.getElementsByTagName('img'), a=0; a<im.length; a++) {
if (im.alt=="[avatar]") {
im.style.display="none";
break;
}
}
}
if (!res.match(/s/)) {
chk=tds.nextSibling.getElementsByTagName('table')[0].rows;
if (chk[chk.length-2].getElementsByTagName('hr').length) {
chk[chk.length -1].style.display = chk[chk.length -2].style.display = "none";
}
}
} else {
// display if default is true
if (!defaultDisplay) {
for (im=tds.getElementsByTagName('img'), a=0; a<im.length; a++) {
if (im.alt=="[avatar]") {
im.style.display="none";
break;
}
}
chk=tds.nextSibling.getElementsByTagName('table')[0].rows;
if (chk[chk.length-2].getElementsByTagName('hr').length) {
chk[chk.length -1].style.display = chk[chk.length -2].style.display = "none";
}
}
}
}
}
}
// modify profile
if (location.href.match(/action=modifyprofile/)) {
for (ipt=document.getElementsByTagName('input'), e=0; e<ipt.length; e++) {
if (ipt[e].name=="customtitle") {
ipt[e].value=ipt[e].value.replace(/×\[(a?s?)\]×/,'');
sigPerm=ipt[e].parentNode.parentNode.parentNode.cloneNode(true);
avPerm=ipt[e].parentNode.parentNode.parentNode.cloneNode(true);
sigPerm.firstChild.firstChild.innerHTML="Signature Permission";
sigPerm.firstChild.nextSibling.firstChild.innerHTML="<select name='sigperm'><option value='true'>Yes</option><option value='false'>No</option></select>";
sigPerm.firstChild.nextSibling.nextSibling.firstChild.innerHTML="Allow member to have a signtaure.";
avPerm.firstChild.firstChild.innerHTML="Avatar Permission";
avPerm.firstChild.nextSibling.firstChild.innerHTML="<select name='avperm'><option value='true'>Yes</option><option value='false'>No</option></select>";
avPerm.firstChild.nextSibling.nextSibling.firstChild.innerHTML="Allow member to have an avatar.";
tmp=ipt[e].parentNode.parentNode.parentNode;
tmp.parentNode.insertBefore(sigPerm,tmp.nextSibling);
tmp.parentNode.insertBefore(avPerm,tmp.nextSibling);
chkm=RegExp.$1;
if (!chkm.match(/a/)) modifyForm.avperm.selectedIndex=1;
if (!chkm.match(/s/)) modifyForm.sigperm.selectedIndex=1;
function permCheck() {
ct="×[";
ct+=(document.modifyForm.avperm.value=='true' ? "a" : "");
ct+=(document.modifyForm.sigperm.value=='true' ? "s" : "");
ct+="]×";
document.modifyForm.customtitle.value+=ct;
}
if(document.addEventListener){
document.modifyForm.addEventListener("submit", permCheck, false);
} else {
if (document.attachEvent){
document.modifyForm.attachEvent("onsubmit", permCheck);
} else {
document.modifyForm.onsubmit = permCheck;
}
}
break;
}
}
}
// -->
</script>
<!---Banner Remodel V 1.0---->
<script type="text/javascript">
<!--
// Banner remodel - 1.0
// by Wormopolis - wormocodes.proboards.com
// puts logo behind menu buttons and moves hey X and page title down
// keep header intact
tds=document.getElementsByTagName('td');
logocell=tds[1];
nwbgimg=logocell.firstChild.firstChild.src;
nwcellht=logocell.firstChild.firstChild.height;
nwcellwd=logocell.firstChild.firstChild.width;
logocell.style.height=nwcellht;
tds[0].parentNode.parentNode.parentNode.style.width=nwcellwd;
logocell.style.backgroundImage="url('"+nwbgimg+"')";
logocell.style.backgroundRepeat="no-repeat";
logocell.style.backgroundPosition="center center";
logocell.vAlign="bottom";
logocell.firstChild.removeChild(logocell.firstChild.firstChild);
heyXcell=tds[2];
menucellbar=tds[3].getElementsByTagName('table')[0].rows[0];
menubtntbl=tds[4].getElementsByTagName('table')[0];
menubtntbl.width="";
pagetitle=tds[1].getElementsByTagName('font')[1];
menucellbar.cells[0].appendChild(pagetitle);
menucellbar.cells[0].width="";
menucellbar.appendChild(heyXcell);
logocell.appendChild(menubtntbl);
menucellbar.cells[0].className="welcomebg";
menucellbar.cells[0].bgColor=menucellbar.cells[1].bgColor;
menucellbar.cells[1].align="right";
menubtntbl.rows[0].cells[0].style.backgroundColor="transparent";
menubtntbl.rows[0].cells[0].className="";
// -->
</script>
<!----Recycle Bin---->
<script type="text/javascript">//<![CDATA[
// Recycle Bin, by Charles Stover
// gamingmedley.com
// This notice may not be removed for any reason.
// This is the board ID for your Recycle Bin: 0001
var recycleBin = "recyclebin";
// No need to modify below this line.
if ((document.title.match(/ - Move Thread/)) && (location.href.match(/recycle=1/))) {
document.title = document.title.replace(/ - Move/, " - Recycle");
for (var f = 0; f < document.forms.length; f++) {
if (document.forms[f].getAttribute("action").match(/action=movetopic2/)) {
document.forms[f].innerHTML = document.forms[f].innerHTML.replace(/moving/, "recycling").replace(/Please select the boards? that you would like to move th[ei]se? threads? to\./, "").replace(/Move to:/, "").replace(/Would you like a message displayed telling members where th(is|ese) thread(s?) (was|have been) moved to\?/, "Would you like to leave a message directing members to where th$1 topic$2 $3 moved?").replace(/following thread \"(.*?)\"/, "following topic: $1").replace(/thread(?!\-)/g, "topic");
document.forms[f].moveto.style.display = "none";
var masterNode = ((document.forms[f].childNodes.length == 1) ? document.forms[f].firstChild : document.forms[f]);
var fields = masterNode.getElementsByTagName("input"),
lineBreaks = masterNode.getElementsByTagName("br"),
breakCount = 0;
fields[fields.length - 1].setAttribute("value", "Recycle Topic" + ((document.forms[f].innerHTML.match(/topics/)) ? 's' : ""));
if (lineBreaks[10]) {
for (var n = 0; n < masterNode.childNodes.length; n++) {
if ((masterNode.childNodes[n].nodeName.toLowerCase() == "br") && (masterNode.childNodes[n + 1]) && (masterNode.childNodes[n + 1].nodeName.toLowerCase() == "br")) {
if ((breakCount) && (breakCount< 4)) {
masterNode.childNodes[n].style.display = "none";
masterNode.childNodes[n + 1].style.display = "none"; }
else if (breakCount)
break;
breakCount++; } } }
else {
for (var b = 0; b < 4; b++)
lineBreaks.style.display = "none"; }
for (var o = 0; o < document.forms[f].moveto.options.length; o++) {
if (document.forms[f].moveto.options[o].value == recycleBin) {
document.forms[f].moveto.selectedIndex = o;
break; } }
break; } } }
if ((location.href.match(/board=/)) && (!location.href.match("board=" + recycleBin))) {
if (document.ammForm) {
for (var i = 0; i < document.images.length; i++) {
if (document.images.getAttribute("src").match(/removetopic\.gif/)) {
document.images.parentNode.onclick = function() {
var mod = document.ammForm;
mod.setAttribute("action", mod.getAttribute("action") + "&recycle=1");
mod.nextaction.setAttribute("value", "move");
mod.submit();
return true; }
break; } } }
else {
for (var a = 0; a < document.links.length; a++) {
if (document.links.getAttribute("href").match(/^javascript:doConfirm\('Are you sure you wish to delete this thread\?',/)) {
document.links.setAttribute("href", document.links.getAttribute("href") + "&recycle=1");
break; } } } }
//]]></script>
<!----Admin Note In Posts---->
<script type="text/javascript">
<!--
/*
Admin Note in posts by Todge.
Global Footer
Copyright © 2007
Please keep this header intact
*/
if(document.postForm)
{
var postSplit = document.postForm.message.value.split(/adminnote:/);
document.postForm.message.value = postSplit[0];
if(location.href.match('"e=') && postSplit.length > 1){
document.postForm.message.value += '[/quote]';
}
if(postSplit.length > 1){
postSplit[1] = postSplit[1].split(/\[\/quote\]/i)[0];
var modify = document.getElementsByTagName('input')
for(m=0; m<modify.length; m++){
if(modify[m].value.match(/(Modify|Post|Preview)/))
{
modify[m].onmouseup = function(){document.postForm.message.value += '\nadminnote:'+postSplit[1];}
}}}}
if(document.postForm && location.href.match('modifypost') && pb_username == 'admin'){
var tr = document.createElement('tr');
var td1 = document.createElement('td');
var td2 = document.createElement('td');
var adminnote = document.createElement('textarea');
adminnote.name = 'adminnote';
adminnote.rows = '2';
adminnote.cols = '70';
td1.className = 'windowbg2';
td2.className = 'windowbg2';
td1.innerHTML = '<font size="2">Admin Note:</font>';
td2.appendChild(adminnote);
tr.appendChild(td1);
tr.appendChild(td2);
var adminNote = document.postForm.nosmiles.parentNode.parentNode;
adminNote.parentNode.insertBefore(tr,adminNote);
if(postSplit.length > 1){
adminnote.value = postSplit[1].split('Admin Note: ')[1].split('[/b')[0];
}
var modify = document.getElementsByTagName('input')
for(m=0; m<modify.length; m++){
if(modify[m].value.match(/(Modify Post|Preview)/)){
modify[m].onmouseup = function(){if(adminnote.value.length > 1){
document.postForm.message.value += '\n\nadminnote:Admin Note: '+adminnote.value+'';}}
}}}
if(location.href.match('action=display')){
var post = document.getElementsByTagName('font');
for(p=0; p<post.length; p++){
if(post
.innerHTML.match('google_ad_section_end') && post
.innerHTML.match('adminnote:')){
post
.innerHTML = post
.innerHTML.replace('adminnote:','');
}}}
// -->
</script>
<!----Money Hack V3---->
<script type="text/javascript">
<!--
/*
Money Hack v3 - Global footer
Created by Ross, Concept by Peter
This code cannot be reposted at anywhere other than ProBoards Support without permission.
This header must stay intact at all times.
*/
// The value of money a member should gain for each post
var MoneyPerPost = +5;
// What do you want to call your money?
var NameOfMoney = 'Galleons';
// The symbol that will appear next to the money
var SymbolOfMoney = '$';
// No need to edit below
var re = /\[M:(-)?(\d+)\]/im
function updateMon() {
var monChange = document.getElementById('monChange');
var curMon = document.getElementById('monDisplay');
var monType = document.getElementById('monType');
mon = parseInt(curMon.value.replace( SymbolOfMoney , '' ),10) + parseInt( ( ( monType.value == '-' ) ? '-' : '' ) + monChange.value, 10 )
monChange.value = 0;
if(isNaN(mon)) {
alert('You must enter a numerical value')
return false;
}
curMon.value = SymbolOfMoney + mon;
return true;
}
function fNum(num){
if(!isNaN(num)){
num = num.toLocaleString().replace(/\.\d+/, "");
} else {
num = 0;
}
return num;
}
function saveMon() {
updateMon();
var newMon = document.getElementById('monDisplay').value.replace( SymbolOfMoney , '' );
newMon -= (parseInt((document.modifyForm.posts.value) * MoneyPerPost, 10));
document.modifyForm.customtitle.value += '[M:'+newMon+']';
return true;
}
var td = document.getElementsByTagName('td');
for(i=0; i<td.length; i++) {
if(td.item(i).width == '20%' && td.item(i).vAlign == 'top' && td.item(i).parentNode.innerHTML.match(/Posts: (.+?)</)) {
curMon = (RegExp.$1.replace(/,/g,'') * MoneyPerPost);
curMon += td.item(i).innerHTML.match(re)? parseInt((RegExp.$1+RegExp.$2), 10) : 0;
if(td.item(i).lastChild.nodeName.toLowerCase() != 'br')
td.item(i).appendChild(document.createElement('br'));
td.item(i).appendChild(document.createTextNode(NameOfMoney +': '+ SymbolOfMoney + fNum(curMon)));
td.item(i).innerHTML = td.item(i).innerHTML.replace(/<br>\[M:(-)?(\d+)\](<br>member is)/i,'$3').replace(/(<br>(.+?))\[M:(-)?(\d+)\](<br>)/i,'$1$5').replace(/\[M:(-)?(\d+)\]/gim,'');
}
else if(location.href.match(/ion=viewpro/) && td.item(i).width == '25%' && td.item(i).innerHTML.match(/>Posts:</)) {
var monTitle = document.createElement('font');
monTitle.size = '2';
monTitle.appendChild(document.createTextNode(NameOfMoney+':'));
var userMon = document.createElement('font');
userMon.size = '2';
userMon.appendChild(document.createTextNode(SymbolOfMoney+fNum(curMon)));
monRow = td.item(i).parentNode.parentNode.insertRow(6);
monRow.insertCell(0).appendChild(monTitle);
monRow.insertCell(1).appendChild(userMon);
break;
}
}
if(document.modifyForm && document.modifyForm.customtitle) {
if(document.modifyForm.personaltext.value.match(re) && !document.modifyForm.customtitle.value.match(re))
{
document.modifyForm.customtitle.value += '[M:'+RegExp.$1+RegExp.$2+']';
document.modifyForm.personaltext.value = document.modifyForm.personaltext.value.replace(re,'');
}
curMon = document.modifyForm.customtitle.value.match(re)? parseInt(RegExp.$1+RegExp.$2, 10) : 0;
Posts = document.modifyForm.posts.value.match(/(-)?(\d+)/)? parseInt((RegExp.$1+RegExp.$2), 10) : 0;
curMon += (Posts * MoneyPerPost)
document.modifyForm.customtitle.value = document.modifyForm.customtitle.value.replace(re,'');
document.modifyForm.customtitle.maxLength = 490;
var display = document.createElement('input');
display.type = 'text';
display.id = 'monDisplay';
display.size = parseInt(curMon.toString().length, 10) + 2;
display.disabled = true;
display.value = SymbolOfMoney + curMon;
var type = document.createElement('select');
type.id = 'monType';
type.appendChild(document.createElement('option'));
type.firstChild.appendChild(document.createTextNode('+'));
type.appendChild(document.createElement('option'));
type.lastChild.appendChild(document.createTextNode('-'));
type.lastChild.value = '-';
var mon = document.createElement('input');
mon.type = 'text';
mon.id = 'monChange';
mon.size = 5;
mon.value = 0;
var update = document.createElement('input');
update.type = 'button';
update.value = 'Update';
update.onclick = function(){ updateMon(); };
var editMon = document.createElement('font');
editMon.appendChild(type);
editMon.appendChild(document.createTextNode(' '));
editMon.appendChild(mon);
editMon.appendChild(document.createTextNode(' '));
editMon.appendChild(update);
var newTitle = document.createElement('font');
newTitle.size = '2';
newTitle.appendChild(document.createTextNode(NameOfMoney +': '));
newTitle.appendChild(display);
var newDes = document.createElement('font');
newDes.size = '1';
newDes.appendChild(document.createTextNode('Here you can edit the amount of '+NameOfMoney+' a member has. Just enter the value of ' +NameOfMoney+ ' to add or subtract.'));
var target = document.modifyForm.customtitle.parentNode.parentNode.parentNode.parentNode.insertRow(2);
target.insertCell(0).appendChild(newTitle);
target.insertCell(1).appendChild(editMon)
target.insertCell(2).appendChild(newDes);
document.getElementsByName('profileaction').item(0).onclick = function() { saveMon(); };
}
//-->
</script>
<!---Left Side Tables and Chat Box Footer---->
<! =====
START Smangii's {LEFT} Side Tables *REVISED*
Global Footer
===== -->
<script type="text/javascript">
<!--
table = document.getElementsByTagName('table');
for(i = 0; i < table.length; i ++) {
with(table) {
if(width == '92%') {
width = '100%';
}}}
//-->
</script>
</td></tr></table>
<!---Report To Admin Link---->
<script type="text/javascript">
<!--
/*
Report to Admin v1
For Support: support.proboards.com
*/
var reportLink = "[REPORT POST]";
var reportSubject = "Reporting User: ";
var reportTo = "admin, lacey ";
var tds = document.getElementsByTagName("td");
function enc(sStr) {
return escape(sStr).replace(/\+/g, '%2B').replace(/\"/g,'%22').replace(/\'/g, '%27').replace(/\&/g, '%26');
}
if(location.href.match(/action=display/i)){
pageLink = (location.href.match(/#/)) ? location.href.split(/#/i)[0] : location.href;
for(i=0; i<tds.length; i++){
if (tds.width == "20%" && (tds.getElementsByTagName('a')[0] && tds.getElementsByTagName('a')[0].name && tds.getElementsByTagName('a')[0].name.match(/^\d+$/))) {
postId = tds.getElementsByTagName('a')[0].name;
memberName = ((tds.getElementsByTagName('a')[2] && tds.getElementsByTagName('a')[2].href.match(/=viewprofile/)) ? (tds.getElementsByTagName('a')[2].getElementsByTagName('font')[0] ? tds.getElementsByTagName('a')[2].getElementsByTagName('font')[0].innerHTML : tds.getElementsByTagName('a')[2].innerHTML) : 'Guest');
memberLink = (tds.getElementsByTagName('a')[2] && tds.getElementsByTagName('a')[2].href.match(/=viewprofile/)) ? '[url='+tds.getElementsByTagName('a')[2].href+']'+ memberName +'
pmLink = '/?action=pmsend&to='+ reportTo +'&subject='+ enc(reportSubject) + memberName +'&message=I am reporting '+ enc(memberLink) +' for making this post';
// add link to post body
postBody = tds.nextSibling;
plinks = postBody.getElementsByTagName('a');
for (b=plinks.length-1;b>=0;b--)
if (plinks.innerHTML.match(/Link to Post/) && plinks[b+1].href.match(/#/))
plinks.parentNode.innerHTML= '<a href="'+ pmLink +'">'+ reportLink +'</a> - '+ plinks.parentNode.innerHTML;
}
}
}
//-->
</script>
<head>
<title>Hogwarts is now back</title>
<meta name="description" content="An online RP magical school">
<meta name="keywords" content="Add Keywords Here Separated By A Coma, For Example;
Harry, Harry Potter, Hogwarts, online school, magic, magical school">
</head>
<!---Top 10 Threads Instead of Posts--->
<script type="text/javascript">
<!--
/*
Top 10 threads instead of posts..
By Todge
Copyright © 2009
Please keep this header intact
*/
if(location.href.match(/tion=recent/))
{
var threads = new Array();
var posts = document.links;
for(p=0; p<posts.length; p++)
{
if(posts
.href.match(/thread=(\d)+&/) && posts
.parentNode.className == 'cattext')
{
var thisthread = 'thread='+posts
.href.split('thread=')[1].split('page')[0];
if(!threads.join('').match(thisthread))
{
threads[threads.length] = posts
.href+'|'+posts
.innerHTML;
if(threads.length > 9)
{
break;
}}}}
var threadcount = 0;
var results = document.getElementsByTagName('b');
for(r=0; r<results.length; r++)
{
if(results[r].innerHTML.match(/(\d)+ Most Recent Posts/))
{
results[r].innerHTML = '10 Most Recent Threads';
}
if(results[r].innerHTML.match(/(\d)+ Results Found/))
{
results[r].innerHTML = threads.length+' Results Found';
}
if(results[r].innerHTML.match(/Result (\d)+ of 100:/))
{
threadcount++;
if(threadcount < threads.length)
{
results[r].innerHTML = 'Result '+threadcount+' of 10:';
var table = document.createElement('table');
var tbody = document.createElement('tbody');
var tr = document.createElement('tr');
var td = document.createElement('td');
tr.appendChild(td);
tbody.appendChild(tr);
table.appendChild(tbody);
with(table){className='bordercolor'; width='100%'}
with(td){className='catbg'; height='25px'; width='100%'; align='center'; innerHTML='<a href="'+threads[threadcount-1].split('|')[0]+'">'+threads[threadcount-1].split('|')[1]+'</a>';}
results[r].parentNode.replaceChild(table,results[r].nextSibling.nextSibling);
}
else
{
results[r].style.display='none';
results[r].nextSibling.style.display='none';
results[r].nextSibling.nextSibling.style.display='none';
results[r].nextSibling.nextSibling.nextSibling.style.display='none';
results[r].nextSibling.nextSibling.nextSibling.nextSibling.style.display='none';
}}}}
if(document.title.match(/- Home$/))
{
var recent = document.links;
for(r=0; r<recent.length; r++)
{
if(recent[r].innerHTML.match(/(\d)+ most recent posts/))
{
recent[r].innerHTML = '10 most recent threads';
}}}
// -->
</script>
<!---Resize Forum Width--->
<!-----Do Not Delete----->
<script type="text/javascript">
<!--
/* resize forum width - open source */
var table = document.getElementsByTagName( 'table' );
for(i=0; i<table.length; i++) {
if(table.item(i).width == '92%') {
table.item(i).width = '728px';
}
}
//-->
</script>
<script type="text/javascript">
<!--
var fWidth = '750';
var table = document.getElementsByTagName('table');
for(t=0; t<table.length; t++) {
if(table.item(t).width == "50%") {
table.item(t).width = fWidth;
}
}
// -->
</script>
<!---Thread Layout Modification--->
<script type="text/javascript">
<!--
/*
thread layout modification
v1 by elindir
do not repost without permission
*/
var td = document.getElementsByTagName('td');
for(i=0; i<td.length; i++)
{
if(td.width == '20%' && td[i-1].width == '4%')
{
if(td.className == 'catbg'){td[i-4].firstChild.innerHTML += '/Thread Starter';}
else{td[i-4].innerHTML += '<br/>'+td[i-3].innerHTML;}
td[i-3].innerHTML = td.innerHTML;
td[i-3].width = '20%'; td[i-3].align = 'right';
td.style.display = 'none';
}
}
//-->.
</script>
<!---Right Side Tables Footer--->
<! =====
START Smangii's {RIGHT} Side Tables *REVISED*
Global Footer
===== -->
<script type="text/javascript">
<!--
table = document.getElementsByTagName('table');
for(i = 0; i < table.length; i ++) {
with(table) {
if(width == '92%') {
width = '100%';
}}}
//-->
</script>
</td>
<td vAlign="top">
<! ===== BOX #1 START ===== -->
<table id="sidetables" cellpadding="4px" class="bordercolor" cellspacing="1">
<tr><td align="center" class="titlebg">
Witch of The Week:
</td></tr>
<tr><td class="windowbg">
<b><center>JJ Welding!</center></b>
<br></br>
JJ is a fond Slytherin who is dedicated to learning the dark arts and being her self by hanging with others in her house. She is extreamly nice to her own house apart from Gryffindors.
</br>
</td></tr></table>
<! ===== BOX #2 START ===== -->
<table id="sidetables" class="bordercolor" cellpadding="4" cellspacing="1">
<tr><td align="center" class="titlebg">
Wizard of The Week:
</td></tr>
<tr><td class="windowbg">
<b><center>James Holden!</center></b>
<br></br>
James Holden is a student of Hogwarts is now back, his parents signing him up when they heard the news that Hogwarts is now back was back. He is interested in taking a whole bunch of subjects and enjoys potions. He wants to be a potion teacher when he's older.</br>
</td></tr></table>
<! ===== BOX #3 START ===== -->
<table id="sidetables" class="bordercolor" cellpadding="4" cellspacing="1">
<tr><td align="center" class="titlebg">
Current Events:
</td></tr>
<tr><td class="windowbg">
School opens on September 10th
<br>No classes on September 11th
<br>Hogsmeade opens on the 19th of September for all students</br>
</td></tr></table>
<! -- ***NOTE*** Place any extra added side tables above this line // -->
</td></tr></table>
<!---Fusion Mini Profile--->
<script type="text/javascript">
/*
Fusion Mini Profile A By hey
No reposting and keep header intact.
Feel Free To Modify, but keep this header intact
*/
var td = document.getElementsByTagName('td');
function executeMiniProfileA(){
for(t=0;t<td.length;t++){
if(td[t].className=="titlebg" && td[t].colSpan>1 && td[t].innerHTML.match(/searchpopup&/) && td[t].innerHTML.match(/sendtopic&/)){
td[t].colSpan='1';
}
if(td[t].width=="20%" && td[t].innerHTML.match(/(Posts:|<b>Poll<\/b><\/font>|Author|Guest<br\s?\/?>)/i)){
td[t].style.display='none';
}
if(td[t].width=="20%" && td[t].innerHTML.match(/Posts:/i) && !td[t].innerHTML.match(/Guest/i)){
td[t+2].parentNode.style.display='none';
var threadSymbol = td[t+2].innerHTML;
var date = td[t+1].getElementsByTagName('font')[1].innerHTML.replace('«','').replace('»','');
miniHolder = '<table width="100%" cellpadding="0"><tr><td width="100%">';
miniHolder += '<table cellpadding="0" width="100%"><tr><td width="99%" colspan="3" valign="middle">';
miniHolder += '<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td width="50%" colspan="3" valign="middle">';
miniHolder += ''+threadSymbol+date+'';
miniHolder += '</td>';
var offlineOnline = (td[t].innerHTML.match(/member is (.+?)<br\s?\/?>/i)) ? RegExp.$1: '';
miniHolder += '<td width="50%" colspan="3" valign="middle" align="right">';
miniHolder += 'This member is currently '+offlineOnline+'.';
miniHolder += '</td></tr></table></td></tr>';
miniHolder += '<tr><td colspan="3" width="100%">';
miniHolder += '<hr width="99%" size="1" class="hr" />';
miniHolder += '</td></tr>';
var avatarImage = (td[t].getElementsByTagName('center')[0].innerHTML.match(/(.+?)<br\s?\/?>/i)) ? RegExp.$1: '';
miniHolder += '<tr><td width="1%">';
miniHolder += ''+avatarImage+'';
miniHolder += '</td>';
if(td[t].innerHTML.match(/(.+?)<br\s?\/?>(.+?)<br\s?\/?>(.+?)<br\s?\/?>(.+?)<br\s?\/?>/i)){
var screenName = RegExp.$1;
var statusRank = RegExp.$2;
var statusImages = RegExp.$3;
var statusTitle = RegExp.$4;
if(!statusTitle.match (/member is/i)){
var customTitle = ' - '+RegExp.$4;
} else {
var customTitle = '';
}
}
miniHolder += '<td width="50%" valign="middle"><font size="3">';
miniHolder += ''+screenName+' ';
miniHolder += ' </font>';
miniHolder += ''+statusImages+'';
miniHolder += '<br />';
miniHolder += ''+statusRank+customTitle+'';
miniHolder += '<br />';
if(td[t].innerHTML.match(/Karma:/i)){
var karmaWord = 'Karma: ';
var karmaArea = td[t].innerHTML.split(/Karma: /i)[1];
} else {
var karmaWord = '';
var karmaArea = '';
}
miniHolder += ''+karmaWord+karmaArea+'';
miniHolder += '</td>';
var joinDate = (td[t].innerHTML.match(/Joined: (.+?)<br\s?\/?>/i)) ? 'Joined: '+RegExp.$1+'<br />': '';
miniHolder += '<td width="49%" align="right">';
miniHolder += ''+joinDate+'';
var locattion = (td[t].innerHTML.match(/Location: (.+?)<br\s?\/?>/i)) ? 'Location: '+RegExp.$1+'<br />': '';
miniHolder += ''+locattion+'';
var gender = (td[t].innerHTML.match(/Gender: (.+?)<br\s?\/?>/i)) ? 'Gender: '+RegExp.$1+'<br />': '';
miniHolder += ''+gender+'';
var postCount = (td[t].innerHTML.match(/Posts: (.+?)<br\s?\/?>/i)) ? 'Posts: '+RegExp.$1+'<br />': '';
miniHolder += ''+postCount+'';
miniHolder += '</td></tr>';
var postInfo = td[t+1].innerHTML;
miniHolder += '<tr><td width="100%" colspan="3">';
miniHolder += ''+postInfo+'';
miniHolder += '</td></tr>';
miniHolder += '<tr><td width="100%" colspan="3" valign="middle">';
miniHolder += '<hr width="99%" size="1" class="hr" />';
miniHolder += '</td></tr>';
miniHolder += '<tr><td width="99%" colspan="3" valign="middle">';
miniHolder += '<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>';
var buttons = td[t+4].innerHTML;
miniHolder += '<td width="100%" colspan="3" valign="middle" align="right">';
miniHolder += ''+buttons+'';
miniHolder += '</td></tr></table';
miniHolder += '</td></tr></table>';
miniHolder += '</td></tr></table>';
td[t+1].innerHTML=''+miniHolder+'';
}
if(td[t].width=="20%" && !td[t].innerHTML.match(/Posts:/i) && td[t].innerHTML.match(/Guest/i)){
td[t+2].parentNode.style.display='none';
var threadSymbol = td[t+2].innerHTML;
var date = td[t+1].getElementsByTagName('font')[1].innerHTML.replace('«','').replace('»','');
miniHolder = '<table width="100%" cellpadding="0"><tr><td width="100%">';
miniHolder += '<table cellpadding="0" width="100%"><tr><td width="100%" colspan="3" valign="middle">';
miniHolder += ''+threadSymbol+date+'';
miniHolder += '</td></tr>';
if(td[t].innerHTML.match(/(.+?)<br\s?\/?>(.+?)<br\s?\/?>/i)){
var guestName = RegExp.$1;
var guestGuest = RegExp.$2;
}
miniHolder += '<tr><td colspan="3" width="100%">';
miniHolder += '<hr width="100%" size="1" class="hr" />';
miniHolder += '</td></tr>';
miniHolder += '<tr><td width="1%">';
miniHolder += '</td>';
miniHolder += '<td width="99%" valign="middle">';
miniHolder += '<font size="3">';
miniHolder += ''+guestName+' ';
miniHolder += '</font>';
miniHolder += '<br />';
miniHolder += ''+guestGuest+'';
miniHolder += '</td></tr>';
var postInfo = td[t+1].innerHTML;
miniHolder += '<tr><td width="100%" colspan="3">';
miniHolder += ''+postInfo+'';
miniHolder += '</td></tr>';
var buttons = td[t+4].innerHTML;
miniHolder += '<tr><td width="100%" colspan="3" valign="middle">';
miniHolder += '<hr width="99%" size="1" class="hr" />';
miniHolder += '</td></tr>';
miniHolder += '<tr><td width="50%" colspan="3" align="right">';
miniHolder += ''+buttons+'';
miniHolder += '</td></tr></table>';
miniHolder += '</td></tr></table>';
td[t+1].innerHTML=''+miniHolder+'';
}
}
}
if(!location.href.match(/action=viewprofile/)){
executeMiniProfileA();
}
</script>
<!---CrossFury Version 1.0--->
<script src="http://pb.proscripts.co.uk/uploads/CFFooter.js">
<!--
/*
Project: CrossFury Version 1.0 © Shin, 2005
This code may be used provided that you do not edit or repost this code without my prior permission, and that you do NOT remove this header. This script's coding is my official property, so please do not attempt to claim any of it as your own. This header must always remain intact.
This part of the code goes in your Global Footer ONLY.
Both parts of the code must be properly installed to work.
*/
//-->
</script>
main header
<!---What Is This?---->
<FORM NAME="Enrolment list">
<SELECT NAME="Enrolment list" onChange="loadPage()">
<OPTION VALUE="http://hogwartsisnowback.proboards.com/index.cgi?board=studentcharacterapplications">studentcharacterapplications
<OPTION VALUE="http://hogwartsisnowback.proboards.com/index.cgi?board=staffcharacterapplications">staffcharacterapplications
<OPTION SELECTED VALUE="http://hogwartsisnowback.proboards.com/index.cgi">Home
<OPTION VALUE="http://hogwartsisnowback.proboards.com/index.cgi?board=adultcharacterapplications">adultcharacterapplications
</SELECT>
</FORM>
Main Footer
<!---Newest Member in News Fader--->
<script type="text/javascript">
<!--
// Newest member in News Fader..
if(typeof(fContent)!="undefined")
{
var helloNewbie = 'Welcome to our newest member, ';
var newestMember = document.getElementsByTagName('td');
for(nM=0; nM<newestMember.length; nM++)
{
if(newestMember[nM].width == '40%' && newestMember[nM].align == 'left' && newestMember[nM].vAlign == 'top' && newestMember[nM].innerHTML.match('Newest Member: '))
{
fContent[fContent.length] = helloNewbie+newestMember[nM].innerHTML.split('Newest Member: ')[1].split(/<br/i)[0];
}
}
}
// -->
</script>
<!----Sub-Boards in Board Cell---->
<script type="text/javascript">
/* Sub Boards in board cell
created by CrAzY_J ( hatakeforum.proboards30.com )
Do not redistribute this code without the creator's permission*/
var gCell = document.body.getElementsByTagName( "td" );
if( this.location.href.match(/\.com(\/(index\.cgi(#\w+|\?(action=home)?)?)?)?$/))
{
for( var sel = gCell.length-1 ; sel > 0 ; sel -- )
{
for( var bol = 0 ; bol < gCell.length ; bol ++ )
{
if( gCell[sel].align == "right" && gCell[sel].firstChild.options)
{
var Options = ( gCell[sel].firstChild.options[2].value.match(/\/index\.cgi$/) )? gCell[sel].firstChild.options:false;
if( gCell[bol].width == "66%" && gCell[bol].innerHTML.match(/\((\d+)\ssub-boar(d|ds)\)/i) )
{
var BoardName = gCell[bol].getElementsByTagName( "b" )[0].innerHTML;
var Subs = parseInt(RegExp.$1);
gCell[bol].innerHTML.match(/Moderator/)? gCell[bol].appendChild( document.createElement('br') ):null;
gCell[bol].appendChild( document.createTextNode("Sub-Boards: ") );
for( var opl = 0 ; opl < Options.length ; opl ++ )
{
if( new RegExp('^-\\s'+BoardName+'$','').test(Options[opl].innerHTML ))
{
for( var opl2 = Math.floor( opl + 1 ) ; opl2 < Math.floor( Math.floor( opl + Subs ) + 1 ) ; opl2 ++ )
{
var Link = document.createElement("a");
Link.href = Options[opl2].value;
Link.appendChild( document.createTextNode( Options[opl2].innerHTML.split(/-\s/)[1].replace(/&/gi, '&') ) );
gCell[bol].appendChild( Link );
( opl2 != Math.floor( opl + Subs) )?gCell[bol].appendChild( document.createTextNode(', ')):null;
}
}
}
}
}
}
}
}
</script>
<!---Dividing Categories--->
<script type="text/javascript">
<!--
/*
Dividing Categories - Created by Peter
This code cannot be reposted anywhere other than SSDesigns or ProBoards Support.
This header must stay intact.
*/
// Size of the gap between categories
var gapSize = 25;
var tabHTML = '<td id="rr" colspan="5"></table></td></tr></table><div style="height:' + gapSize + '"></div><table width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" width="100%"><tr>';
if(location.href.match(/\.com(\/|.+cgi(\?|#.+|\?\w+=home)?)?$/i)){
var tBod = document.getElementsByTagName("tbody");
for(tb = 0; tb < tBod.length; tb ++){
for(r = 2; r < tBod.item(tb).rows.length; r ++){
var tBodObj = tBod.item(tb).rows.item(r).cells.item(0);
if(tBodObj.className == "catbg" && tBodObj.colSpan == "5" && tBodObj.align != "right"){
var c = tabHTML + tBod.item(tb).firstChild.innerHTML + "</tr>";
var p = tBodObj.parentNode.innerHTML;
var tBodPar = tBod.item(tb).parentNode.parentNode.parentNode.parentNode.parentNode;
tBodPar.parentNode.innerHTML = tBodPar.parentNode.innerHTML.replace(p, c + p);
}
if(tBod.item(tb).rows.item(r).firstChild.id == "rr"){
tBod.item(tb).rows.item(r).style.display = "none";
}
}
}
}
//-->
</script>
<!----Moderators in New Cell---->
<script type="text/javascript">
<!--
/*Moderators in new cell - By iAlex - Open Source*/
var iTheNoMods="<i>None</i>";
if(location.href.match(/action=(home|change)/)||!location.href.match(/action/) && !document.postForm && !document.modifyForm){
var iTd=document.getElementsByTagName('td');
for(i=0;i<iTd.length;i++){
if(iTd.item(i).width=="66%" && iTd.item(i).align=="left" && iTd.item(i).vAlign=="top" && iTd.item(i).className.match(/windowbg2/)){
var iExTd=iTd.item(i+1).cloneNode(true);
iExTd.width='10%';
iExTd.innerHTML=(iTd.item(i).innerHTML.match(/i>Moderator(s)?: (.+?)<\/i><\/f/i))? RegExp.$2 : iTheNoMods;
iTd.item(i).innerHTML=iTd.item(i).innerHTML.replace(/<br\s?\/?><i>Moderator(s)?: (.+?)<\/i>/i,'');
iExTd.align='center';
iTd.item(i).width='56%';
iTd.item(i).parentNode.insertBefore(iExTd,iTd.item(i+1));
}
if(iTd.item(i).className.match(/catbg/) && iTd.item(i).colSpan=="5"){
iTd.item(i).colSpan='6';
}
if(iTd.item(i).className.match(/titlebg/) && iTd.item(i).innerHTML.match(/>(Forum Name|Sub-Boards)</) && iTd.item(i).colSpan=="2"){
iTd.item(i).width='64%';
var iExTi=iTd.item(i+1).cloneNode(true);
iExTi.width='10%';
iExTi.firstChild.firstChild.innerHTML='Moderators';
iTd.item(i).parentNode.insertBefore(iExTi,iTd.item(i+1));
}
}
}
//-->
</script>
<!---CrossFury Version 1.0 Start--->
<script>
/* Patch - Remove ProBoards Blog from Admin Panel */
/* Top of Main Footer */
if(location.href.match(/action=(admin|\w+3)/i)){
var tbl=document.getElementsByTagName('table');
for(var r=tbl.length-1;r>0;r--){
if(tbl[r].rows.length==1 && tbl[r].rows[0].cells.length==4 && /ProBoards Blog/i.test(tbl[r].rows[0].cells[3].innerHTML)){
tbl[r].rows[0].deleteCell(3);
tbl[r].rows[0].cells[2].width="33%";
tbl[r].rows[0].cells[1].width="34%";
tbl[r].rows[0].cells[0].width="33%";
}
}
}
</script>
<script type="text/javascript" >
/* Patch - Fix CrossFury Options when clicked in admin panel - Eton */
/* Main Footer */
if(location.href.match(/headersfooters2&project=/)){
r=document.getElementsByName('rand');
if(r.length)r[0].parentNode.appendChild(r[0])
}
</script>
<!CrossFury Version 1.0 End--->