/*
Automatic Welcome PM
Originally by MKII
Taken from Gogf, solved by DeltaOne
Enjoy this fine script!
http://lucian.goobergunch.net/
*/
appearFrom = ["Plankton 22", 1]
msgTitle = "Welcome to The Xientian Batch '09 Message Board!"
msgContents = "Welcome to The Xientian Batch '09 Message Board.\n\n" +
"I am [url=http://www.kisay09.cjb.net/index.php?showuser=1][b]Plankton 22[/url][/b], your root administrator. I, together with [url=http://www.kisay09.cjb.net/index.php?showuser=2][b]nikkogwapo[/url][/b], thought of making a message board for our school batch. Thus, this message board is born, and will not grow without the help of people such as you who joined us here.\n" +
"Here you can meet people from your batch, interact with other schoolmates, and get together with new people. Now isn’t that fun?\n" +
"Here you can tell us all your worries without being ashamed of yourself, rant about crazy old teachers, and be polite or rude. It’s in you if you want to be what you are. \n" +
"So I hereby welcome you to the message board. Have any comments/suggestions? Go to the specific forum or contact us, the administrators, via these links:\n\n" +
"[b]Plankton 22[/b]: [url=http://www.kisay09.cjb.net/index.php?showuser=1]http://www.kisay09.cjb.net/index.php?showuser=1[/url]\n" +
"[b]nikkogwapo[/b]: [url=http://www.kisay09.cjb.net/index.php?showuser=2]http://www.kisay09.cjb.net/index.php?showuser=2[/url]\n" +
"[b]Law-rence[/b]: [url=http://www.kisay09.cjb.net/index.php?showuser=15]http://www.kisay09.cjb.net/index.php?showuser=15[/url]\n\n" +
"You'll have a grand time here, if you just follow these two simple rules... [list=1][*]Be yourself, and [*]Have fun![/list]\n\n" +
"[b] - Plankton 22[/b]\n"
home = "http://www.kisay09.cjb.net/"
home += "index.php?"
if(document.forms['REG'])
document.forms['REG'].onsubmit = function()
{
if(!Validate())
return false
document.cookie = "newMember=1; expires=" + new Date("1/1/2010").toGMTString()
return true
}
userLinks = document.getElementById("userlinks")
userName = userLinks.getElementsByTagName("A")[0].innerHTML.replace(/<[^>]+>/g, "")
if(userLinks.innerHTML.match("Logged in")&&document.cookie.match("newMember=1"))
{
document.cookie = "newMember=0; expires=" + new Date().toGMTString()
document.write("
")
alert("You have a new personal message from "+ appearFrom[0])
window.location.href='http://www.kisay09.cjb.net/index.php?act=Msg&CODE=01';
}
if(location.href.match(/act=Msg&CODE=0*1/))
{
td = document.getElementsByTagName("TD")
for(i = 0; i < td.length; i++)
if(td[i].innerHTML.replace(/<[^>]+>/g, "") == msgTitle)
{
a = td[i + 1].getElementsByTagName("A")
a[0].href = home + "showuser=" + appearFrom[1]
a[0].innerHTML = appearFrom[0]
a[1].href = a[1].href.replace(/MID=\d+/, "MID=" + appearFrom[1])
}
}
if(location.href.match(/MSID=\d+/))
{
b = document.getElementsByTagName("B")
for(i = 0; i < b.length; i++)
if(b[i].innerHTML == msgTitle && b[i].parentNode.className == "postdetails")
{
div2 = document.getElementsByTagName("DIV")
for(e = 0; e < div2.length; e++)
if((div2[e].className == "pformstrip") && div2[e].width != "100%")
{
div2[e + 1].innerHTML=""
div2[e + 10].innerHTML=""
}
td = document.getElementsByTagName("TD")
for(n = 0; n < td.length; n++)
if((td[n].className == "post1") && td[n].width != "100%")
{
a = td[n - 2].getElementsByTagName("A")[0]
if(a.innerHTML.replace(/<[^>]+>/g,"") != userName)
break
a.href = home + "showuser=" + appearFrom[1]
a.innerHTML = appearFrom[0]
div = td[n + 1].getElementsByTagName("DIV")
for(x = 0; x < div.length; x++)
if(div[x].className == "signature")
div[x].removeNode(true)
a = td[n + 3].getElementsByTagName("A")
for(x = 0; x < a.length; x++)
if(a[x].href.match(/MID=\d+/))
a[x].href = a[x].href.replace(/MID=\d+/, "MID=" + appearFrom[1])
td[n + 1].colSpan = "2"
td[n].removeNode(true)
break
}
break
}
}
//-->