| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| [Solved] Problem Welcome Message | |
|---|---|
| Tweet Topic Started: May 28 2008, 05:46 AM (424 Views) | |
| Lackster | May 28 2008, 05:46 AM Post #1 |
|
Dare You Enter The Gate
|
i got this code which sends a msg when someone registers from this site however i cant get it to work please can you help me fix it. Thanks <script language="javascript" type="text/javascript"><!-- /*Automatic Welcome PMOriginally by MKII*/appearFrom = ["Username You Want To Appear", 1]msgTitle = "Welcome To Timetravel:: Welcome to Socom Clans"msgContents = "Body :: Welcome to the doctor who fan site. I hope you enjoy this site. We have security measures in place which are when you send a private message it will also go to the admin. The reason for this is because if members are being bullied i can prevent them from doing so by stopping them using the Private message system. If there is nothing to worry about then just send it as normal. I will delete the message no one else will see them i promise you i will do that...\n" home = "http://"+location.hostnamehome += 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 falsedocument.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.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.innerHTML == msgTitle && b.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)breaka.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> |
![]() |
|
| Lackster | May 28 2008, 06:20 AM Post #2 |
|
Dare You Enter The Gate
|
SOLVED |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · zIFBoards - Skinning & Code Support · Next Topic » |






4:16 AM Jul 11