Application form

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
kill_switch
Registered User
Posts: 57
Joined: Sat Jan 16, 2010 12:58 am

Re: Application form

Post by kill_switch »

EDIT.

NVM I had a blond moment.
kill_switch
Registered User
Posts: 57
Joined: Sat Jan 16, 2010 12:58 am

Re: Application form

Post by kill_switch »

New question, how do I get the post to appear in the correct order.?

Code: Select all

$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('why', '', true)), request_var('game_name', '', true), request_var('age', '', true), request_var('game', '', true), request_var('xfire', '', true), request_var('steam', '', true), request_var('donate', '', true), request_var('headset', '', true), request_var('buy', '', true));

Code: Select all

	'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]: %7$s<br />[b]Game name[/b]: %5$s<br />[b]Xfire[/b]: %8$s<br />[b]Steam[/b]: %9$s<br />[b]Headset/Mic[/b]: %11$s<br />[b]Can they donate[/b]: %10$s<br />[b]Are they able to buy new games?[/b]: %12$s<br />[b]Age[/b]: %6$s<br /><br />[b]Why would we choose him/her?[/b]<br /> %4$s',
kill_switch
Registered User
Posts: 57
Joined: Sat Jan 16, 2010 12:58 am

Re: Application form

Post by kill_switch »

NVM I have figured it out. Funny how sleep cures some tired brains.
kill_switch
Registered User
Posts: 57
Joined: Sat Jan 16, 2010 12:58 am

Re: Application form

Post by kill_switch »

Hi, anyway to have required fields?
Menkz
Registered User
Posts: 1
Joined: Sat Apr 17, 2010 12:40 pm

Re: Application form

Post by Menkz »

Sorry for being such a noob, but how do I install? I am new to PHPBB.
User avatar
Tom
Former Team Member
Posts: 2665
Joined: Tue Jun 20, 2006 2:12 am
Name: Tom Catullo
Contact:

Re: Application form

Post by Tom »

Menkz wrote:Sorry for being such a noob, but how do I install? I am new to PHPBB.
There is a good guide on how to install MODs here: http://www.phpbb.com/community/viewtopi ... 9&t=724145. You may also find this page helpful, particularly this. You can also use a program called AutoMOD to install MODs automatically, if you so wish.
Tom Catullo - Former Moderator Team Member
phpBB3 Smiley Pak Generator | Legend Repositioning MOD | My GitHub | My Site
kenyoung80125
Registered User
Posts: 5
Joined: Thu Apr 22, 2010 4:35 pm

Re: Application form

Post by kenyoung80125 »

I figured out all my other problems but one minor one

when the application submits the subject says "Application from ........"

i would like it to pull the info from the field input like the "Character Name - Class - Main Spec" in to
the subject

So if the person fill out the forum like this

Character Name: Nitephall
Real Name: Ken
E-mail address: joeblow@mpcit.net
Class: Hunter
Level: 80
Race: Blood Elf
Armory Link: http://www.wowarmory.com/search.xml?sea ... chType=all
Main Spec: Marksman
Off Spec: Survival

i would like the subject to say "Nitephall - Hunter - Marksman"

Im new to php and phpbb but learnign fast im just stumped on this here is my codes
/phpbb/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'], utf8_normalize_nfc(request_var('charactername', '', true)), utf8_normalize_nfc(request_var('realname', '', true)), $user->data['user_email'], request_var('class', '', true), request_var('level', '', true), utf8_normalize_nfc(request_var('race', '', true)), utf8_normalize_nfc(request_var('armory', '', true)), utf8_normalize_nfc(request_var('mspec', '', true)), utf8_normalize_nfc(request_var('ospec', '', true)), utf8_normalize_nfc(request_var('experience', '', true)), utf8_normalize_nfc(request_var('cpu', '', true)), utf8_normalize_nfc(request_var('guilds', '', true)), utf8_normalize_nfc(request_var('played', '', true)), request_var('times', '', true), request_var('vent', '', true), utf8_normalize_nfc(request_var('ui', '', true)), request_var('dc', '', true), utf8_normalize_nfc(request_var('addons', '', 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();

?>

/phpbb/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'			=> '[color=#80FF00][b]A new user has signed up by the application form, called [/b][/color]%1$s.<br />[color=#80FF00][b]Character Name[/b]:[/color] %2$s<br />[color=#80FF00][b]Real Name[/b]:[/color] %3$s<br />[color=#80FF00][b]E-mail address[/b]:[/color] %4$s<br />[color=#80FF00][b]Class[/b]:[/color] %5$s<br />[color=#80FF00][b]Level[/b]:[/color] %6$s<br />[color=#80FF00][b]Race[/b]:[/color] %7$s<br />[color=#80FF00][b]Armory Link[/b]:[/color] %8$s<br />[color=#80FF00][b]Main Spec[/b]:[/color] %9$s<br />[color=#80FF00][b]Off Spec[/b]:[/color] %10$s<br />[color=#80FF00][b]Raid Experience[/b]:[/color] %11$s<br />[color=#80FF00][b]Gaming Set Up[/b]:[/color] %12$s<br />[color=#80FF00][b]Previous Guilds And Reason For Leaving[/b]:[/color] %13$s<br />[color=#80FF00][b]Game Play Time[/b]:[/color] %14$s<br />[color=#80FF00][b]Can make raid timed?[/b]:[/color] %15$s<br />[color=#80FF00][b]Ventrilo with working mic[/b]:[/color] %16$s<br />[color=#80FF00][b]UI Screen Shot[/b]:[/color] %17$s<br />[color=#80FF00][b]DC a lot?[/b]:[/color] %18$s<br />[color=#80FF00][b]Why should we accept you to our guild?[/b]:[/color] %19$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_CHARACTERNAME'		=> 'Character Name: ',
	'APPLICATION_REALNAME'			=> 'Real Name: ',
	'APPLICATION_EMAIL'				=> 'E-mail address: ',
	'APPLICATION_CLASS'				=> 'Class: ',
	'APPLICATION_TEAM1'				=> 'Death Knight',
	'APPLICATION_TEAM2'				=> 'Druid',
	'APPLICATION_TEAM3'				=> 'Hunter',
	'APPLICATION_TEAM4'				=> 'Mage',
	'APPLICATION_TEAM5'				=> 'Paladin',
	'APPLICATION_TEAM6'				=> 'Priest',
	'APPLICATION_TEAM7'				=> 'Rogue',
	'APPLICATION_TEAM8'				=> 'Shaman',
	'APPLICATION_TEAM9'				=> 'Warlock',
	'APPLICATION_TEAM10'			=> 'Warrior',
	'APPLICATION_LEVEL'				=> 'Level: ',
	'APPLICATION_RACE'				=> 'Race: ',
	'APPLICATION_RACE1'				=> 'Orc',
	'APPLICATION_RACE2'				=> 'Undead',
	'APPLICATION_RACE3'				=> 'Tauren',
	'APPLICATION_RACE4'				=> 'Troll',
	'APPLICATION_RACE5'				=> 'Blood Elf',
	'APPLICATION_RACE6'				=> 'Human',
	'APPLICATION_RACE7'				=> 'Dwarf',
	'APPLICATION_RACE8'				=> 'Night Elf',
	'APPLICATION_RACE9'				=> 'Gnome',
	'APPLICATION_RACE10'			=> 'Draenei',
	'APPLICATION_ARMORY'			=> 'Armory Link: ',
	'APPLICATION_MSPEC'				=> 'Main Spec: ',
	'APPLICATION_OSPEC'				=> 'Off Spec: ',
	'APPLICATION_EXPERIENCE'		=> 'Please List all your Raid Experience: ',
	'APPLICATION_CPU'				=> 'Tell us about your gaming system and what kind of FPS you get in 25 man raids: ',
	'APPLICATION_GUILDS'			=> 'Please List the Guild you are currently in and your past guild also please list the reason for leaving or wanting to leave? ',
	'APPLICATION_PLAYED'			=> 'Please Type "/played" in game and tell use how long you been playing: ',
	'APPLICATION_TIMES'				=> 'Can you Make all the raid times, If not please list below in the "Why should we choose you?" section: ',
	'APPLICATION_YES'				=> 'YES',
	'APPLICATION_NO'				=> 'NO',
	'APPLICATION_VENT'				=> 'Do you have Ventrilo with a working MIC? ',
	'APPLICATION_UI'				=> 'Please take a screen shot of your UI while in raid and host on a site like PhotoBucket and Provide us a link to see your UI in a raid: ',
	'APPLICATION_DC'				=> 'DO YOU DC A LOT? ',
	'APPLICATION_ADDONS'			=> 'Please tell us what addons you use in raids: ',
	'APPLICATION_WHY'				=> 'Why should we choose you to join our guild: ',
));

?>
Please help me
User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7816
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: Application form

Post by JimA »

You should change the following line in the language file.

Code: Select all

   'APPLICATION_SUBJECT'         => 'Application from %s',
And change it into:

Code: Select all

   'APPLICATION_SUBJECT'         => '%1$s - %2$s - %3$s',
Then, in the main application.php file, change the following line:

Code: Select all

$apply_subject  = sprintf($user->lang['APPLICATION_SUBJECT'], $user->data['username']);
Into this:

Code: Select all

$apply_subject  = sprintf($user->lang['APPLICATION_SUBJECT'], utf8_normalize_nfc(request_var('charactername', '', true)), request_var('class', '', true), utf8_normalize_nfc(request_var('mspec', '', true));
Jim Mossing Holsteyn - 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.
kenyoung80125
Registered User
Posts: 5
Joined: Thu Apr 22, 2010 4:35 pm

Re: Application form

Post by kenyoung80125 »

I tried the code changes and it didnt work all i get is a blank white page

when i try editing the

Code: Select all

$apply_subject  = sprintf($user->lang['APPLICATION_SUBJECT'], $user->data['username']);
is when the page will not load and i get the blank page
User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7816
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: Application form

Post by JimA »

Would you paste the entire file here now within code tags? :)
Jim Mossing Holsteyn - 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.
kenyoung80125
Registered User
Posts: 5
Joined: Thu Apr 22, 2010 4:35 pm

Re: Application form

Post by kenyoung80125 »

Ok here is the
/phpbb/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 (App Pending)',
	'APPLICATION_MESSAGE'			=> '[color=#80FF00][b]A new user has signed up by the application form, called [/b][/color]%1$s.<br />[color=#80FF00][b]Character Name[/b]:[/color] %2$s<br />[color=#80FF00][b]Real Name[/b]:[/color] %3$s<br />[color=#80FF00][b]E-mail address[/b]:[/color] %4$s<br />[color=#80FF00][b]Class[/b]:[/color] %5$s<br />[color=#80FF00][b]Level[/b]:[/color] %6$s<br />[color=#80FF00][b]Race[/b]:[/color] %7$s<br />[color=#80FF00][b]Armory Link[/b]:[/color] %8$s<br />[color=#80FF00][b]Main Spec[/b]:[/color] %9$s<br />[color=#80FF00][b]Off Spec[/b]:[/color] %10$s<br />[color=#80FF00][b]Raid Experience[/b]:[/color] %11$s<br />[color=#80FF00][b]Gaming Set Up[/b]:[/color] %12$s<br />[color=#80FF00][b]Previous Guilds And Reason For Leaving[/b]:[/color] %13$s<br />[color=#80FF00][b]Game Play Time[/b]:[/color] %14$s<br />[color=#80FF00][b]Can make raid timed?[/b]:[/color] %15$s<br />[color=#80FF00][b]Ventrilo with working mic[/b]:[/color] %16$s<br />[color=#80FF00][b]UI Screen Shot[/b]:[/color] %17$s<br />[color=#80FF00][b]DC a lot?[/b]:[/color] %18$s<br />[color=#80FF00][b]Why should we accept you to our guild?[/b]:[/color] %19$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'	=> 'Raid Times:<br />Friday: 7:00 PM -11 PM - Server Time
<br />Saturday: 7:00 PM - 11 PM - Server Time<br />Sunday: 5:00 PM-9 PM - Server Time<br /><br />Loot Rules:<br />We run DKP System call quick DKP (This May Change in the future) and will also be based on raid attendance. Trial Members my get loot if a Raider or Member does not need for main or off spec, Raiders have loot priority over Members but Main Spec before Off Spec, if an item is OS for a raider and MS for a Member then that Member will get the loot. Mains Before Alts unless you are a Trial Member <br /><br />Trial Members:<br />Trial Members have a minimun of 2 Weeks as a trial member this means if you have 100% attendance in your 2 week trial then you will more then likely make raider status if your Skills as a raider are what we need in our raids',
	'APPLICATION_CHARACTERNAME'		=> 'Character Name: ',
	'APPLICATION_REALNAME'			=> 'Real Name: ',
	'APPLICATION_EMAIL'				=> 'E-mail address: ',
	'APPLICATION_CLASS'				=> 'Class: ',
	'APPLICATION_TEAM1'				=> 'Death Knight',
	'APPLICATION_TEAM2'				=> 'Druid',
	'APPLICATION_TEAM3'				=> 'Hunter',
	'APPLICATION_TEAM4'				=> 'Mage',
	'APPLICATION_TEAM5'				=> 'Paladin',
	'APPLICATION_TEAM6'				=> 'Priest',
	'APPLICATION_TEAM7'				=> 'Rogue',
	'APPLICATION_TEAM8'				=> 'Shaman',
	'APPLICATION_TEAM9'				=> 'Warlock',
	'APPLICATION_TEAM10'			=> 'Warrior',
	'APPLICATION_LEVEL'				=> 'Level: ',
	'APPLICATION_RACE'				=> 'Race: ',
	'APPLICATION_RACE1'				=> 'Orc',
	'APPLICATION_RACE2'				=> 'Undead',
	'APPLICATION_RACE3'				=> 'Tauren',
	'APPLICATION_RACE4'				=> 'Troll',
	'APPLICATION_RACE5'				=> 'Blood Elf',
	'APPLICATION_RACE6'				=> 'Human',
	'APPLICATION_RACE7'				=> 'Dwarf',
	'APPLICATION_RACE8'				=> 'Night Elf',
	'APPLICATION_RACE9'				=> 'Gnome',
	'APPLICATION_RACE10'			=> 'Draenei',
	'APPLICATION_ARMORY'			=> 'Armory Link: ',
	'APPLICATION_MSPEC'				=> 'Main Spec: ',
	'APPLICATION_OSPEC'				=> 'Off Spec: ',
	'APPLICATION_EXPERIENCE'		=> 'Please List all your Raid Experience: ',
	'APPLICATION_CPU'				=> 'Tell us about your gaming system and what kind of FPS you get in 25 man raids: ',
	'APPLICATION_GUILDS'			=> 'Please List the Guild you are currently in and your past guild also please list the reason for leaving or wanting to leave? ',
	'APPLICATION_PLAYED'			=> 'Please Type "/played" in game and tell use how long you been playing: ',
	'APPLICATION_TIMES'				=> 'Can you Make all the raid times, If not please list below in the "Why should we choose you?" section: ',
	'APPLICATION_YES'				=> 'YES',
	'APPLICATION_NO'				=> 'NO',
	'APPLICATION_VENT'				=> 'Do you have Ventrilo with a working MIC? ',
	'APPLICATION_UI'				=> 'Please take a screen shot of your UI while in raid and host on a site like PhotoBucket and Provide us a link to see your UI in a raid: ',
	'APPLICATION_DC'				=> 'DO YOU DC A LOT? ',
	'APPLICATION_ADDONS'			=> 'Please tell us what addons you use in raids: ',
	'APPLICATION_WHY'				=> 'Why should we choose you to join our guild: ',
));

?>
Here is the
/phpbb/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'], utf8_normalize_nfc(request_var('charactername', '', true)), utf8_normalize_nfc(request_var('realname', '', true)), $user->data['user_email'], request_var('class', '', true), request_var('level', '', true), utf8_normalize_nfc(request_var('race', '', true)), utf8_normalize_nfc(request_var('armory', '', true)), utf8_normalize_nfc(request_var('mspec', '', true)), utf8_normalize_nfc(request_var('ospec', '', true)), utf8_normalize_nfc(request_var('experience', '', true)), utf8_normalize_nfc(request_var('cpu', '', true)), utf8_normalize_nfc(request_var('guilds', '', true)), utf8_normalize_nfc(request_var('played', '', true)), request_var('times', '', true), request_var('vent', '', true), utf8_normalize_nfc(request_var('ui', '', true)), request_var('dc', '', true), utf8_normalize_nfc(request_var('addons', '', 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();

?>
Here is the
/phpbb/styles/WoWMaevahEmpire/template/appform_body.html

Code: Select all

<!-- INCLUDE overall_header.html -->
<style type="text/css">
<!--
.style2 {color: #009900}
-->
</style>


<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">
        <span class="style2">        {L_APPLICATION_CHARACTERNAME}</span>
        <span class="style2">
        <input name="charactername" type="text" size="20" />
        <br />

        {L_APPLICATION_REALNAME}
        <input name="realname" type="text" size="20" />
        <br />
        
        {L_APPLICATION_CLASS}
        <select name="class">
          <br />
            <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>
            <option value="{L_APPLICATION_TEAM4}">{L_APPLICATION_TEAM4}</option>
            <option value="{L_APPLICATION_TEAM5}">{L_APPLICATION_TEAM5}</option>
            <option value="{L_APPLICATION_TEAM6}">{L_APPLICATION_TEAM6}</option>
            <option value="{L_APPLICATION_TEAM7}">{L_APPLICATION_TEAM7}</option>
            <option value="{L_APPLICATION_TEAM8}">{L_APPLICATION_TEAM8}</option>
            <option value="{L_APPLICATION_TEAM9}">{L_APPLICATION_TEAM9}</option>
            <option value="{L_APPLICATION_TEAM10}">{L_APPLICATION_TEAM10}</option>
            </select>
        <br />
    
          {L_APPLICATION_LEVEL}
          <input name="level" type="text" size="2" />
          <br />
                    
          {L_APPLICATION_RACE}
          <select name="race">
            <br />
                <option value="{L_APPLICATION_RACE1}">{L_APPLICATION_RACE1}</option>
                <option value="{L_APPLICATION_RACE2}">{L_APPLICATION_RACE2}</option>
                <option value="{L_APPLICATION_RACE3}">{L_APPLICATION_RACE3}</option>
                <option value="{L_APPLICATION_RACE4}">{L_APPLICATION_RACE4}</option>
                <option value="{L_APPLICATION_RACE5}">{L_APPLICATION_RACE5}</option>
                <option value="{L_APPLICATION_RACE6}">{L_APPLICATION_RACE6}</option>
                <option value="{L_APPLICATION_RACE7}">{L_APPLICATION_RACE7}</option>
                <option value="{L_APPLICATION_RACE8}">{L_APPLICATION_RACE8}</option>
                <option value="{L_APPLICATION_RACE9}">{L_APPLICATION_RACE9}</option>
                <option value="{L_APPLICATION_RACE10}">{L_APPLICATION_RACE10}</option>
                </select>
          <br />
          {L_APPLICATION_ARMORY}
          <input name="armory" type="text" size="50" />
          <br />
          {L_APPLICATION_MSPEC}
          <input name="mspec" type="text" size="20" />
          <br />
          {L_APPLICATION_OSPEC}
          <input name="ospec" type="text" size="20" />
          <br />
          {L_APPLICATION_EXPERIENCE}<br />
          <textarea rows="5" cols="50" name="experience"></textarea>
          <br />
          {L_APPLICATION_CPU}<br />
          <textarea rows="5" cols="50" name="cpu"></textarea>
          <br />
          {L_APPLICATION_GUILDS}<br />
          <textarea rows="5" cols="50" name="guilds"></textarea>
          <br />
          {L_APPLICATION_PLAYED}
          <input name="played" type="text" size="50" />
          <br />
          {L_APPLICATION_TIMES}
          <select name="times">
            <br />
                <option value="{L_APPLICATION_YES}">{L_APPLICATION_YES}</option>
                <option value="{L_APPLICATION_NO}">{L_APPLICATION_NO}</option>
                </select>
          <br />
          {L_APPLICATION_VENT}
          <select name="vent">
            <br />
                <option value="{L_APPLICATION_YES}">{L_APPLICATION_YES}</option>
                <option value="{L_APPLICATION_NO}">{L_APPLICATION_NO}</option>
                </select>
          <br />
          {L_APPLICATION_UI}
          <input name="ui" type="text" size="50" />
          <br />
          {L_APPLICATION_DC}
          <select name="dc">
            <br />
                <option value="{L_APPLICATION_YES}">{L_APPLICATION_YES}</option>
                <option value="{L_APPLICATION_NO}">{L_APPLICATION_NO}</option>
                </select>
          <br />
          {L_APPLICATION_ADDONS}<br />
          <textarea rows="5" cols="50" name="addons"></textarea>
          <br />
          {L_APPLICATION_WHY}<br />
            <textarea rows="5" cols="50" name="why"></textarea>
        </span><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 --> 
all that works fine
Application Forum: http://www.mpcit.net/Necropolis/phpbb/application.php
Application Submits here: http://www.mpcit.net/Necropolis/phpbb/v ... 0ff1b26e24

Here is a Test User and Pass if you need it
User: Test1
Pass: test01

just when edit the code you gave me i get the blank page, I also tryed the same code you gave me before i posted and asked for help on it and the same thing happened thats why i asked for some help with it

thank you for helping me and hope you can figure it out
Last edited by kenyoung80125 on Fri Apr 23, 2010 6:59 pm, edited 1 time in total.
User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7816
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: Application form

Post by JimA »

Hold on, I see what I did wrong. I forgot to use a closing bracket at the end of the line. :oops:

Change the last edit into the following:

Code: Select all

$apply_subject  = sprintf($user->lang['APPLICATION_SUBJECT'], utf8_normalize_nfc(request_var('charactername', '', true)), request_var('class', '', true), utf8_normalize_nfc(request_var('mspec', '', true)));
Jim Mossing Holsteyn - 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.
kenyoung80125
Registered User
Posts: 5
Joined: Thu Apr 22, 2010 4:35 pm

Re: Application form

Post by kenyoung80125 »

thanks that worked and i think i might of done the same thing when i was trying to do it before i asked for help

By the way great mod

Ill probley post this Modded one for World of warcraft once i get it looking better and all the bugs worked out of it

Thanks for all the help
davios
Registered User
Posts: 6
Joined: Tue Mar 08, 2005 11:23 am

Re: Application form

Post by davios »

Installed it fine without any problems, but when form is going to be submitted error pops up

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/message_parser.php on line 43: Invalid argument supplied for foreach()

Warning: Cannot modify header information - headers already sent by (output started at /www/forum/includes/functions.php:3493) in /www/forum/includes/functions.php on line 4361

Warning: Cannot modify header information - headers already sent by (output started at /www/forum/includes/functions.php:3493) in /www/forum/includes/functions.php on line 4363

Warning: Cannot modify header information - headers already sent by (output started at /www/forum/includes/functions.php:3493) in /www/forum/includes/functions.php on line 4364

Warning: Cannot modify header information - headers already sent by (output started at /www/forum/includes/functions.php:3493) in /www/forum/includes/functions.php on line 4365
GoodolWolveirne
Registered User
Posts: 1
Joined: Sun May 02, 2010 9:50 pm

Re: Application form

Post by GoodolWolveirne »

Thanks for the Great App. I have it installed and working, but I do need a little help.
On our old Gaming Website we had a module for submitting certain forms. I am trying to duplicate this with your App form.

What I am trying to do is have a Dropdown box open certain text fields to be filled out by our members.

Example:
<Dropdown Box> (User Selects "Rule Violation")
- This opens needed question text areas for filing a Rule Violation
<Dropdown Box> (User Selects "Character Restoration")
- This opens needed question text areas for filing a Character Restorations
<Dropdown Box> (User Selects "Question/Contact Admin")
- This opens needed question text areas for filing a Question/Contact Admin

I am still learning the coding on things, and this one has me stuck.
Locked

Return to “[3.0.x] MOD Database Releases”