Warning: The author of this contribution does not provide support for it anymore.

Application form

How to Change Values? - Application form

How to Change Values?

by westmalle » Sat May 08, 2010 5:16 am

I'm trying to use this mod as an application page for a guild website I'm working on. Does know how to change the form elements of this mod? I changed all the pages to what I think would work but whenever I open the page it just shows a white blank page.

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.
westmalle
Registered User
Posts: 1
Joined: Sat May 08, 2010 5:02 am

Re: How to Change Values?

by JimA » Sat May 08, 2010 5:51 am

As far as I can quickly see, it appears you've made a mistake in the language file.
Specifically in this part of the code:

Code: Select all

'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'
,, 

You should only use the ', part to end a language variable, not at the end of every line. ;)
Try changing that part of code into the following:

Code: Select all

'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] %5$s <br />
[b]Their level of experience with their class, as well as what
previous experience they have with raiding in Everquest[/b]: %6$s <br />
[b]Why they want to join Guild Name. Lets hope they included more then one reason[/b]: %7$s <br />
[b]How did they hear about Guild Name?[/b]: %8$s <br />
[b]Who is this person?[/b]: %9$s <br />
[b]How long have they played their character[/b]: %10$s <br />
[b]Do other people have access to their account[/b]: %11$s <br />
[b]Do they have alts[/b]: %12$s <br />
[b]Their regular play times[/b]: %13$s <br />
[b]History of their past servers and guilds[/b]: %14$s <br />
[b]Their Raiding Experience[/b]: %15$s <br />
[b]Their goals in EQ[/b]: %16$s <br />
[b]Do they have issues with constructive criticism[/b]: %17$s <br />
[b]Do they have Ventrilo?[/b]: %18$s <br />
[b]Any other info to aid their App. (Do they know anyone on the inside?)[/b]: %19$s'
, 


Oh, and there's another problem.

Code: Select all

   'APPLICATION_HISTORY'         => 'History of your past servers and guilds and how long you've been playing, 

This is only another problem. You're using a ' inside a language variable, which causes (as you can see by the colouring even) phpBB to think that you wanted to end the line, but then it doesn't see a comma. So you should change the ' into a ` . That should be fine.
Jim Mossing Holsteyn - Former Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.
User avatar
JimA
Former Team Member
Posts: 7833
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn

Re: How to Change Values?

by westmalle » Sat May 08, 2010 7:48 am

So I just found your tutorial on how to change values. That's for the advice, I forgot about those (its been a while since I've worked with php.) So I redid it following your tutorial and got most of it to work but for some reason its still not showing up for 3 of them.

Heres my issues:
- On the Application page the 3rd label ({ APPLICATION_EXPERIENCE }) shows up plain rather than the language file being pulled.
- 3 of the fields aren't being transferred over to the post (Experience with Class, Regular play times, Raiding experience)

Here's my coding:

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 = 22;

$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'], request_var('charname', '', true) , request_var('classnlevel', '', true) , request_var('classexp', '', true) , request_var('why', '', true) , request_var('howdidyouhear', '', true) , request_var('whoareyou', '', true) , request_var('howlong', '', true) , request_var('acctaccess', '', true) , request_var('alts', '', true) , request_var('playtime', '', true) , request_var('history', '', true) , request_var('raidexp', '', true) , request_var('goals', '', true) , request_var('criticism', '', true) , request_var('vent', '', true) , request_var('otherinfo', '', true));

// old$apply_post     = sprintf($user->lang['APPLICATION_MESSAGE'], $user->data['username'], utf8_normalize_nfc(request_var('name', '', true)), $user->data['user_email'], request_var('charname', '', true) , request_var('classnlevel', '', true) , request_var('classexp', '', true) , request_var('why', '', true) , request_var('howdidyouhear', '', true) , request_var('whoareyou', '', true) , request_var('howlong', '', true) , request_var('acctaccess', '', true) , request_var('alts', '', true) , request_var('playtime', '', true) , request_var('history', '', true) , request_var('raidexp', '', true) , request_var('goals', '', true) , request_var('criticism', '', true) , request_var('vent', '', true) , request_var('otherinfo', '', 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/styles/.../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 />
        {L_APPLICATION_CLASSNLEVEL} <input type="text" name="classnlevel" /><br />
       
        {L_APPLICATION_CLASSEXP}<br />
        <textarea rows="5" cols="50" name="classexp"></textarea><br />
        {L_APPLICATION_WHY}<br />
        <textarea rows="5" cols="50" name="why"></textarea><br />
        {L_APPLICATION_HOWDIDYOUHEAR}<br />
        <textarea rows="5" cols="50" name="howdidyouhear"></textarea><br />
        {L_APPLICATION_WHOAREYOU}<br />
        <textarea rows="5" cols="50" name="whoareyou"></textarea><br />
        {L_APPLICATION_HOWLONG}<br />
        <textarea rows="5" cols="50" name="howlong"></textarea><br />
        {L_APPLICATION_ACCTACCESS}<br />
        <textarea rows="5" cols="50" name="acctaccess"></textarea><br />
        {L_APPLICATION_ALTS}<br />
        <textarea rows="5" cols="50" name="alts"></textarea><br />
        {L_APPLICATION_PLAYTIME}<br />
        <textarea rows="5" cols="50" name="playtime"></textarea><br />
        {L_APPLICATION_HISTORY}<br />
        <textarea rows="5" cols="50" name="history"></textarea><br />
        {L_APPLICATION_RAIDEXP}<br />
        <textarea rows="5" cols="50" name="raidexp"></textarea><br />
        {L_APPLICATION_GOALS}<br />
        <textarea rows="5" cols="50" name="goals"></textarea><br />
        {L_APPLICATION_CRITICISM}<br />
        <textarea rows="5" cols="50" name="criticism"></textarea><br />
        {L_APPLICATION_VENT}<br />
        <textarea rows="5" cols="50" name="vent"></textarea><br />
        {L_APPLICATION_OTHERINFO}<br />
        <textarea rows="5" cols="50" name="otherinfo"></textarea><br />
       
       
       
        <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 -->


root/language/.../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 applied to the Guild by using the application form, called [b] %1$s[/b].<br /><br />[b]Character Name[/b]: %2$s<br /><br />[b]Character Class/Level[/b]: %3$s<br /><br />[b]Raiding Experience with Class?[/b]<br /> %4$s <br /><br />[b]Why do you want to join the Guild?[/b]<br /> %5$s <br /><br />[b]How did you hear about the Guild?[/b]<br /> %6$s <br /><br />[b]Who are you?[/b]<br /> %7$s <br /><br />[b]How long have you played this character?[/b]<br /> %8$s <br /><br />[b]Do other people have access to your account?[/b]<br /> %9$s <br /><br />[b]Do you have alts?[/b]<br /> %10$s <br /><br />[b]Regular play times[/b]<br /> %11$s <br /><br />[b]History of your past servers and guilds and how long you have been playing[/b]<br /> %12$s <br /><br />[b]What raiding experience do you have?[/b]<br /> %13$s <br /><br />[b]What are your goals in EQ[/b]<br /> %14$s <br /><br />[b]Do you have an issue with constructive criticism in order to make you a better player?[/b]<br /> %15$s <br /><br />[b]Do you have ventrilo?[/b]<br /> %16$s <br /><br />[b]Any other information you think will aid your application. Do you know anyone in the Guild?[/b]<br /> %17$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 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 will get back to you. Good luck!',
   'APPLICATION_REALNAME'         => 'Real name',
   'APPLICATION_EMAIL'            => 'E-mail address',
   
    'APPLICATION_CHARNAME'                => 'Character Name',   
    'APPLICATION_CLASSNLEVEL'                => 'Class and Level',
    'APPLICATION_CLASSEXP'                => '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 the Guild? Include more then one reason:',   
    'APPLICATION_HOWDIDYOUHEAR'                => 'How did you hear about the Guild?',   
    '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 have been playing',   
    'APPLICATION_RAIDEXP'                => '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 the Guild? ? If so who!',   

   
   
));

?>
westmalle
Registered User
Posts: 1
Joined: Sat May 08, 2010 5:02 am

Re: How to Change Values?

by JimA » Sat May 08, 2010 8:12 am

westmalle wrote: - On the Application page the 3rd label ({ APPLICATION_EXPERIENCE }) shows up plain rather than the language file being pulled.

I see no variable called "{ APPLICATION_EXPERIENCE }" in your template file.
The closest I see is the "CLASS_EXP" var. ;)

westmalle wrote:- 3 of the fields aren't being transferred over to the post (Experience with Class, Regular play times, Raiding experience)

On the first glance, the code looks OK.
Could you provide me with a link to your board and a testing account? :)
Jim Mossing Holsteyn - Former Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.
User avatar
JimA
Former Team Member
Posts: 7833
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn

Re: How to Change Values?

by westmalle » Sat May 08, 2010 5:24 pm

I managed to get it working. Thanks for the help.
westmalle
Registered User
Posts: 1
Joined: Sat May 08, 2010 5:02 am