Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Code Requests
  • Completed Requests
  • [Completed] [ZB] Application (Forum) Form
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
[Completed] [ZB] Application (Forum) Form; Need help with the script!
Tweet Topic Started: Sep 28 2009, 07:59 AM (654 Views)
stargazer Sep 28 2009, 07:59 AM Post #1


Posts:
219
Group:
Dedicated
Member
#2,299
Joined:
Feb 11, 2009
Coding language
HTML/CSS
I am referring to the code about a form that is sent to a specific staff forum. Link: Original Code From there its provided at the end how to receive the appeal form to a forum of your choice. I have edited this code for a nomination of award form, which is unedited in spoiler below.

I have an application form were I would like to use this feature. But I am having trouble creating the code/script to process the form. Could someone help me with this if I provide the form layout? The form is given in the spoiler and and the code follows (but needs re-coding?)

Spoiler: click to toggle


The form to be processed:

Code:
 
<div class="category">
<table class="cat_head">
<tr>
<td>
<h2>
<div align="center">Become a crewman aboard USS Interceptor!</div>
</h2>
</td>
</tr>
</table>
</div>
<table>
<tr>
<td style="width:75%">

Your application form is one of the most important items you will write within this group, your application determines how the Game Masters rate your character. A poor application will likely see an PM from the Staff with suggestions and tips on how to improve your application, where as a good application will be approved at once and you will have bigger shot of getting a higher rank assigned to your character.
<br><br>
If you haven't done so already we urge you to check out the Interceptor's Documentation (Rules/Posting Guidelines) which can be found via the starbase icon at the top.
<br><br>
<i>Warning, we strongly recommend that you save a copy of this application locally before submitting! After approved application you must post your bio on the forum again.
</i><br><br>
<h2>
Please fill out the below fields:
</h2>
<br><br>
</td>
</tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td colspan="2" width="362" bgcolor="#333333">
<font color="#ffffff"><b><font size="2">Player Information</font></b></font></td>
</tr>

<tr>
<td valign="top" width="362" align="right"><font color="#ffffff">
Your Real Name:</font></td>

<td width="622">
<font color="#ffffff">
<input size="37" name="Name" type="text">
</font></td>
</tr>

<tr>
<td valign="top" width="362" align="right"><font color="#ffffff">

Your Real Age:</font></td>

<td width="622">
<font color="#ffffff">
<input size="37" name="Age" type="text">
</font></td>
</tr>

<tr>
<td valign="top" width="362" align="right"><font color="#ffffff">

Email Address:</font></td>

<td valign="top" width="622">
<font color="#ffffff">
<input size="37" name="Email" type="text">
</font></td>
</tr>

<tr>
<td valign="top" width="362" align="right"><font color="#ffffff">

<br><br>Instant Messengers:</font></td>

<td valign="top" width="622">
<font color="#ffffff">
Please place all instant messenger contacts you wish to disclose in this box.<br>
Please be sure to identify which program to which each contact belongs<br>
<textarea name="IMs" rows="5" cols="50"></textarea>
</font></td>
</tr>

<tr>

<td valign="top" width="362" align="right" height="14"><font color="#ffffff">

Will you follow all <br>USS Interceptor Rules and Guidelines:</font></td>
<td valign="top" width="622" height="14"><font color="#ffffff"><br>
<input name="Follow_OF_Rules" value="Yes" type="radio"> Yes<br>
<input name="Follow_OF_Rules" value="No" type="radio"> No<br>


</font></td>
</tr>

<tr>
<td valign="top" width="362" align="right" height="100"><font color="#ffffff">

<br><br><br>Role Playing Experience:</font></td>
<td valign="top" width="622" height="100">
<font color="#ffffff">
Please list previous RPG (and similar) experience.<br>
Include the organization and when you served there for each entry. <br>
No experience? No problem!<br>

<textarea name="RPG_Experience" rows="4" cols="50"></textarea>
</font></td>
</tr>

<tr><td colspan="2" width="362" bgcolor="#333333">
<font color="#ffffff"><b><font size="2"><br>Simm Information</font></b></font></td>

</tr>

<tr>
<td valign="top" width="362" align="right"><font color="#ffffff">

First Choice Simm:</font></td>
<td valign="top" width="622">
<font color="#ffffff">

<select name="Ship">

<option value="Int">Interceptor</option>

</select>
</font></td>
</tr>

<tr>
<td valign="top" width="362" align="right"><font color="#ffffff">

<br>First Choice Position:</font></td>
<td valign="top" width="622">
<font color="#ffffff"><br>
<a href="http://s1.zetaboards.com/Interceptor/topic/2293268/" target="_blank">Need help finding a position?</a>
<br>

<select name="First_Desired_Position" size="1"><option value="Any" selected="selected">Any</option>
<option value="Executive Officer">Executive Officer</option>

<option value="Chief Flight Control Officer (Helmsman)">Chief Flight Control Officer</option>
<option value="Assistant Chief Flight Control Officer (Helmsman)">Assistant Chief Flight Control Officer</option>
<option value="Flight Control Officer (Helmsman)">Flight Control Officer (Helmsman)</option>

<option value="Chief Operations Officer">Chief Operations Officer</option>
<option value="Assistant Chief Operations Officer">Assistant Chief Operations Officer</option>
<option value="Operations Officer">Operations Officer</option>

<option value="Chief Tactical/Security Officer">Chief Tactical/Security Officer</option>
<option value="Assistant Chief Tactical/Security Officer">Assistant Chief Tactical/Security Officer</option>
<option value="Tactical/Security Officer">Tactical/Security Officer</option>

<option value="Chief Engineering Officer">Chief Engineering Officer</option>
<option value="Assistant Chief Engineering Officer">Assistant Engineering Officer</option>
<option value="Engineer Officer">Engineer Officer</option>

<option value="Chief Medical Officer">Chief Medical Officer</option>
<option value="Assistant Medical Officer">Assistant Chief Medical Officer</option>
<option value="Medical Officer">Medical Officer</option>

<option value="Chief Counselor">Chief Counselor</option>
<option value="Assistant Chief Counselor">Assistant Chief Counselor</option>

<option value="Chief Science Officer">Chief Science Officer</option>
<option value="Assistant Science Officer">Assistant Chief Science Officer</option>
<option value="Science Officer">Science Officer</option>


<option value="Other">Other</option>
</select><br>
If other: <input name="otherpos1" type="text">
</font></td>
</tr>

<tr>
<td valign="top" width="362" align="right"><font color="#ffffff">

<br>Second Choice Position:</font></td>
<td valign="top" width="622">
<font color="#ffffff"><br>
<select name="Second_Desired_Position" size="1">
<option value="Any" selected="selected">Any</option>
<option value="Executive Officer">Executive Officer</option>

<option value="Chief Flight Control Officer (Helmsman)">Chief Flight Control Officer</option>
<option value="Assistant Chief Flight Control Officer (Helmsman)">Assistant Chief Flight Control Officer</option>
<option value="Flight Control Officer (Helmsman)">Flight Control Officer (Helmsman)</option>

<option value="Chief Operations Officer">Chief Operations Officer</option>
<option value="Assistant Chief Operations Officer">Assistant Chief Operations Officer</option>
<option value="Operations Officer">Operations Officer</option>

<option value="Chief Tactical/Security Officer">Chief Tactical/Security Officer</option>
<option value="Assistant Chief Tactical/Security Officer">Assistant Chief Tactical/Security Officer</option>
<option value="Tactical/Security Officer">Tactical/Security Officer</option>

<option value="Chief Engineering Officer">Chief Engineering Officer</option>
<option value="Assistant Chief Engineering Officer">Assistant Engineering Officer</option>
<option value="Engineer Officer">Engineer Officer</option>

<option value="Chief Medical Officer">Chief Medical Officer</option>
<option value="Assistant Medical Officer">Assistant Chief Medical Officer</option>
<option value="Medical Officer">Medical Officer</option>

<option value="Chief Counselor">Chief Counselor</option>
<option value="Assistant Chief Counselor">Assistant Chief Counselor</option>

<option value="Chief Science Officer">Chief Science Officer</option>
<option value="Assistant Science Officer">Assistant Chief Science Officer</option>
<option value="Science Officer">Science Officer</option>

<option value="Other">Other</option>
</select><br>

If other: <input name="otherpos2" type="text">
</font></td>
</tr>
<tr>
<td valign="top" width="362" align="right"><font color="#ffffff">

Requested Rank:<br></font></td>
<td valign="top" width="622">
<font color="#ffffff">
Note! New members can only obtain rank Ensign, Lt. JG or Lt. <br>
<input size="57" name="Requested_Rank" type="text">
</font></td>
</tr>

<tr><td colspan="2" width="362" bgcolor="#333333">
<font color="#ffffff"><b><font size="2"><br><br>Character Information</font></b></font><br>
</td>
</tr>

<tr>
<td valign="top" width="362" align="right"><font color="#ffffff">

Character's Name:</font></td>
<td valign="top" width="622">
<font color="#ffffff">
<input size="37" name="Characters_Name" type="text">
</font></td>
</tr>

<tr>

<td valign="top" width="362" align="right"><font color="#ffffff">

Character's Race:</font></td>
<td valign="top" width="622">
<font color="#ffffff">
<input size="37" name="Characters_Race" type="text">
</font></td>
</tr>

<tr>
<td valign="top" width="362" align="right"><font color="#ffffff">

Character's Gender:</font></td>
<td valign="top" width="622"><font color="#ffffff"><b>
<input size="37" name="Characters_Gender" type="text">
</b></font></td>
</tr>

<tr>
<td valign="top" width="362" align="right"><font color="#ffffff">

Face Claim (if any):</font></td>
<td valign="top" width="622"><font color="#ffffff"><a href="http://s1.zetaboards.com/Interceptor/topic/2269967/1/">See List of None available:</a><br><b>
<input size="37" name="Characters_FaceClaim" type="text">
</b></font></td>
</tr>

<tr>
<td valign="top" width="362" align="right" height="150"><font color="#ffffff">

Character Application:<br>
</font></td>
<td valign="top" width="622" height="150">
<font color="#ffffff">
<textarea name="Character_Bio" rows="30" cols="50">
Remember to re-post this application once you have been approved. You may add fields, but not remove!

[center]
[b][big]Full Name [/big][/b]

[img]URL LINK TO PICTURE OF YOUR CHARACTER HERE[/img]

[/center]

[right]BASICS
- - - - - - - - - - - - - - - - - - - -[/right]

FULL NAME:
SPECIES:
AGE:
GENDER:
HEIGHT:
WEIGHT:
HAIR:
EYES:
SPECIAL MARKS:
SPECIES ABILITIES (if they have any i.e. telepathy):
BIRTHPLACE:

[right]STARFLEET RECORDS
- - - - - - - - - - - - - - - - - - - -
[/right]

RANK: (To be added after application)
POSITION: (To be added after application)
STARFLEET RECORD:

(YEAR - ASSIGNMENT - RANK - SHIP/STARBASE/OTHER)
(To be added after application)

[right]PERSONAL
- - - - - - - - - - - - - - - - - - - - - - - - -
[/right]

STRENGTHS:
WEAKNESSES:
APPEARANCE:
PERSONALITY:
FAMILY/RELATIVES:

Mother:
Father:
Siblings:
Spouse:
Children:

MEDICAL/PSYCHOLOGY NOTES:

[right]FULL HISTORY
- - - - - - - - - - - - - - - - - - - -[/right]



</textarea>

</font></td>
</tr>

<tr>
<td valign="top" width="362" align="right" height="150"><font color="#ffffff">

Species Application:<br>
</font></td>
<td valign="top" width="622" height="150">
<font color="#ffffff">

<textarea name="Character_Species" rows="30" cols="50">
So you have a great idea for alien? Submit your species using this template.

Note! If your character belong to an already existing known species you do not have to add this.

Note! 'Species Name' should be replaced with the name of the species. You may add fields but not remove existing!


[center][b]General Information - Species Name [/b]

[URL] ADD LINK TO PICTURE [/URL][/center]


Descriptive text...


[u]Physical Specifics[/u]

[b]Species: [/b]
[b]Affiliation: [/b]

[b]Appearance:[/b]
[b]Skin/Hair/Eyes Color: [/b]
[b]Average Height (M/F): [/b]
[b]Average Weight (M/F):[/b]
[b]Other: [/b]

[b]Native Environment:[/b]
[b]Homeworld:[/b]
[b]Location: [/b]

[b]Medical Notes:[/b]
[b]Life Expectancy (M/F):[/b]
[b]Unusual Traits: [/b]

[big][center] Important Characters
[/center][/big][center]

[b](Add Name)[/b]

[img] LINK TO IMAGE [/img]

Short text about the character [url=]Further Information[/url]
[/center]


</textarea>
</font></td>
</tr>

<tr>
<td valign="top" width="362" align="right" height="150"><font color="#ffffff">

<br>Please reply to the situation with you in the same position as
your first desired position.<br><br>
<i>You are in the lounge talking to a few of your friends. One of them
brings up the subject of why he entered Starfleet.Before he's even
finished, it's obvious that everyone wants to tell their own story and
share their feelings about Starfleet, military service and life in
general. The question eventually makes itself to you.</i><br><br>
or<br><br>
<i>You are asleep in your quarters when suddenly the ship shakes
violently and you are knocked out of your bed.</i><br><br>

</font></td>

<td valign="top" width="622" height="150">
<font color="#ffffff">
<textarea name="Sample_Post" rows="15" cols="50">Sample Post
</textarea>
</font></td></tr>

<tr><td colspan="2" width="362" bgcolor="#333333">

<font color="#ffffff"><b><font size="2">Reference</font></b></font></td>
</tr>

<tr>
<td valign="top" width="362" align="right"><font color="#ffffff">

How did you Hear About USS Interceptor?:</font></td>
<td valign="top" width="622">
<font color="#ffffff">Please elaborate.<br>

<textarea name="Why did you join us? What made you to pick this sim? " rows="11" cols="50"></textarea>
</font></td>
</tr>

</tbody></table>
</center>
</td>
</tr>
</tbody></table>
</form>

</td></tr></tbody></table>



<div id="app_ajax" style="text-align:center;">
<br />
<button id='app_send'>Submit</button>
</div>




The script that needs editing!

Code:
 
<script type='text/javascript'>
// <![CDATA[
var forum_num = 1181957;
// stop editing pl0x :D
var usr_s = jQuery('#top_info strong a'), usr_name = usr_s.text(), usr_link = usr_s.attr('href');
if (usr_name != '') {
jQuery('#app_send').click(function(e) {
e.preventDefault();
e.returnValue = false;
jQuery('#app_ajax').css('color','green').html('<br />Sending your contribution...');
jQuery.get(main_url + 'post/?type=1&mode=1&f=' + forum_num, function(r) {
jQuery.post(main_url + 'post/', { xc:jQuery('input[name=xc]', r).val(), type:1, mode:1, f:forum_num, ast:jQuery('input[name=ast]', r).val(), sd:jQuery('input[name=sd]', r).val(), title:'Award nominee From ' + usr_name, post:"[table=2,Award Nominee,0][b]Username:[/b][c][url="+usr_link+"]"+usr_name+"[/url][c][b]Month:[/b][c]"+jQuery('input[name=app_date]').val()+"[c][b]Who should win this month's award:[/b][c]"+jQuery('input[name=app_nominee]').val()+"[c][b]The winning quote:[/b][c][c]"+jQuery('textarea[name=app_post]').val()+"[c][c][b]Why do you think he/she should win?:[/b][c][c]"+jQuery('textarea[name=app_reason]').val()+"[c][/table]" }, function() {
jQuery("#app_ajax").html("<br />Your contribution have been added!");
});
});
});
} else {
jQuery('#app_ajax').css('color', 'green').html('<br />Guests are not permitted to use this feature. Please <a href="' + main_url + 'login/">log in</a>.');
}
// ]]>
</script>


Any help is much appreciated!
Edited by stargazer, Sep 28 2009, 08:49 AM.
Offline Profile Goto Top
 
stargazer Oct 7 2009, 01:44 PM Post #2


Posts:
219
Group:
Dedicated
Member
#2,299
Joined:
Feb 11, 2009
Coding language
HTML/CSS
Can somebody help me?
Offline Profile Goto Top
 
stargazer Oct 9 2009, 02:42 AM Post #3


Posts:
219
Group:
Dedicated
Member
#2,299
Joined:
Feb 11, 2009
Coding language
HTML/CSS
I have one additional question to the code. Can you have guest use the form? You can have guest in the forum settings, but this code does not work when guest try to add their contribution. This does not involve the form above, but a similar one.

I would appreciate any help I can get with the code for the form above. I have really no idea how to add dropdown choices to the code.
Edited by stargazer, Oct 9 2009, 02:43 AM.
Offline Profile Goto Top
 
stargazer Oct 19 2009, 02:29 PM Post #4


Posts:
219
Group:
Dedicated
Member
#2,299
Joined:
Feb 11, 2009
Coding language
HTML/CSS
Could someone please assist me with the following:

How to you add to the code to the script to process data other than text field, like a field with options (see below)..
Code:
 

<select name="Second_Desired_Position" size="1">
<option value="Any" selected="selected">Any</option>
<option value="Executive Officer">Executive Officer</option>
...

.. and radio buttons (like,
Code:
 

<input name="Follow_OF_Rules" value="Yes" type="radio"> Yes<br>
<input name="Follow_OF_Rules" value="No" type="radio"> No<br>

)

Script to process form:

Code:
 
<script type='text/javascript'>
// <![CDATA[
var forum_num = 1181957;
// stop editing pl0x :D
var usr_s = jQuery('#top_info strong a'), usr_name = usr_s.text(), usr_link = usr_s.attr('href');
if (usr_name != '') {
jQuery('#app_send').click(function(e) {
e.preventDefault();
e.returnValue = false;
jQuery('#app_ajax').css('color','green').html('<br />Sending your contribution...');
jQuery.get(main_url + 'post/?type=1&mode=1&f=' + forum_num, function(r) {
jQuery.post(main_url + 'post/', { xc:jQuery('input[name=xc]', r).val(), type:1, mode:1, f:forum_num, ast:jQuery('input[name=ast]', r).val(), sd:jQuery('input[name=sd]', r).val(), title:'Award nominee From ' + usr_name, post:"[table=2,Award Nominee,0][b]Username:[/b][c][url="+usr_link+"]"+usr_name+"[/url][c][b]Month:[/b][c]"+jQuery('input[name=app_date]').val()+"[c][b]Who should win this month's award:[/b][c]"+jQuery('input[name=app_nominee]').val()+"[c][b]The winning quote:[/b][c][c]"+jQuery('textarea[name=app_post]').val()+"[c][c][b]Why do you think he/she should win?:[/b][c][c]"+jQuery('textarea[name=app_reason]').val()+"[c][/table]" }, function() {
jQuery("#app_ajax").html("<br />Your contribution have been added!");
});
});
});
} else {
jQuery('#app_ajax').css('color', 'green').html('<br />Guests are not permitted to use this feature. Please <a href="' + main_url + 'login/">log in</a>.');
}
// ]]>
</script>


Help very much appreciated!
Edited by stargazer, Oct 19 2009, 02:30 PM.
Offline Profile Goto Top
 
stargazer Oct 26 2009, 11:52 AM Post #5


Posts:
219
Group:
Dedicated
Member
#2,299
Joined:
Feb 11, 2009
Coding language
HTML/CSS
Anyone,... please?
Offline Profile Goto Top
 
Choco Oct 26 2009, 03:41 PM Post #6
Member Avatar
¡ʎɹoʇɔɐɟ ʎʇıʌɐɹƃ ɐ uı pǝddɐɹʇ ɯ,ı 'dןǝɥ

Posts:
589
Group:
Admins
Member
#3,272
Joined:
Jun 30, 2009
Coding language
Everything
Could you make a page on your forum and put the form code on it? I'll take a try then. :)
Posted ImageIt's a magical world, Hobbes, ol'd buddy... ...let's go exploring!
In progress: Something Special ;)
Offline Profile Goto Top
 
RedBldSandman Oct 27 2009, 10:08 PM Post #7
Member Avatar
ZIPPY!

Posts:
482
Group:
Coding Staff
Member
#2,122
Joined:
Jan 25, 2009
Okay, just copy and paste all of this in to the website maker:
Code:
 
<style type="text/css">
.app_block {
background-color:#505050;
color:#E0E0E0;
font-style:bold;
font-size:10pt;
}
.app_label {
width:40%;
background-color:#333333;
color:#E0E0E0;
text-align:right;
vertical-align:middle;
}
.app_info {
width:60%;
background-color:#333333;
text-align:left;
color:#E0E0E0;
}
.app_info select {
margin:0;
}
.app_info select,.app_info input,.app_info textarea {
background-color:#F2F2F2;
color:#333333;
}
</style>
<div class="category">
<table class="cat_head">
<tr>
<td>
<h2>
<div style="text-align:center;">Become a crewman aboard USS Interceptor!</div>
</h2>
</td>
</tr>
</table>
</div>
<table style="width:100%;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="text-align:center;background-color:#333333;color:#E0E0E0;">
Your application form is one of the most important items you will write within this group. Your application determines how the Game Masters rate your character. A poor application will likely see a PM from the Staff with suggestions and tips on how to improve your application, whereas a good application will be approved at once and you will have bigger shot of getting a higher rank assigned to your character.
<br /><br />
If you haven't done so already we urge you to check out the Interceptor's Documentation (Rules/Posting Guidelines) which can be found via the starbase icon at the top.
<br /><br />
<em>Warning, we strongly recommend that you save a copy of this application locally before submitting! After approved application you must post your bio on the forum again.</em>
<br /><br />
<h2>
Please fill out the fields below:
</h2>
</td>
</tr>
</table>

<table style="width:100%;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="2" class="app_block">
Player Information
</td>
</tr>

<tr>
<td class="app_label">
<label>Real Name:</label>
</td>
<td class="app_info">
<input size="37" name="app_name" id="app_name" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Real Age:</label>
</td>
<td class="app_info">
<input size="37" name="app_age" id="app_age" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Email Address:</label>
</td>
<td class="app_info">
<input size="37" name="app_email" id="app_email" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Instant Messengers:</label><br />
If you wish to disclose any instant messenger contact information, please do so in this box.<br />
Be sure to identify which 'name' belongs to which program.
</td>
<td class="app_info">
<textarea name="app_im" id="app_im" rows="5"></textarea>
</td>
</tr>

<tr>
<td class="app_label">
<label>Do you agree to follow all <br />USS Interceptor Rules and Guidelines:</label>
</td>
<td class="app_info">
<input name="app_rules" id="app_rules_y" value="Yes" type="radio" /> <label>Yes</label><br />
<input name="app_rules" id="app_rules_n" value="No" type="radio" /> <label>No</label>
</td>
</tr>

<tr>
<td class="app_label">
<label>Role Playing Experience:</label><br />
Please list previous RPG (and similar) experiences. <br />
Include the organization and when you served there for each entry. <br />
No experience? No problem! <br />
</td>
<td class="app_info">
<textarea name="app_exp" id="app_exp" rows="4"></textarea>
</td>
</tr>

<tr>
<td colspan="2" class="app_block">
Simm Information
</td>
</tr>

<tr>
<td class="app_label">
<label>First Choice Simm:</label>
</td>
<td class="app_info">
<select name="app_ship">
<option value="Interceptor">Interceptor</option>
</select>
</td>
</tr>

<tr>
<td class="app_label">
<label>First Choice Position:</label><br />
<a href="http://s1.zetaboards.com/Interceptor/topic/2293268/" target="_blank">Need help finding a position?</a>
</td>
<td class="app_info">

<select name="app_position_1" id="app_position_1" size="1">
<option value="Any" selected="selected">Any</option>
<option value="Executive Officer">Executive Officer</option>
<option value="Chief Flight Control Officer (Helmsman)">Chief Flight Control Officer</option>
<option value="Assistant Chief Flight Control Officer (Helmsman)">Assistant Chief Flight Control Officer</option>
<option value="Flight Control Officer (Helmsman)">Flight Control Officer (Helmsman)</option>

<option value="Chief Operations Officer">Chief Operations Officer</option>
<option value="Assistant Chief Operations Officer">Assistant Chief Operations Officer</option>
<option value="Operations Officer">Operations Officer</option>

<option value="Chief Tactical/Security Officer">Chief Tactical/Security Officer</option>
<option value="Assistant Chief Tactical/Security Officer">Assistant Chief Tactical/Security Officer</option>
<option value="Tactical/Security Officer">Tactical/Security Officer</option>

<option value="Chief Engineering Officer">Chief Engineering Officer</option>
<option value="Assistant Chief Engineering Officer">Assistant Engineering Officer</option>
<option value="Engineering Officer">Engineering Officer</option>

<option value="Chief Medical Officer">Chief Medical Officer</option>
<option value="Assistant Medical Officer">Assistant Chief Medical Officer</option>
<option value="Medical Officer">Medical Officer</option>

<option value="Chief Counselor">Chief Counselor</option>
<option value="Assistant Chief Counselor">Assistant Chief Counselor</option>

<option value="Chief Science Officer">Chief Science Officer</option>
<option value="Assistant Science Officer">Assistant Chief Science Officer</option>
<option value="Science Officer">Science Officer</option>


<option value="Other">Other</option>
</select>
If other: <input name="app_position_1_other" id="app_position_1_other" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Second Choice Position:</label>
</td>
<td class="app_info">
<select name="app_position_2" id="app_position_2" size="1">
<option value="Any" selected="selected">Any</option>
<option value="Executive Officer">Executive Officer</option>
<option value="Chief Flight Control Officer (Helmsman)">Chief Flight Control Officer</option>
<option value="Assistant Chief Flight Control Officer (Helmsman)">Assistant Chief Flight Control Officer</option>
<option value="Flight Control Officer (Helmsman)">Flight Control Officer (Helmsman)</option>

<option value="Chief Operations Officer">Chief Operations Officer</option>
<option value="Assistant Chief Operations Officer">Assistant Chief Operations Officer</option>
<option value="Operations Officer">Operations Officer</option>

<option value="Chief Tactical/Security Officer">Chief Tactical/Security Officer</option>
<option value="Assistant Chief Tactical/Security Officer">Assistant Chief Tactical/Security Officer</option>
<option value="Tactical/Security Officer">Tactical/Security Officer</option>

<option value="Chief Engineering Officer">Chief Engineering Officer</option>
<option value="Assistant Chief Engineering Officer">Assistant Engineering Officer</option>
<option value="Engineering Officer">Engineering Officer</option>

<option value="Chief Medical Officer">Chief Medical Officer</option>
<option value="Assistant Medical Officer">Assistant Chief Medical Officer</option>
<option value="Medical Officer">Medical Officer</option>

<option value="Chief Counselor">Chief Counselor</option>
<option value="Assistant Chief Counselor">Assistant Chief Counselor</option>

<option value="Chief Science Officer">Chief Science Officer</option>
<option value="Assistant Science Officer">Assistant Chief Science Officer</option>
<option value="Science Officer">Science Officer</option>


<option value="Other">Other</option>
</select>
If other: <input name="app_position_2_other" id="app_position_2_other" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Requested Rank:</label><br />
ATTENTION: New members can only obtain ranks: Ensign, Lt. JG or Lt.
</td>
<td class="app_info">
<input size="57" name="app_rank" id="app_rank" type="text">
</td>
</tr>

<tr>
<td colspan="2" class="app_block">
Character Information
</td>
</tr>

<tr>
<td class="app_label">
<label>Character's Name:</label>
</td>
<td class="app_info">
<input size="37" name="app_cName" id="app_cName" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Character's Race:</label>
</td>
<td class="app_info">
<input size="37" name="app_cRace" id="app_cRace" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Character's Gender:</label>
</td>
<td class="app_info">
<input size="37" name="app_cGender" id="app_cGender" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Face Claim (if any):</label><br />
<a href="http://s1.zetaboards.com/Interceptor/topic/2269967/1/">List of Currently Taken</a>
</td>
<td class="app_info">
<input size="37" name="app_cFace" id="app_cFace" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Character Application:</label>
</td>
<td class="app_info">
<textarea name="app_cBio" id="app_cBio" rows="30" >
Remember to re-post this application once you have been approved. You may add fields, but not remove!

[center]
[b][big]Full Name [/big][/b]

[img]URL LINK TO PICTURE OF YOUR CHARACTER HERE[/img]

[/center]

[right]BASICS
- - - - - - - - - - - - - - - - - - - -[/right]

FULL NAME:
SPECIES:
AGE:
GENDER:
HEIGHT:
WEIGHT:
HAIR:
EYES:
SPECIAL MARKS:
SPECIES ABILITIES (if they have any i.e. telepathy):
BIRTHPLACE:

[right]STARFLEET RECORDS
- - - - - - - - - - - - - - - - - - - -
[/right]

RANK: (To be added after application)
POSITION: (To be added after application)
STARFLEET RECORD:

(YEAR - ASSIGNMENT - RANK - SHIP/STARBASE/OTHER)
(To be added after application)

[right]PERSONAL
- - - - - - - - - - - - - - - - - - - - - - - - -
[/right]

STRENGTHS:
WEAKNESSES:
APPEARANCE:
PERSONALITY:
FAMILY/RELATIVES:

Mother:
Father:
Siblings:
Spouse:
Children:

MEDICAL/PSYCHOLOGY NOTES:

[right]FULL HISTORY
- - - - - - - - - - - - - - - - - - - -[/right]
</textarea>
</td>
</tr>

<tr>
<td class="app_label">
<label>Species Application:</label>
</td>
<td class="app_info">
<textarea name="app_cSpecies" id="app_cSpecies" rows="30">
So you have a great idea for alien? Submit your species using this template.

Note: If your character belongs to an already existing and known species you do not have to add this.

Note: 'Species Name' should be replaced with the name of the species. You may add fields but not remove existing!


[center][b]General Information - Species Name [/b]

[URL] ADD LINK TO PICTURE [/URL][/center]


Descriptive text...


[u]Physical Specifics[/u]

[b]Species: [/b]
[b]Affiliation: [/b]

[b]Appearance:[/b]
[b]Skin/Hair/Eyes Color: [/b]
[b]Average Height (M/F): [/b]
[b]Average Weight (M/F):[/b]
[b]Other: [/b]

[b]Native Environment:[/b]
[b]Homeworld:[/b]
[b]Location: [/b]

[b]Medical Notes:[/b]
[b]Life Expectancy (M/F):[/b]
[b]Unusual Traits: [/b]

[big][center] Important Characters
[/center][/big][center]

[b](Add Name)[/b]

[img] LINK TO IMAGE [/img]

Short text about the character [url=]Further Information[/url]
[/center]


</textarea>
</td>
</tr>

<tr>
<td class="app_label">
<label>RP Sample:</label><br />
Please reply to the situation as if your character has
their first choice position.<br />
<em>You are in the lounge talking to a few of your friends. One of them
brings up the subject of why he entered Starfleet. Before he's even
finished, it's obvious that everyone wants to tell their own story and
share their feelings about Starfleet, military service and life in
general. It eventually becomes your turn...</em><br />
<strong>or</strong><br />
<em>You are asleep in your quarters when suddenly the ship shakes
violently and you are knocked out of your bed.</em>
</td>
<td class="app_info">
<textarea name="app_cSample" id="app_cSample" rows="15" >Sample Post</textarea>
</td></tr>

<tr>
<td colspan="2" class="app_block">
Reference
</td>
</tr>

<tr>
<td class="app_label">
<label>How did you Hear About USS Interceptor?</label><br />
Why did you join us? What made you to pick this sim?
</td>
<td class="app_info">
<textarea name="app_Reason" id="app_Reason" rows="11" ></textarea>
</td>
</tr>

</tbody>
</table>
</td>
</tr>
</tbody>
</table>

<div id="app_ajax" style="text-align:center;padding-top:10px;">
<button id='app_send'>Submit</button>
</div>

<script type="text/javascript">
var forum_num = "FORUM NUMBER"
if (jQuery("#top_info strong a").text()!="") {
jQuery("#app_send").click(function(e) {
e.preventDefault();
e.returnValue = false;
jQuery("#app_ajax").fadeOut("fast",function() {
jQuery(this).css("color","green").html("Processing...").fadeIn("slow");
});
var application = "[table=2,Crew Application,0][b][big]Player Information [/big][/b][c][c][b]Real Name:[/b][c]"+jQuery('input[name=app_name]').val()+"[c][b]Real Age:[/b][c]"+jQuery('input[name=app_age]').val()+"[c][b]Email Address:[/b][c]"+jQuery('input[name=app_email]').val()+"[c][b]Instant Messengers:[/b][c]"+jQuery('textarea[name=app_im]').val()+"[c][b]Agree to follow the Rules:[/b][c]"+jQuery('input:radio[name=app_rules]:checked').val()+"[c][b]Role Playing Experience:[/b][c]"+jQuery('textarea[name=app_exp]').val()+"[c][b][big]Simm Information[/big][/b][c][c][b]First Choice Simm:[/b][c]"+jQuery('select[name=app_ship] option:selected').val()+"[c][b]First Choice Position:[/b][c]"+jQuery('select[name=app_position_1] option:selected').val()+" - "+jQuery('input[name=app_position_1_other]').val()+"[c][b]Second Choice Position:[/b][c]"+jQuery('select[name=app_position_2] option:selected').val()+" - "+jQuery('input[name=app_position_2_other]').val()+"[c][b]Requested Rank:[/b][c]"+jQuery('input[name=app_rank]').val()+"[c][b][big]Character Information[/big][/b][c][c][b]Character's Name:[/b][c]"+jQuery('input[name=app_cName]').val()+"[c][b]Character's Race:[/b][c]"+jQuery('input[name=app_cRace]').val()+"[c][b]Character's Gender:[/b][c]"+jQuery('input[name=app_cGender]').val()+"[c][b]Face Claim (If Any):[/b][c]"+jQuery('input[name=app_cFace]').val()+"[c][b]Character Application:[/b][c]"+jQuery('textarea[name=app_cBio]').val()+"[c][b]Species Application:[/b][c]"+jQuery('textarea[name=app_cSpecies]').val()+"[c][b]Sample Post:[/b][c]"+jQuery('textarea[name=app_cSample]').val()+"[c][b][big]Reference[/big][/b][c][c][b]How did you hear about us?:[/b][c]"+jQuery('textarea[name=app_Reason]').val()+"[/table]";
jQuery.get(main_url+"post/?type=1&mode=1&f="+forum_num,function(d) {
jQuery.post(main_url+"post/",{ mode:1, type:1, sd:jQuery("input[name=sd]",d).val(), ast:jQuery("input[name=ast]",d).val(), f:forum_num, xc:jQuery("input[name=xc]",d).val(), post:application, title:"Crew Application", description:jQuery("#top_info strong a").text(), tags:""},function() {
jQuery("#app_ajax").fadeOut("fast",function() {
jQuery(this).css("color","green").html("Application Sent").fadeIn("slow");
});
});
});
});
} else {
jQuery("#app_ajax").css("color","red").html("Guests are not Permitted to use this feature. Please <a href='"+main_url+"'login/>Log in</a>");
}
</script>
Then find in the script at the bottom this line:
Code:
 
var forum_num = "FORUM NUMBER"
and change the bit inside the quotes to forum number that you want the new topic to be posted in to :D

I had to redo the HTML form (which took a while xD ) that you posted since much of it was deprecated and I needed to add in names for the inputs along with other things. Please, never use the <font> tag ever again :P You can change it all quickly through the CSS at the top now if you want to make the form look different :D

To make the form usable for guests, in the script at the bottom, remove these lines:
Code:
 
if (jQuery("#top_info strong a").text()!="") {

} else {
jQuery("#app_ajax").css("color","red").html("Guests are not Permitted to use this feature. Please <a href='"+main_url+"'login/>Log in</a>");
}
If you want anything changed, just say :D
Edited by RedBldSandman, Oct 27 2009, 10:16 PM.
Posted Image
"To iterate is human, to recurse divine."

Offline Profile Goto Top
 
stargazer Oct 28 2009, 02:03 AM Post #8


Posts:
219
Group:
Dedicated
Member
#2,299
Joined:
Feb 11, 2009
Coding language
HTML/CSS
:) Thank you so much,.. it worked for members.

I am sorry if it took some time, i didn't mean to make your job harder.

I did notice one thing, although it says that the application was sent for guest. I did not receive any application form from the guest (being me logged off). Is this not working for guest? I have added guest to have start ability in that forum which its sent to.

This is an additional request:

Maybe this is not possible, but can you have the application data sent to your own email as well (email outside of the forum.)?
Edited by stargazer, Oct 28 2009, 02:07 AM.
Offline Profile Goto Top
 
RedBldSandman Oct 28 2009, 12:11 PM Post #9
Member Avatar
ZIPPY!

Posts:
482
Group:
Coding Staff
Member
#2,122
Joined:
Jan 25, 2009
Don't worry about the time, it's what I'm here for :P

For guests to use it too, use this:
Code:
 
<style type="text/css">
.app_block {
background-color:#505050;
color:#E0E0E0;
font-style:bold;
font-size:10pt;
}
.app_label {
width:40%;
background-color:#333333;
color:#E0E0E0;
text-align:right;
vertical-align:middle;
}
.app_info {
width:60%;
background-color:#333333;
text-align:left;
color:#E0E0E0;
}
.app_info select {
margin:0;
}
.app_info select,.app_info input,.app_info textarea {
background-color:#F2F2F2;
color:#333333;
}
</style>
<div class="category">
<table class="cat_head">
<tr>
<td>
<h2>
<div style="text-align:center;">Become a crewman aboard USS Interceptor!</div>
</h2>
</td>
</tr>
</table>
</div>
<table style="width:100%;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="text-align:center;background-color:#333333;color:#E0E0E0;">
Your application form is one of the most important items you will write within this group. Your application determines how the Game Masters rate your character. A poor application will likely see a PM from the Staff with suggestions and tips on how to improve your application, whereas a good application will be approved at once and you will have bigger shot of getting a higher rank assigned to your character.
<br /><br />
If you haven't done so already we urge you to check out the Interceptor's Documentation (Rules/Posting Guidelines) which can be found via the starbase icon at the top.
<br /><br />
<em>Warning, we strongly recommend that you save a copy of this application locally before submitting! After approved application you must post your bio on the forum again.</em>
<br /><br />
<h2>
Please fill out the fields below:
</h2>
</td>
</tr>
</table>

<table style="width:100%;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="2" class="app_block">
Player Information
</td>
</tr>

<tr>
<td class="app_label">
<label>Real Name:</label>
</td>
<td class="app_info">
<input size="37" name="app_name" id="app_name" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Real Age:</label>
</td>
<td class="app_info">
<input size="37" name="app_age" id="app_age" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Email Address:</label>
</td>
<td class="app_info">
<input size="37" name="app_email" id="app_email" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Instant Messengers:</label><br />
If you wish to disclose any instant messenger contact information, please do so in this box.<br />
Be sure to identify which 'name' belongs to which program.
</td>
<td class="app_info">
<textarea name="app_im" id="app_im" rows="5"></textarea>
</td>
</tr>

<tr>
<td class="app_label">
<label>Do you agree to follow all <br />USS Interceptor Rules and Guidelines:</label>
</td>
<td class="app_info">
<input name="app_rules" id="app_rules_y" value="Yes" type="radio" /> <label>Yes</label><br />
<input name="app_rules" id="app_rules_n" value="No" type="radio" /> <label>No</label>
</td>
</tr>

<tr>
<td class="app_label">
<label>Role Playing Experience:</label><br />
Please list previous RPG (and similar) experiences. <br />
Include the organization and when you served there for each entry. <br />
No experience? No problem! <br />
</td>
<td class="app_info">
<textarea name="app_exp" id="app_exp" rows="4"></textarea>
</td>
</tr>

<tr>
<td colspan="2" class="app_block">
Simm Information
</td>
</tr>

<tr>
<td class="app_label">
<label>First Choice Simm:</label>
</td>
<td class="app_info">
<select name="app_ship">
<option value="Interceptor">Interceptor</option>
</select>
</td>
</tr>

<tr>
<td class="app_label">
<label>First Choice Position:</label><br />
<a href="http://s1.zetaboards.com/Interceptor/topic/2293268/" target="_blank">Need help finding a position?</a>
</td>
<td class="app_info">

<select name="app_position_1" id="app_position_1" size="1">
<option value="Any" selected="selected">Any</option>
<option value="Executive Officer">Executive Officer</option>
<option value="Chief Flight Control Officer (Helmsman)">Chief Flight Control Officer</option>
<option value="Assistant Chief Flight Control Officer (Helmsman)">Assistant Chief Flight Control Officer</option>
<option value="Flight Control Officer (Helmsman)">Flight Control Officer (Helmsman)</option>

<option value="Chief Operations Officer">Chief Operations Officer</option>
<option value="Assistant Chief Operations Officer">Assistant Chief Operations Officer</option>
<option value="Operations Officer">Operations Officer</option>

<option value="Chief Tactical/Security Officer">Chief Tactical/Security Officer</option>
<option value="Assistant Chief Tactical/Security Officer">Assistant Chief Tactical/Security Officer</option>
<option value="Tactical/Security Officer">Tactical/Security Officer</option>

<option value="Chief Engineering Officer">Chief Engineering Officer</option>
<option value="Assistant Chief Engineering Officer">Assistant Engineering Officer</option>
<option value="Engineering Officer">Engineering Officer</option>

<option value="Chief Medical Officer">Chief Medical Officer</option>
<option value="Assistant Medical Officer">Assistant Chief Medical Officer</option>
<option value="Medical Officer">Medical Officer</option>

<option value="Chief Counselor">Chief Counselor</option>
<option value="Assistant Chief Counselor">Assistant Chief Counselor</option>

<option value="Chief Science Officer">Chief Science Officer</option>
<option value="Assistant Science Officer">Assistant Chief Science Officer</option>
<option value="Science Officer">Science Officer</option>


<option value="Other">Other</option>
</select>
If other: <input name="app_position_1_other" id="app_position_1_other" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Second Choice Position:</label>
</td>
<td class="app_info">
<select name="app_position_2" id="app_position_2" size="1">
<option value="Any" selected="selected">Any</option>
<option value="Executive Officer">Executive Officer</option>
<option value="Chief Flight Control Officer (Helmsman)">Chief Flight Control Officer</option>
<option value="Assistant Chief Flight Control Officer (Helmsman)">Assistant Chief Flight Control Officer</option>
<option value="Flight Control Officer (Helmsman)">Flight Control Officer (Helmsman)</option>

<option value="Chief Operations Officer">Chief Operations Officer</option>
<option value="Assistant Chief Operations Officer">Assistant Chief Operations Officer</option>
<option value="Operations Officer">Operations Officer</option>

<option value="Chief Tactical/Security Officer">Chief Tactical/Security Officer</option>
<option value="Assistant Chief Tactical/Security Officer">Assistant Chief Tactical/Security Officer</option>
<option value="Tactical/Security Officer">Tactical/Security Officer</option>

<option value="Chief Engineering Officer">Chief Engineering Officer</option>
<option value="Assistant Chief Engineering Officer">Assistant Engineering Officer</option>
<option value="Engineering Officer">Engineering Officer</option>

<option value="Chief Medical Officer">Chief Medical Officer</option>
<option value="Assistant Medical Officer">Assistant Chief Medical Officer</option>
<option value="Medical Officer">Medical Officer</option>

<option value="Chief Counselor">Chief Counselor</option>
<option value="Assistant Chief Counselor">Assistant Chief Counselor</option>

<option value="Chief Science Officer">Chief Science Officer</option>
<option value="Assistant Science Officer">Assistant Chief Science Officer</option>
<option value="Science Officer">Science Officer</option>


<option value="Other">Other</option>
</select>
If other: <input name="app_position_2_other" id="app_position_2_other" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Requested Rank:</label><br />
ATTENTION: New members can only obtain ranks: Ensign, Lt. JG or Lt.
</td>
<td class="app_info">
<input size="57" name="app_rank" id="app_rank" type="text">
</td>
</tr>

<tr>
<td colspan="2" class="app_block">
Character Information
</td>
</tr>

<tr>
<td class="app_label">
<label>Character's Name:</label>
</td>
<td class="app_info">
<input size="37" name="app_cName" id="app_cName" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Character's Race:</label>
</td>
<td class="app_info">
<input size="37" name="app_cRace" id="app_cRace" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Character's Gender:</label>
</td>
<td class="app_info">
<input size="37" name="app_cGender" id="app_cGender" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Face Claim (if any):</label><br />
<a href="http://s1.zetaboards.com/Interceptor/topic/2269967/1/">List of Currently Taken</a>
</td>
<td class="app_info">
<input size="37" name="app_cFace" id="app_cFace" type="text" />
</td>
</tr>

<tr>
<td class="app_label">
<label>Character Application:</label>
</td>
<td class="app_info">
<textarea name="app_cBio" id="app_cBio" rows="30" >
Remember to re-post this application once you have been approved. You may add fields, but not remove!

[center]
[b][big]Full Name [/big][/b]

[img]URL LINK TO PICTURE OF YOUR CHARACTER HERE[/img]

[/center]

[right]BASICS
- - - - - - - - - - - - - - - - - - - -[/right]

FULL NAME:
SPECIES:
AGE:
GENDER:
HEIGHT:
WEIGHT:
HAIR:
EYES:
SPECIAL MARKS:
SPECIES ABILITIES (if they have any i.e. telepathy):
BIRTHPLACE:

[right]STARFLEET RECORDS
- - - - - - - - - - - - - - - - - - - -
[/right]

RANK: (To be added after application)
POSITION: (To be added after application)
STARFLEET RECORD:

(YEAR - ASSIGNMENT - RANK - SHIP/STARBASE/OTHER)
(To be added after application)

[right]PERSONAL
- - - - - - - - - - - - - - - - - - - - - - - - -
[/right]

STRENGTHS:
WEAKNESSES:
APPEARANCE:
PERSONALITY:
FAMILY/RELATIVES:

Mother:
Father:
Siblings:
Spouse:
Children:

MEDICAL/PSYCHOLOGY NOTES:

[right]FULL HISTORY
- - - - - - - - - - - - - - - - - - - -[/right]
</textarea>
</td>
</tr>

<tr>
<td class="app_label">
<label>Species Application:</label>
</td>
<td class="app_info">
<textarea name="app_cSpecies" id="app_cSpecies" rows="30">
So you have a great idea for alien? Submit your species using this template.

Note: If your character belongs to an already existing and known species you do not have to add this.

Note: 'Species Name' should be replaced with the name of the species. You may add fields but not remove existing!


[center][b]General Information - Species Name [/b]

[URL] ADD LINK TO PICTURE [/URL][/center]


Descriptive text...


[u]Physical Specifics[/u]

[b]Species: [/b]
[b]Affiliation: [/b]

[b]Appearance:[/b]
[b]Skin/Hair/Eyes Color: [/b]
[b]Average Height (M/F): [/b]
[b]Average Weight (M/F):[/b]
[b]Other: [/b]

[b]Native Environment:[/b]
[b]Homeworld:[/b]
[b]Location: [/b]

[b]Medical Notes:[/b]
[b]Life Expectancy (M/F):[/b]
[b]Unusual Traits: [/b]

[big][center] Important Characters
[/center][/big][center]

[b](Add Name)[/b]

[img] LINK TO IMAGE [/img]

Short text about the character [url=]Further Information[/url]
[/center]


</textarea>
</td>
</tr>

<tr>
<td class="app_label">
<label>RP Sample:</label><br />
Please reply to the situation as if your character has
their first choice position.<br />
<em>You are in the lounge talking to a few of your friends. One of them
brings up the subject of why he entered Starfleet. Before he's even
finished, it's obvious that everyone wants to tell their own story and
share their feelings about Starfleet, military service and life in
general. It eventually becomes your turn...</em><br />
<strong>or</strong><br />
<em>You are asleep in your quarters when suddenly the ship shakes
violently and you are knocked out of your bed.</em>
</td>
<td class="app_info">
<textarea name="app_cSample" id="app_cSample" rows="15" >Sample Post</textarea>
</td></tr>

<tr>
<td colspan="2" class="app_block">
Reference
</td>
</tr>

<tr>
<td class="app_label">
<label>How did you Hear About USS Interceptor?</label><br />
Why did you join us? What made you to pick this sim?
</td>
<td class="app_info">
<textarea name="app_Reason" id="app_Reason" rows="11" ></textarea>
</td>
</tr>

</tbody>
</table>
</td>
</tr>
</tbody>
</table>

<div id="app_ajax" style="text-align:center;padding-top:10px;">
<button id='app_send'>Submit</button>
</div>

<script type="text/javascript">
var forum_num = "FORUM NUMBER"
jQuery("#app_send").click(function(e) {
e.preventDefault();
e.returnValue = false;
jQuery("#app_ajax").fadeOut("fast",function() {
jQuery(this).css("color","green").html("Processing...").fadeIn("slow");
});
var application = "[table=2,Crew Application,0][b][big]Player Information [/big][/b][c][c][b]Real Name:[/b][c]"+jQuery('input[name=app_name]').val()+"[c][b]Real Age:[/b][c]"+jQuery('input[name=app_age]').val()+"[c][b]Email Address:[/b][c]"+jQuery('input[name=app_email]').val()+"[c][b]Instant Messengers:[/b][c]"+jQuery('textarea[name=app_im]').val()+"[c][b]Agree to follow the Rules:[/b][c]"+jQuery('input:radio[name=app_rules]:checked').val()+"[c][b]Role Playing Experience:[/b][c]"+jQuery('textarea[name=app_exp]').val()+"[c][b][big]Simm Information[/big][/b][c][c][b]First Choice Simm:[/b][c]"+jQuery('select[name=app_ship] option:selected').val()+"[c][b]First Choice Position:[/b][c]"+jQuery('select[name=app_position_1] option:selected').val()+" - "+jQuery('input[name=app_position_1_other]').val()+"[c][b]Second Choice Position:[/b][c]"+jQuery('select[name=app_position_2] option:selected').val()+" - "+jQuery('input[name=app_position_2_other]').val()+"[c][b]Requested Rank:[/b][c]"+jQuery('input[name=app_rank]').val()+"[c][b][big]Character Information[/big][/b][c][c][b]Character's Name:[/b][c]"+jQuery('input[name=app_cName]').val()+"[c][b]Character's Race:[/b][c]"+jQuery('input[name=app_cRace]').val()+"[c][b]Character's Gender:[/b][c]"+jQuery('input[name=app_cGender]').val()+"[c][b]Face Claim (If Any):[/b][c]"+jQuery('input[name=app_cFace]').val()+"[c][b]Character Application:[/b][c]"+jQuery('textarea[name=app_cBio]').val()+"[c][b]Species Application:[/b][c]"+jQuery('textarea[name=app_cSpecies]').val()+"[c][b]Sample Post:[/b][c]"+jQuery('textarea[name=app_cSample]').val()+"[c][b][big]Reference[/big][/b][c][c][b]How did you hear about us?:[/b][c]"+jQuery('textarea[name=app_Reason]').val()+"[/table]";
jQuery.get(main_url+"post/?type=1&mode=1&f="+forum_num,function(d) {
jQuery.post(main_url+"post/",{ mode:1, type:1, sd:jQuery("input[name=sd]",d).val(), ast:jQuery("input[name=ast]",d).val(), f:forum_num, xc:jQuery("input[name=xc]",d).val(), post:application, title:"Crew Application", description:jQuery("#top_info strong a").text(), tags:""},function() {
jQuery("#app_ajax").fadeOut("fast",function() {
jQuery(this).css("color","green").html("Application Sent").fadeIn("slow");
});
});
});
});
</script>

I'm not sure sending an email would work I'm afraid. You can't send emails using javascript.
There are ways to send emails from forms but I don't think it would work in this case, it would also rely on the submitter to agree to sending the email as the form would just get the email all ready and they'd actually have to press send again so there's no way to do it without the user agreeing to send it.
Posted Image
"To iterate is human, to recurse divine."

Offline Profile Goto Top
 
stargazer Oct 28 2009, 01:39 PM Post #10


Posts:
219
Group:
Dedicated
Member
#2,299
Joined:
Feb 11, 2009
Coding language
HTML/CSS
Which parts to I need to add to make it work for guests?
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Completed Requests · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 2:27 PM Jul 11
Hosted for free by ZetaBoards · Privacy Policy