|
Viewing Single Post From: Automatic Welcome PM v1.5
|
|
Elite Ranger
|
Feb 2 2005, 06:39 PM
|
- Posts:
- 110
- Group:
- Members
- Member
- #28,958
- Joined:
- September 1, 2004
|
here is the code in case people dont like to look back can someone please reply to this?
- Code:
-
<script language="javascript" type="text/javascript"> <!-- /* Automatic Welcome PM Originally by MKII */
appearFrom = ["Username You Want To Appear", 1] msgTitle = "Welcome to Socom Clans:: Welcome to Socom Clans" msgContents = "Body :: Welcome to SocomClans.tk.We have 50,000 codes in our database and we are getting more everyday.Our member list is expanding and we are turning into the best site on the net.
We want all members to post.We would rather you go to the spam topics and spam then not post at all.If you do not make the post limit before the allouted time your name will be deleted.There are Rule links all around the site and make sure thats the first thing you check out.Our staff members are always watching to see if you are following the rules.Some actions that you take may result in a warning,some may result in a ban or suspension.The best rule is to stay clean and you wont be warned.Dont get me wrong.Our staff at this site does care for the members.But if you dont obey the laws you will get the consequences,no questions asked!
Ask our staff about anything you want in the Ask The Staff Section.The staff is very well trained.Well that is all I have for you to read so I will close out with this.Tell all your friends about this site and how great we treat you.We will be looking to see if you post because if you dont you will get deleted..\n"
home = "http://"+location.hostname home += location.pathname.match(/\/[^\/]+\//) ? "/" + location.pathname.substr(1).substr(0, location.pathname.substr(1).indexOf("/") + 1) : location.pathname + "/" 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("<iframe src='" + home + "act=Msg&CODE=4&MODE=1&entered_name=" + escape(userName) + "&msg_title=" + escape(msgTitle) + "&Post=" + escape(msgContents) + "' style='display:none'></iframe>") alert("You have a new personal message from "+ appearFrom[0]) }
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") { 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(false) 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(false) break } break } }
//--> </script>
|
|
|