-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from franzholz/develop
fix language and search issue
- Loading branch information
Showing
6 changed files
with
70 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
TODO: | ||
Replace $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extensionKey] by | ||
https://docs.typo3.org/m/typo3/reference-coreapi/11.5/en-us/ExtensionArchitecture/FileStructure/ExtConfTemplate.html#accessing-saved-options | ||
|
||
|
||
2024-04-04 Franz Holzinger <[email protected]> | ||
* use checkMXRecord for each e-mail address before sending a notification e-mail | ||
* fix bug to show the errors formerly shown in a flash error page message in the front end | ||
|
||
2023-12-01 Franz Holzinger <[email protected]> | ||
* add Documentation fixes | ||
|
@@ -44,7 +52,7 @@ | |
|
||
2020-07-31 Franz Holzinger <[email protected]> | ||
* add the field tstamp to the TCA | ||
* add the page browser header to the ###TEMPLATE_FORUM### subpart of the template file board_template2.html | ||
* add the page browser header to the ###TEMPLATE_FORUM### subpart of the template file board_template2.html | ||
|
||
2020-07-27 Franz Holzinger <[email protected]> | ||
* add new field city | ||
|
@@ -65,7 +73,7 @@ | |
2019-12-18 Franz Holzinger <[email protected]> | ||
* fix issue #5: tt_board 1.10.15 works under TYPO3 9.5 | ||
* compatibility for TYPO3 9 breaking 82803: $TYPO3_CONF_VARS['FE']['content_doktypes'] has been removed in TYPO3 9 | ||
|
||
2019-11-02 Franz Holzinger <[email protected]> | ||
* adapt composer.json to current needs | ||
* add alias files tt_board_list for JambageCom\TtBoard\Controller\ListPluginController and tt_board_tree for JambageCom\TtBoard\Controller\TreePluginController | ||
|
@@ -131,7 +139,7 @@ | |
* readd the API to use a commenting system inside of external extensions. Only the method getDefaultConfig is needed. | ||
|
||
2018-11-25 Franz Holzinger <[email protected]> | ||
* new: Replace the labels from the newReply and newThread processScript setup by language labels: | ||
* new: Replace the labels from the newReply and newThread processScript setup by language labels: | ||
newReply.didWhat, newReply.subjectPrefix, newReply.followThisLink, newThread.didWhat, newThread.subjectPrefix | ||
* Add a new label for each text entry in the file template/board_notify.txt | ||
* fix in composer.json: require shall use the namespace typo3-ter instead of jambagecom | ||
|
@@ -165,7 +173,7 @@ | |
* bugfix for TYPO3 9.x: replace deprecated method ContentObjectRenderer::substituteMarkerArrayCached by TYPO3\CMS\Core\Service\MarkerBasedTemplateService::substituteMarkerArrayCached | ||
|
||
2018-07-30 Franz Holzinger <[email protected]> | ||
* bugfix for TYPO3 9.x: replace deprecated method ContentObjectRenderer::fileResource by $TSFE->tmpl->getFileName and file_get_contents. | ||
* bugfix for TYPO3 9.x: replace deprecated method ContentObjectRenderer::fileResource by $TSFE->tmpl->getFileName and file_get_contents. | ||
|
||
2018-06-28 Franz Holzinger <[email protected]> | ||
* bugfix: because of the new base class \JambageCom\Div2007\Base\TranslationBase the new \JambageCom\Div2007\Utility\BrowserUtility must be used. | ||
|
@@ -189,7 +197,7 @@ | |
* HTML templates: remove the font entries. Use CSS instead. | ||
|
||
2018-04-02 Franz Holzinger <[email protected]> | ||
* new feature: disallow fields by exclude.tt_board. Set it to cr_ip for GDPR compliance | ||
* new feature: disallow fields by exclude.tt_board. Set it to cr_ip for GDPR compliance | ||
|
||
2018-03-19 Franz Holzinger <[email protected]> | ||
* rename PostForm into Form | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/*************************************************************** | ||
* Copyright notice | ||
* | ||
* (c) 2023 Kasper Skårhøj <[email protected]> | ||
* (c) 2024 Kasper Skårhøj <[email protected]> | ||
* All rights reserved | ||
* | ||
* This script is part of the TYPO3 project. The TYPO3 project is | ||
|
@@ -97,7 +97,7 @@ public static function execute(TypoScriptFrontendDataController $pObj, $conf) | |
false | ||
); | ||
if (is_array($row)) { | ||
$email = $row['email']; | ||
$email = $row['email'] ?? ''; | ||
} | ||
} | ||
|
||
|
@@ -354,11 +354,7 @@ public static function execute(TypoScriptFrontendDataController $pObj, $conf) | |
if ( | ||
$notify && | ||
$conf['notify'] && | ||
trim($row['email']) && | ||
( | ||
!$conf['emailCheck'] || | ||
MailUtility::checkMXRecord($row['email']) | ||
) | ||
!empty($row['email']) | ||
) { | ||
$labelKeys = ['p_at', 'p_content', 'p_salutation', 'p_subject', 'p_text_snippet', 'p_url_title']; | ||
$markersArray = []; | ||
|
@@ -426,14 +422,19 @@ public static function execute(TypoScriptFrontendDataController $pObj, $conf) | |
} | ||
$fromName = $senderArray[0]; | ||
foreach ($addresses as $email) { | ||
MailUtility::send( | ||
$email, | ||
$msgParts[0], | ||
$msgParts[1], | ||
'', | ||
$fromEmail, | ||
$fromName | ||
); | ||
if ( | ||
empty($conf['emailCheck']) || | ||
MailUtility::checkMXRecord($email) | ||
) { | ||
MailUtility::send( | ||
$email, | ||
$msgParts[0], | ||
$msgParts[1], | ||
'', | ||
$fromEmail, | ||
$fromName | ||
); | ||
} | ||
} | ||
} | ||
} | ||
|
@@ -461,7 +462,8 @@ public static function execute(TypoScriptFrontendDataController $pObj, $conf) | |
$message | ||
); | ||
$sessionData = []; | ||
$sessionData['error'] = $content; | ||
$sessionData['error-title'] = $title; | ||
$sessionData['error-message'] = $message; | ||
$session->setSessionData($sessionData); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,16 +37,18 @@ | |
* @author Kasper Skårhøj <[email protected]> | ||
* @author Franz Holzinger <[email protected]> | ||
*/ | ||
use TYPO3\CMS\Core\SingletonInterface; | ||
use JambageCom\Div2007\Utility\TableUtility; | ||
|
||
use TYPO3\CMS\Core\Database\Query\Restriction\FrontendRestrictionContainer; | ||
use JambageCom\Div2007\Database\QueryBuilderApi; | ||
use TYPO3\CMS\Core\Database\Connection; | ||
use TYPO3\CMS\Core\Database\ConnectionPool; | ||
use TYPO3\CMS\Core\Database\Query\Expression\CompositeExpression; | ||
use TYPO3\CMS\Core\Database\Query\QueryBuilder; | ||
use TYPO3\CMS\Core\Information\Typo3Version; | ||
use TYPO3\CMS\Core\SingletonInterface; | ||
use TYPO3\CMS\Core\Utility\GeneralUtility; | ||
|
||
use JambageCom\Div2007\Utility\TableUtility; | ||
use JambageCom\Div2007\Database\QueryBuilderApi; | ||
|
||
use JambageCom\TtBoard\Constants\TreeMark; | ||
use JambageCom\TtBoard\Domain\QueryParameter; | ||
|
@@ -247,9 +249,9 @@ public static function getPagesInPage($pid_list) | |
* Returns number of post in a forum. | ||
* @param string ... $pidList comma separated list of page ids. | ||
* @param array ... $andWhereEqualsArray array of QueryParameter for equation comparisons | ||
* @param where ... $where | ||
* @param where ... $where | ||
*/ | ||
public function getNumPosts($pidList, array $queryParameters = [], QueryBuilder $where = null) | ||
public function getNumPosts($pidList, array $queryParameters = [], CompositeExpression $where = null) | ||
{ | ||
$pageIds = GeneralUtility::intExplode(',', (string) $pidList, true); | ||
$queryBuilder = $this->getQueryBuilder(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
'title' => 'Message board, twin mode', | ||
'description' => 'Simple threaded (tree) or list message board (forum).', | ||
'category' => 'plugin', | ||
'version' => '1.14.0', | ||
'version' => '1.14.1', | ||
'state' => 'stable', | ||
'author' => 'Franz Holzinger', | ||
'author_email' => '[email protected]', | ||
|