Code: Select all
public function posting_check_attribute($event)
{
$post_data = $event['post_data'];
$post_data['attr_id'] = $this->request->variable('attr_id', \ernadoo\qte\qte::KEEP, false, \phpbb\request\request_interface::POST);
if ($event['post_data']['force_attr'])
{
if ($post_data['attr_id'] == \ernadoo\qte\qte::REMOVE && ($event['mode'] == 'post' || ($event['mode'] == 'edit' && $event['post_data']['topic_first_post_id'] == $event['post_id'])) )
{
$error = $event['error'];
$error[] = $this->user->lang['QTE_ATTRIBUTE_UNSELECTED'];
$event['error'] = $error ;
// init the value
$post_data['attr_id'] = 0;
}
}
$event['post_data'] = $post_data;
}
Code: Select all
public function posting_check_attribute($event)
{
$post_data = $event['post_data'];
$post_data['attr_id'] = $this->request->variable('attr_id', \ernadoo\qte\qte::KEEP, false, \phpbb\request\request_interface::POST);
if ($event['post_data']['force_attr'])
{
if ((!$post_data['attr_id'] || $post_data['attr_id'] == \ernadoo\qte\qte::REMOVE) && ($event['mode'] == 'post' || ($event['mode'] == 'edit' && $event['post_data']['topic_first_post_id'] == $event['post_id'])) )
{
$error = $event['error'];
$error[] = $this->user->lang['QTE_ATTRIBUTE_UNSELECTED'];
$event['error'] = $error ;
// init the value
$post_data['attr_id'] = 0;
}
}
$event['post_data'] = $post_data;
}
La migrazione "\ernadoo\qte\migrations\v200\alpha1" non è funzionante, migrazione mancante "\ernadoo\qte\migrations\v200\dev".
Code: Select all
'\phpbb\db\migration\data\v31x\v3111',
Code: Select all
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/includes/functions_module.php
LINE: 565
CALL: trigger_error()
FILE: [ROOT]/adm/index.php
LINE: 82
CALL: p_master->load_active()
It's a phpBB file, you should not remove this line. If this file is not found, you have a bigger problem than a extension doesn't work.scheccia wrote: ↑Sun Sep 03, 2017 9:31 am i remove this code from dev.phpCode: Select all
'\phpbb\db\migration\data\v31x\v3111',
3.2 no upgrade.ErnadoO wrote: ↑Sun Sep 03, 2017 12:27 pmIt's a phpBB file, you should not remove this line. If this file is not found, you have a bigger problem than a extension doesn't work.scheccia wrote: ↑Sun Sep 03, 2017 9:31 am i remove this code from dev.phpCode: Select all
'\phpbb\db\migration\data\v31x\v3111',
What is you phpBB version ?
Code: Select all
SQL ERROR [ mysqli ]
Column 'topic_attr_id' cannot be null [1048]
SQL
It should still be there...
Can you tell me what i need to midify?Leinad4Mind wrote: ↑Mon Sep 18, 2017 8:11 pm You need to create a copy of the extension with new database tables and with new positions. Seems "simple" to me.
If several of your forums have the same type of permissions, you can configure the permissions of a forum, then copy them for all other identical forums using the copy of the permissions in the admin.eunaumtenhoid wrote: ↑Tue Oct 17, 2017 11:40 am how to change all qte moderator permissions delete and edit for yes?
to not have to change one by one