But maybe CLI has a different version than the webserver somehow? The syntax error is really typical.
By the way, this extension is not to be used on live board.
But maybe CLI has a different version than the webserver somehow? The syntax error is really typical.
Code: Select all
'MARTTIPHPBB_SHOWPHPBBEVENTS_SELECT_EXPLAIN' => 'inside html select',
That key is not used anymore. So you can leave it out.pikachuturkey wrote: ↑Tue Nov 13, 2018 5:42 pm i tried to translate the language file but i didn't understand this lines:and i didn't understand that, there is explain of "head" and "select" but there is no line about them.Code: Select all
'MARTTIPHPBB_SHOWPHPBBEVENTS_SELECT_EXPLAIN' => 'inside html select',
mcp_forum_actions_append
, that is inside an html <select>
element. You can not create a link inside a <select>
, so that's why there is an extra badge right after the select in grey color. The text was to give some extra explanation, but I dropped that in the end.Code: Select all
<?php
/**
* phpBB Extension - marttiphpbb showphpbbevents
* @copyright (c) 2014 - 2018 marttiphpbb <[email protected]>
* @license GNU General Public License, version 2 (GPL-2.0)
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = [];
}
$lang = array_merge($lang, [
'MARTTIPHPBB_SHOWPHPBBEVENTS_SHOW' => 'Göster',
'MARTTIPHPBB_SHOWPHPBBEVENTS_SHOW_EXPLAIN' => 'phpBB Olaylarını göster',
'MARTTIPHPBB_SHOWPHPBBEVENTS_HIDE' => 'Gizle',
'MARTTIPHPBB_SHOWPHPBBEVENTS_HIDE_EXPLAIN' => 'phpBB Olaylarını gizle',
'MARTTIPHPBB_SHOWPHPBBEVENTS_HEAD_EXPLAIN' => 'html head kısmı içinde',
'MARTTIPHPBB_SHOWPHPBBEVENTS_PHP_EVENT_NAME' => 'PHP Olayı',
'MARTTIPHPBB_SHOWPHPBBEVENTS_PHP_EVENT_COUNT' => 'Sayı',
'MARTTIPHPBB_SHOWPHPBBEVENTS_SINCE' => 'Şu sürümden beri',
'MARTTIPHPBB_SHOWPHPBBEVENTS_FILENAME' => 'Dosya adı',
]);
I consider this a "bug" of the phpBB core. HTTP POST is used for selecting the user in the page. HTTP GET would be more appropriate, as we're simply fetching data, not POSTing data. I posted this issue in the tracker long time ago.david63 wrote: ↑Tue Dec 11, 2018 7:18 am @martti
I think there is a minor bug when in ACP.
If I am in ACP > Users & Groups > Manage users and select a user which will take me to the "Overview" page and then select "Show" from your extension when the page reloads it takes me back to the select user page.
As I say not a major problem