I changed the files to this :
Note: I didn't actually include the ... in the code
root/application.php
Code: Select all
....
// Setting the variables we need to submit the post to the forum where all the applications come in
$apply_subject = sprintf($user->lang['APPLICATION_SUBJECT'], $user->data['username']);
$apply_post = sprintf($user->lang['APPLICATION_MESSAGE'], $user->data['username'], utf8_normalize_nfc(request_var('name', '', true)), $user->data['user_email'], utf8_normalize_nfc(request_var('charname', '', true)), utf8_normalize_nfc(request_var('classnlevel', '', true)), utf8_normalize_nfc(request_var('experience', '', true)),
utf8_normalize_nfc(request_var('why', '', true)), utf8_normalize_nfc(request_var('howdidyouhear', '', true)), utf8_normalize_nfc(request_var('whoareyou', '', true)),
utf8_normalize_nfc(request_var('howlong', '', true)), utf8_normalize_nfc(request_var('acctaccess', '', true)), utf8_normalize_nfc(request_var('alts', '', true)), utf8_normalize_nfc(request_var('playtimes', '', true)), utf8_normalize_nfc(request_var('history', '', true)), utf8_normalize_nfc(request_var('raidexperience', '', true)),
utf8_normalize_nfc(request_var('goals', '', true)), utf8_normalize_nfc(request_var('criticism', '', true)), utf8_normalize_nfc(request_var('vent', '', true)), utf8_normalize_nfc(request_var('otherinfo', '', true)));
...
root/language/en/mods/application.php
Code: Select all
...
$lang = array_merge($lang, array(
'LOGIN_APPLICATION_FORM' => 'You need to login before you can send out an application. If you don't already have an account you can register one.',
'APPLICATION_SUBJECT' => 'Application from %s',
'APPLICATION_MESSAGE' => 'A potential guildy has signed up by the application form, called [b] %1$s[/b].
<br /><br />
[b]Character Name[/b]: %2$s<br />
[b]Class and Level[/b]: %3$s<br />
[b]Names of previous guilds they have been a member of, and a brief
explanation of why they left each[/b]: %4$s<br /><br />
[b]Why would we choose him/her?[/b]:<br /> %5$s',
[b]Their level of experience with their class, as well as what
previous experience they have with raiding in Everquest[/b]:<br /> %6$s',
[b]Why they want to join Guild Name. Lets hope they included more then one reason[/b]:<br /> %7$s',
[b]How did they hear about Guild Name?[/b]:<br /> %8$s',
[b]Who is this person?[/b]:<br /> %9$s',
[b]How long have they played their character[/b]:<br /> %10$s',
[b]Do other people have access to their account[/b]:<br /> %11$s',
[b]Do they have alts[/b]:<br /> %12$s',
[b]Their regular play times[/b]:<br /> %13$s',
[b]History of their past servers and guilds[/b]:<br /> %14$s',
[b]Their Raiding Experience[/b]:<br /> %15$s',
[b]Their goals in EQ[/b]:<br /> %16$s',
[b]Do they have issues with constructive criticism[/b]:<br /> %17$s',
[b]Do they have Ventrilo?[/b]:<br /> %18$s',
[b]Any other info to aid their App. (Do they know anyone on the inside?)[/b]:<br /> %19$s',',
'APPLICATION_SEND' => 'Your application has been sent to the Guild. We will review your application and let you know the verdict.',
'APPLICATION_PAGETITLE' => 'Application form',
'APPLICATION_WELCOME_MESSAGE' => 'Welcome to the Guild Name Application form. We are a growing and always encourage new members, if you feel that you’re right for this guild, then please fill out the form below and we’ll get back to you. Good luck!',
'APPLICATION_CHARNAME' => 'Character Name',
'APPLICATION_CLASSNLEVEL' => 'Class and Level',
'APPLICATION_EXPERIENCE' => 'Tell us your level of experience with your class, as well as what
previous experience you have with raiding in Everquest:',
'APPLICATION_WHY' => 'Why do you want to join Guild Name? Include more then one reason:',
'APPLICATION_HOWDIDYOUHEAR' => 'How did you hear about Guild Name?',
'APPLICATION_WHOAREYOU' => 'Who are you? (Note: Give as much info you want. Have strange pets?
Have kids? Have a girlfriend? Boyfriend? Both?!):',
'APPLICATION_HOWLONG' => 'How long have you played this character?',
'APPLICATION_ACCTACCESS' => 'Do other people have access to your account? If so, explain:',
'APPLICATION_ALTS' => 'Do you have alts? (Name / Guild)',
'APPLICATION_PLAYTIMES' => 'Regular play times (Make sure you know our raid/play times) and
how many days per week can you raid?',
'APPLICATION_HISTORY' => 'History of your past servers and guilds and how long you've been playing',
'APPLICATION_RAIDEXPERIENCE' => 'What raiding experience do you have?',
'APPLICATION_GOALS' => 'What are your goals in EQ? What are your long term plans?',
'APPLICATION_CRITICISM' => 'Do you have an issue with constructive criticism in order to make
you a better player?',
'APPLICATION_VENT' => 'Do you have ventrilo? Mic/No Mic',
'APPLICATION_OTHERINFO' => 'Any other information you think will aid your application. Do you
know anyone in Guild Name? ? If so who!:',
));
?>
styles/prosilver/template/appform_body.html
Code: Select all
<!-- INCLUDE overall_header.html -->
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="content">
<h2>{L_APPLICATION_PAGETITLE}</h2>
<span style="font-size: 1.3em;">{L_APPLICATION_WELCOME_MESSAGE}<br /><br /><br />
<form method="post" action="{PROCESS_APPFORM}" id="appform">
{L_APPLICATION_CHARNAME} <input type="text" name="charname" /><br />
<br /><br />
{L_APPLICATION_CLASSNLEVEL} <input type="text" name="classnlevel" /><br />
<br /><br />
{L_APPLICATION_EXPERIENCE}<br />
<textarea rows="5" cols="50" name="experience"></textarea>
{L_APPLICATION_WHY}<br />
<textarea rows="5" cols="50" name="why"></textarea>
{L_APPLICATION_HOWDIDYOUHEAR}<br />
<textarea rows="2" cols="50" name="howdidyouhear"></textarea>
{L_APPLICATION_WHOAREYOU}<br />
<textarea rows="5" cols="50" name="whoareyou"></textarea>
{L_APPLICATION_HOWLONG}<br />
<textarea rows="3" cols="50" name="howlong"></textarea>
{L_APPLICATION_ACCTACCESS}<br />
<textarea rows="2" cols="50" name="acctaccess"></textarea>
{L_APPLICATION_ALTS}<br />
<textarea rows="3" cols="50" name="alts"></textarea>
{L_APPLICATION_PLAYTIMES}<br />
<textarea rows="3" cols="50" name="playtimes"></textarea>
{L_APPLICATION_HISTORY}<br />
<textarea rows="5" cols="50" name="history"></textarea>
{L_APPLICATION_RAIDEXPERIENCE}<br />
<textarea rows="5" cols="50" name="raidexperience"></textarea>
{L_APPLICATION_GOALS}<br />
<textarea rows="4" cols="50" name="goals"></textarea>
{L_APPLICATION_CRITICISM}<br />
<textarea rows="2" cols="50" name="criticism"></textarea>
{L_APPLICATION_VENT}<br />
<textarea rows="2" cols="50" name="vent"></textarea>
{L_APPLICATION_OTHERINFO}<br />
<textarea rows="5" cols="50" name="otherinfo"></textarea>
<br/><br/>
<input type="submit" name="submit" id ="submit" value="{L_SUBMIT}" class="button1" />
</span>
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- INCLUDE overall_footer.html -->
As a reference here is the original code:
root/application.php
Code: Select all
<?php
/**
* @package application.php
* @copyright (c) JimA http://beta-garden.com 2009
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('mods/application');
// You need to login before being able to send out an application
if ($user->data['user_id'] == ANONYMOUS)
{
login_box('', $user->lang['LOGIN_APPLICATION_FORM']);
}
include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
// Let's set the configuration, this is the ID of the forum where the post goes to
$forumid_send = 2;
$submit = (isset($_POST['submit'])) ? true : false;
if ($submit)
{
// Setting the variables we need to submit the post to the forum where all the applications come in
$apply_subject = sprintf($user->lang['APPLICATION_SUBJECT'], $user->data['username']);
$apply_post = sprintf($user->lang['APPLICATION_MESSAGE'], $user->data['username'], utf8_normalize_nfc(request_var('name', '', true)), $user->data['user_email'], request_var('postion', '', true), utf8_normalize_nfc(request_var('why', '', true)));
// variables to hold the parameters for submit_post
$poll = $uid = $bitfield = $options = '';
generate_text_for_storage($apply_post, $uid, $bitfield, $options, true, true, true);
$data = array(
'forum_id' => $forumid_send,
'icon_id' => false,
'enable_bbcode' => true,
'enable_smilies' => true,
'enable_urls' => true,
'enable_sig' => true,
'message' => $apply_post,
'message_md5' => md5($apply_post),
'bbcode_bitfield' => $bitfield,
'bbcode_uid' => $uid,
'post_edit_locked' => 0,
'topic_title' => $apply_subject,
'notify_set' => false,
'notify' => false,
'post_time' => 0,
'forum_name' => '',
'enable_indexing' => true,
);
// Sending the post to the forum set in configuration above
submit_post('post', $apply_subject, '', POST_NORMAL, $poll, $data);
$message = $user->lang['APPLICATION_SEND'];
$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
trigger_error($message);
}
page_header($user->lang['APPLICATION_PAGETITLE']);
$template->assign_vars(array(
'PROCESS_APPFORM' => append_sid("{$phpbb_root_path}application.$phpEx"),
));
$template->set_filenames(array(
'body' => 'appform_body.html',
));
page_footer();
?>
root/language/en/mods/application.php
Code: Select all
<?php
/**
*
* application [English]
*
* @package language
* @copyright (c) Jim http://beta-garden.com 2009
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
$lang = array_merge($lang, array(
'LOGIN_APPLICATION_FORM' => 'You need to login before you can send out an application.',
'APPLICATION_SUBJECT' => 'Application from %s',
'APPLICATION_MESSAGE' => 'A new user has signed up by the application form, called [b] %1$s[/b].<br /><br />[b]Real name[/b]: %2$s<br />[b]E-mail address[/b]: %3$s<br />[b]Appling for[/b]: %4$s<br /><br />[b]Why would we choose him/her?[/b]<br /> %5$s',
'APPLICATION_SEND' => 'Your application has been sent to the administrators of this board. They’ll decide whether your application is good enough and get back to you in the coming days.',
'APPLICATION_PAGETITLE' => 'Application form',
'APPLICATION_WELCOME_MESSAGE' => 'Welcome at this application form. Since we are a still growing community, we wanted to apply new members to a team position, if you feel that you’re the right person, then please fill out the form below and we might get back to you and ask you for conversion regarding this. Good luck!',
'APPLICATION_REALNAME' => 'Real name',
'APPLICATION_EMAIL' => 'E-mail address',
'APPLICATION_POSITION' => 'Position you would like to have',
'APPLICATION_TEAM1' => 'Teamname 1',
'APPLICATION_TEAM2' => 'Teamname 2',
'APPLICATION_TEAM3' => 'Teamname 3',
'APPLICATION_WHY' => 'Why should we choose you for this position?',
));
?>
styles/prosilver/template/appform_body.html
Code: Select all
<!-- INCLUDE overall_header.html -->
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="content">
<h2>{L_APPLICATION_PAGETITLE}</h2>
<span style="font-size: 1.3em;">{L_APPLICATION_WELCOME_MESSAGE}<br /><br /><br />
<form method="post" action="{PROCESS_APPFORM}" id="appform">
{L_APPLICATION_REALNAME} <input type="text" name="name" /><br />
{L_APPLICATION_POSITION}
<select name="postion">
<option value="{L_APPLICATION_TEAM1}">{L_APPLICATION_TEAM1}</option>
<option value="{L_APPLICATION_TEAM2}">{L_APPLICATION_TEAM2}</option>
<option value="{L_APPLICATION_TEAM3}">{L_APPLICATION_TEAM3}</option>
</select>
<br /><br />
{L_APPLICATION_WHY}<br />
<textarea rows="5" cols="50" name="why"></textarea>
<br/><br/>
<input type="submit" name="submit" id ="submit" value="{L_SUBMIT}" class="button1" />
</span>
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- INCLUDE overall_footer.html -->
Any help would be greatly appreciated.