Forum Url:
www.pncguild.netAgent Moose made me a code awhile ago that allows members to submit guild requests to our guild master on our wwebsite.
I recently tried editing it to where it doesn't get the username, instead they can just put their Pirate name and it uses that instead. However, when you click the button at the bottom of the page, it does nothing
Here is the page URL:
http://www.pncguild.net/?action=pm;sa=send;u=80;other=JoinGuildAnd here is the code:
<script>
if(location.href.match(/other=JoinGuild/i)){
//Created by Agent Moose (revolutionx.smfforfree3.com)
document.title = "Partners N Crime Join Guild Request (Open Server)";
$("#bodyarea").before("<div class='tborder'><div class='catbg' style='padding: 6px; vertical-align: middle; text-align: center;'>Join Guild Request</div><div><table border='0' width='100%' cellspacing='1' cellpadding='4' class='bordercolor'><tr id='SupportText'><td class='windowbg2' colspan='2'>Thank for for choosing to join Partners N Crime, we need to ask you a few questions before you can send your request</td></tr><tr><td class='windowbg2' width='35%'><b>What is your pirate name?:</b></td><td class='windowbg2' width='65%'><input id='q1' size='20' /></td></tr><tr><td class='windowbg' width='35%'><b>What level is your pirate?:</b></td><td class='windowbg' width='65%'><input id='q2' size='20'></td></tr><tr><td class='windowbg2' width='35%'><b>Do you have basic or Unlimited access?:</b></td><td class='windowbg2' width='65%'><select onChange='Type = this.options[this.selectedIndex].value;'><option value='none' selected='selected'>Choose</option><option value='Basic'>Basic</option><option value='Unlimited'>Unlimited</option></select></td></tr><tr><td class='windowbg2' colspan='2'><center><input type='button' onClick='Join();' value='Submit Request To Del Darkskull (Guildmaster)'/></center></td></tr></table></div></div><center><span class='smalltext'>Created by Agent Moose<br /><a href='http://revolutionx.smfforfree3.com'>Revolution X</span></center>");
document.getElementById("bodyarea").style.display = "none";
};
function Join(){
if(confirm("Submit request to Delmaria Darkskull?") == true){
document.forms["postmodify"].subject.value = q1 + " wants to join the Guild!";
document.forms["postmodify"].message.value = "[b]Request to Join Guild from:[/b] " + q1 + "\n[b]What is your pirate name?: [/b] " + document.getElementById("q1").value + "\n[b]What level is your pirate?: [/b] " + document.getElementById("q2").value + "\n[b]Access: [/b]" + Type;
document.forms["postmodify"].submit();
};
};
</script>