Page 1 of 7

Integrated Error Messages

Posted: Mon Jan 21, 2008 10:30 am
by Extensions Robot
Modification name: Integrated Error Messages
Author: Danielx64
Modification description: This MOD allows server error messages such as 404 errors to be handled by a page integrated with the message board.
Modification version: 1.0.4
Tested on phpBB version: 3.0.12

Download file: integrated_errors_1_0_4.zip
File size: 35.95 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extension Customisations Team may not be able to provide support.

-->Modification support<--

Integrated Error Messages

Posted: Mon Jan 21, 2008 10:30 am
by Paul
Modification validated/released

Notes:

Integrated Error Messages

Posted: Mon Jan 21, 2008 10:30 am
by Phantom784
W00t!!! First mod I've ever gotten approved!!! :P

Okay, I'm done gloating. Hope you people find this mod useful, and I'll be happy to help you with it in any way that I can.

Lastly, not a requirement of course, but if you use this, would you kindly let me know what site you use it on by posting here or giving me a pm. It would be good for my ego :P

Re: Integrated Error Messages

Posted: Mon Jan 21, 2008 1:23 pm
by Daan1992
Nice mod! Here is the Dutch Translation:

Code: Select all

<?php
/**
*
* groups [Dutch]
*
* @package language
* @version $Id: $
* @copyright (c) 2008 Francis W. Fisher (Phantom) http://radoncube.com/ 
* @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
//
// 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(
    'ERROR_TITLE'                => 'Fout',
    'ERROR_BAD_REQUEST'            => 'Fout 400: Verkeerde Aanvraag',
    'ERROR_AUTH_REQUIRED'            => 'Fout 401: Toegangkelijkheid vereist',
    'ERROR_FORBIDDEN'            => 'Fout 403: Verboden',
    'ERROR_NOT_FOUND'            => 'Fout 404: Bestand niet gevonden',
    'ERROR_INT_SERVER'            => 'Fout 500: Interne Server Fout',
    'ERROR_UNKNOWN'                => 'Onbekende server fout',
));
?>


Re: Integrated Error Messages

Posted: Mon Jan 21, 2008 2:18 pm
by PatPatten
Better Dutch translation. IMHO

Code: Select all

<?php
/**
*
* groups [English]
*
* @package language
* @version $Id: $
* @copyright (c) 2008 Francis W. Fisher (Phantom) http://radoncube.com/ 
* @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
//
// 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(
    'ERROR_TITLE'                => 'Fout',
    'ERROR_BAD_REQUEST'            => 'Fout 400: Ongeldige aanvraag',
    'ERROR_AUTH_REQUIRED'            => 'Fout 401: Geen machtiging: Aanmelden mislukt',
    'ERROR_FORBIDDEN'            => 'Fout 403: U bent niet gemachtigd voor het weergeven van deze pagina',
    'ERROR_NOT_FOUND'            => 'Fout 404: Pagina niet gevonden',
    'ERROR_INT_SERVER'            => 'Fout 500: Interne serverfout',
    'ERROR_UNKNOWN'                => 'Onbekende Server Fout',
));
?>

Re: Integrated Error Messages

Posted: Mon Jan 21, 2008 7:11 pm
by bbjimbb
Nice MOD!

But i am a N00B with MODs, on what place I have to set the translation?

Re: Integrated Error Messages

Posted: Fri Jan 25, 2008 5:34 pm
by *Capmaster*
Both the prosilver.xml and subsilver2.xml installation files call for the following file to be edited:
Files to Edit
styles/prosilver/template/overall_header.html
Just a typo?

How was this mod released by phpbb.com without the installation files actually being checked for filename accuracy? :roll: I thought they actually tried out these mods and tested them before releasing them to the mods database :?

Good mod, though. Nice work ;)

Re: Integrated Error Messages

Posted: Fri Jan 25, 2008 8:47 pm
by drewtscott
*Capmaster* wrote:Both the prosilver.xml and subsilver2.xml installation files call for the following file to be edited:
Files to Edit
styles/prosilver/template/overall_header.html
Just a typo?

How was this mod released by phpbb.com without the installation files actually being checked for filename accuracy? :roll: I thought they actually tried out these mods and tested them before releasing them to the mods database :?

Good mod, though. Nice work ;)
What's the problem? styles/prosilver/template/overall_header.html exists.

Re: Integrated Error Messages

Posted: Sat Jan 26, 2008 3:02 am
by Phantom784
Oops :oops: Missed that and guess the mod team did too, mostly because I never really use subsilver2. For now, just now that if you're installing for subsilver2, the file you want to open is not in the prosilver directory. I'm going to submit a fixed version ASAP.

Re: Integrated Error Messages

Posted: Mon Jan 28, 2008 2:43 am
by HelixiR
Russian Translate

Code: Select all

<?php
/**
*
* groups [Russian]
*
* @package language
* @version $Id: $
* @copyright (c) 2008 Francis W. Fisher (Phantom) http://radoncube.com/ 
* @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
//
// 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(
	'ERROR_TITLE'				=> 'Ошибка',
	'ERROR_BAD_REQUEST'			=> 'Ошибка 400: Плохой запрос',
	'ERROR_AUTH_REQUIRED'			=> 'Ошибка 401: Необходима авторизация',
	'ERROR_FORBIDDEN'			=> 'Ошибка 403: Запрещен',
	'ERROR_NOT_FOUND'			=> 'Ошибка 404: Файл не найден',
	'ERROR_INT_SERVER'			=> 'Ошибка 500: Внутренняя ошибка сервера',
	'ERROR_UNKNOWN'				=> 'Не распознанная ошибка сервера',
));
?>


Re: Integrated Error Messages

Posted: Mon Jan 28, 2008 2:48 am
by HelixiR
Ukrainian Translate

Code: Select all

<?php
/**
*
* groups [Ukrainian]
*
* @package language
* @version $Id: $
* @copyright (c) 2008 Francis W. Fisher (Phantom) http://radoncube.com/ 
* @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
//
// 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(
	'ERROR_TITLE'				=> 'Помилка',
	'ERROR_BAD_REQUEST'			=> 'Помилка 400: Поганий запит',
	'ERROR_AUTH_REQUIRED'			=> 'Помилка 401: Потрібна авторизація',
	'ERROR_FORBIDDEN'			=> 'Помилка 403: Заборонено',
	'ERROR_NOT_FOUND'			=> 'Помилка 404: Файл не знайдений',
	'ERROR_INT_SERVER'			=> 'Помилка 500: Внутрішня помилка серверу',
	'ERROR_UNKNOWN'				=> 'Не розпізнана помилка серверу',
));
?>


Re: Integrated Error Messages

Posted: Mon Feb 04, 2008 7:48 pm
by pieterbas
I have a ploblem.

I can't find file: .htaccess :lol: :lol:

Re: Integrated Error Messages

Posted: Wed Feb 06, 2008 8:42 pm
by Phantom784
.htaccess is a hidden file on unix-like systems such as linux. what method are you using to connect to your server to install the mod? if it is ftp, look for an option about showing hidden files in your client. On the linux command prompt, use "ls -a" to see all files, including hidden ones. If you honestly don't have a .htaccess file for some reason (it should be included with phpbb3), you can just make a new one with just the lines provided in the "add-after" section in the mod.

Re: Integrated Error Messages

Posted: Fri Feb 08, 2008 3:44 pm
by crackerboy
I thought a mod validation included both subsilver 2 and prosilver?

Re: Integrated Error Messages

Posted: Fri Feb 08, 2008 8:34 pm
by Phantom784
You can find the version that fixes the subsliver2 typo at http://radoncube.com/mods/integrated_errors_1.0.2a.zip . It's been submitted, but hasn't yet been accepted into the mod database.