Thanks David,
public function modify_posting_parameters($event)
and to create an event setup like this: Code: Select all
'core.user_setup' => 'load_language_on_setup',
Thanks but that would require an event just for the language which I'd like to avoid. There is already a solution here: https://github.com/DavidIQ/topictitlecolor/issues/6Galixte de EzCom wrote: ↑Thu Mar 29, 2018 9:23 pmThanks David,
A user from phpBB-fr suggests you to delete the injection of the language file inpublic function modify_posting_parameters($event)
and to create an event setup like this:Good luck!Code: Select all
'core.user_setup' => 'load_language_on_setup',
I installed this ext in phpBB 3.2.1 successfully, but I can't see anything that looks like colours for subject tittle in the posting area! What do I need to do?
All you should need to do is enable it as there aren't any permissions. It would be highly suspect to be missing the template events, but it will depend on what style you have and if it's up to date I guess.
The style I use is up-to-date prosilver, how do I proceed solving the problem?
Code: Select all
<?php
/**
*
* titlecolor [Polish]
*
* @package language
* @copyright (c) 2017 DavidIQ.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
//
// 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(
'TITLE_COLOUR' => 'Kolor tytułu',
'NO_TITLE_COLOR' => 'BRAK',
));
Code: Select all
Erreur générale
SQL ERROR [ mysqli ]
[0]
SQL
No values specified for SQL IN comparison
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 997
CALL: trigger_error()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 547
CALL: phpbb\db\driver\driver->sql_error()
FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 441
CALL: phpbb\db\driver\driver->sql_in_set()
FILE: [ROOT]/ext/davidiq/topictitlecolor/event/main_listener.php
LINE: 218
CALL: phpbb\db\driver\factory->sql_in_set()
FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 184
CALL: davidiq\topictitlecolor\event\main_listener->display_forums_before()
FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 46
CALL: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 62
CALL: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 46
CALL: phpbb\event\dispatcher->dispatch()
FILE: [ROOT]/includes/functions_display.php
LINE: 407
CALL: phpbb\event\dispatcher->trigger_event()
FILE: [ROOT]/viewforum.php
LINE: 140
CALL: display_forums()
Thank you for letting me know. This should fix you up:Midway wrote: ↑Wed Dec 12, 2018 5:18 pm when I create sub-forums and click on one of the sub-forums I get this errorCode: Select all
Erreur générale SQL ERROR [ mysqli ] [0] SQL No values specified for SQL IN comparison BACKTRACE FILE: (not given by php) LINE: (not given by php) CALL: msg_handler() FILE: [ROOT]/phpbb/db/driver/driver.php LINE: 997 CALL: trigger_error() FILE: [ROOT]/phpbb/db/driver/driver.php LINE: 547 CALL: phpbb\db\driver\driver->sql_error() FILE: [ROOT]/phpbb/db/driver/factory.php LINE: 441 CALL: phpbb\db\driver\driver->sql_in_set() FILE: [ROOT]/ext/davidiq/topictitlecolor/event/main_listener.php LINE: 218 CALL: phpbb\db\driver\factory->sql_in_set() FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php LINE: 184 CALL: davidiq\topictitlecolor\event\main_listener->display_forums_before() FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php LINE: 46 CALL: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() FILE: [ROOT]/phpbb/event/dispatcher.php LINE: 62 CALL: Symfony\Component\EventDispatcher\EventDispatcher->dispatch() FILE: [ROOT]/phpbb/event/dispatcher.php LINE: 46 CALL: phpbb\event\dispatcher->dispatch() FILE: [ROOT]/includes/functions_display.php LINE: 407 CALL: phpbb\event\dispatcher->trigger_event() FILE: [ROOT]/viewforum.php LINE: 140 CALL: display_forums()