Application.php by JimA

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Registered User
Posts: 2
Joined: Sun Oct 07, 2012 12:32 am

Application.php by JimA

Post by Duesama » Fri Dec 23, 2016 1:41 pm

Hi I am using the application version 1.0.1 for for phpbb 3.0.14 and I am getting the errors

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/language/en/mods/application.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/language/en/mods/application.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/language/en/mods/application.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/language/en/mods/application.php:1)


Code: Select all

* @package application.php
* @copyright (c) JimA 2009
* @license 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);
require($phpbb_root_path . 'includes/functions_user.' . $phpEx);
require($phpbb_root_path . 'includes/functions_module.' . $phpEx);
include($phpbb_root_path . 'includes/functions_url_matcher.' . $phpEx);

// Start session management

// 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 = 44;

$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)),
 utf8_normalize_nfc(request_var('class', '', true)),
 utf8_normalize_nfc(request_var('aa', '', true)),
 utf8_normalize_nfc(request_var('alaran', '', true)),
 utf8_normalize_nfc(request_var('magelo', '', true)),
 utf8_normalize_nfc(request_var('prevguild', '', true)),
 utf8_normalize_nfc(request_var('crossserver', '', true)),
 utf8_normalize_nfc(request_var('experience', '', true)),
 utf8_normalize_nfc(request_var('why', '', true)),
 utf8_normalize_nfc(request_var('who', '', true)),
 utf8_normalize_nfc(request_var('what', '', true)),
 utf8_normalize_nfc(request_var('schedule', '', true)),
 utf8_normalize_nfc(request_var('owner', '', true)),
 utf8_normalize_nfc(request_var('access', '', true)),
 utf8_normalize_nfc(request_var('other', '', true)),
 utf8_normalize_nfc(request_var('any', '', true)), $user->data['user_email']);

// 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>');


	'PROCESS_APPFORM'	=> append_sid("{$phpbb_root_path}application.$phpEx"),
    'body' => '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">
        <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="name" /><br />
        {L_APPLICATION_CLASS} <input type="text" name="class" /><br />
        {L_APPLICATION_AA} <input type="text" name="aa" /><br />
        <!-- {L_APPLICATION_ALARAN} <input type="text" name="alaran" /><br /> -->
        {L_APPLICATION_MAGELO} <br />
        <textarea name="magelo" cols="50" rows="1" >...</textarea><br />

        <textarea rows="3" cols="50" name="prevguild"></textarea><br />

        <textarea rows="2" cols="50" name="crossserver"></textarea><br />

        <textarea rows="3" cols="50" name="experience"></textarea><br />

        {L_APPLICATION_WHY} <br />
        <textarea rows="3" cols="50" name="why"></textarea><br />

        {L_APPLICATION_WHO} <br />
        <textarea rows="3" cols="50" name="who"></textarea><br />

        {L_APPLICATION_WHAT} <br />
        <textarea rows="3" cols="50" name="what"></textarea><br />

        {L_APPLICATION_SCHEDULE} <input type="text" name="schedule" /><br />
        {L_APPLICATION_OWNER} <br />
        <textarea rows="3" cols="50" name="owner"></textarea><br />

        {L_APPLICATION_ACCESS} <br />
        <textarea rows="3" cols="50" name="access"></textarea><br />

        {L_APPLICATION_OTHER} <br />
        <textarea rows="3" cols="50" name="other"></textarea><br />

        {L_APPLICATION_ANY}<br />
        <textarea rows="3" cols="50" name="any"></textarea><br />

        <br /><br />
        <input type="submit" name="submit" id ="submit" value="{L_SUBMIT}" class="button1" />
What can I do to get rid of errors

User avatar
Community Team Leader
Community Team Leader
Posts: 7609
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn

Re: Application.php by JimA

Post by JimA » Fri Dec 23, 2016 1:54 pm

Hi, welcome to! :)

Support for modifications is given in a specific area in our Customisation Database, which for the Application Form MOD is over here. Could you please post your question there and add the code of the language file language/en/mods/application.php as well?
Image 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.

User avatar
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Application.php by JimA

Post by RMcGirr83 » Fri Dec 23, 2016 2:05 pm

You posted all files except for the language file which is the one that is tossing the error.

You have used an editor that has inserted what is known as a BOM. Use a strict text editor, like notepad++ (NOT windows notepad), and change the encoding of the file to UTF-8 without BOM.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored


Return to “[3.0.x] Support Forum”