Welcome Guest [Log In] [Register]
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:

Username:   Password:
Add Reply
Automatic Welcome PM v1.5; Originally by MKII, Edited by Dove
Topic Started: Jan 23 2005, 08:02 PM (7,082 Views)
Esjay
Hmm....
 *   *  
Quote:
 
appearFrom = ["Username You Want To Appear", 1]

u forgot to change dis part
Offline Profile Quote Post Goto Top
 
Wimper
Socom Clans Inc. Site Owner
 *   *  
yea besides that part what else is wrong i mean the code seems not to work at all on my board but when i use it like its posted in the first post unedited it works fine
Offline Profile Quote Post Goto Top
 
Carlito Cool
Member Avatar
Member
 *  
Hmmm....I while ago I was told there was not gonna be one of these. Props to whoever made it. :)
Offline Profile Quote Post Goto Top
 
Wimper
Socom Clans Inc. Site Owner
 *   *  
well there will be props to whoever can help me fix the code so please someone please help with this so that i can get it done
Offline Profile Quote Post Goto Top
 
Elite Ranger
Crazy White Dude
 *   *  
does anyone know anything about that code and can a staff member please help wimper cause i wanna see also
Offline Profile Quote Post Goto Top
 
Elite Ranger
Crazy White Dude
 *   *  
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>
Offline Profile Quote Post Goto Top
 
ngkid64
Member
 *  
i was looking for something like this and then i found it but what the hell does this mean:
Be sure to add a + at the of every line but except for the last one. For extra space (extra line) add a \n right after the \n before it and before the " after it.

please explain :blink:
Offline Profile Quote Post Goto Top
 
Elite Ranger
Crazy White Dude
 *   *  
yea same thing i visited the guys website that made this then he took away my rights to pm and my rights to post....i think this guy should be banned from here cause that is not a way to get members here...i mean here is the code but where is the guy...i think that the staff here needs to take care of this guy
Offline Profile Quote Post Goto Top
 
Typhoon Omi
Member Avatar
[:Gerannium Knight:]
 *   *   *   *   *  
Elite Ranger, ain't gonna happen. He didn't break any rules. And the code works, since..it's..ya know..working for me. o_o'
Offline Profile Quote Post Goto Top
 
ngkid64
Member
 *  
Typhoon Omi
February 2, 2005 07:23 PM
Elite Ranger, ain't gonna happen. He didn't break any rules. And the code works, since..it's..ya know..working for me. o_o'

can you show us the code you put in your board, so we can see what we're doing wrong.
Offline Profile Quote Post Goto Top
 
Elite Ranger
Crazy White Dude
 *   *  
yea that might help show us what you did cause that would really benifit all members that use that code then
Offline Profile Quote Post Goto Top
 
Wimper
Socom Clans Inc. Site Owner
 *   *  
well can you show us a example???? also can a moderator please respond to this topic?
Offline Profile Quote Post Goto Top
 
silver_waves
Member
 *  
Wimper, what you need to edit is your MESSAGE!!! Personally, if that was my welcome message, I would turn around and LEAVE. I know you want to get your point across, but really. 'WE WILL DELETE YOU'. Also, you boast too much. And I really CANNOT see how you have ANY users unless they are desperate if that's the way you treat them. OK, I'm done.
Offline Profile Quote Post Goto Top
 
bittersweet
Member
 *  
thanks
Offline Profile Quote Post Goto Top
 
scott66
Member Avatar
I'm Scott66, remember the name!
 *   *   *  
wow, :w00t: w-ohh!, nice code! 9.5/10!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Code Snippets · Next Topic »
Add Reply