CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #3107

Install -> General settings -> Date format: Has no effect to the forum plugin pi1

Added by Hauke Hain about 4 years ago. Updated over 2 years ago.

Status:Resolved Start date:2009-04-16
Priority:Should have Due date:
Assignee:Martin Helmich % Done:

100%

Category:Forum
Target version:0.1.8
Votes: 0

Description

Install -> General settings -> Date format: Has no effect to the forum plugin pi1: forum.
It has only an effect to pages like own posts.

This is because the getlastpost function doesn't use the user setting, but the TypoScript setting list_topics.lastPostDate_stdWrap.

Please change it, that the setting in the backend modul does what it promises: Change the default date format for the WHOLE mm_forum.

My solution is ugly, but it works for me:

Replace
$posttime = $this->cObj->stdWrap($row['post_time'],$this->conf['list_topics.']['lastPostDate_stdWrap.']);
With
$posttime = $this->cObj->stdWrap($row['post_time'],array('strftime'=>$this->conf['dateFormat'], 'wrap'=>$this->conf['list_topics.']['lastPostDate_stdWrap.']['wrap']));
In class.tx_mmforum_pi1.php

Associated revisions

Revision 122606a9
Added by Martin Helmich about 4 years ago

Fixed #3107.

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/mm_forum/trunk@20533 735d13b6-9817-0410-8766-e36946ffe9aa

Revision 21696
Added by Bernd Schönbach almost 4 years ago

[Bug 3107] If the "name" field is hidden, use the first name and last name, r=oliver

History

Updated by Martin Helmich about 4 years ago

  • Status changed from New to Resolved
  • Assignee set to Martin Helmich
  • Target version set to 0.1.8
  • % Done changed from 0 to 100

Updated by Laurent almost 4 years ago

Hi,

I dont understand why this issue is closed.
I have always the same problem related by Hauke Haine.

I have to use his solution in order to make things fine...

Replace
$posttime = $this->cObj->stdWrap($row['post_time'],$this->conf['list_topics.']['lastPostDate_stdWrap.']);
With
$posttime = $this->cObj->stdWrap($row['post_time'],array('strftime'=>$this->conf['dateFormat'], 'wrap'=>$this->conf['list_topics.']['lastPostDate_stdWrap.']['wrap']));
In class.tx_mmforum_pi1.php

Updated by Hauke Hain almost 4 years ago

Dear Laurent,

the issue if closed because it is fixed in the trunk.
If you do not update to the latest trunk but use the TER version you have to fix it by yourself, what you already did.

Hauke

Updated by B. Stöckelmann almost 3 years ago

Hi,

using this in 1.9.0:

4467 //$posttime = $this->cObj->stdWrap($row['post_time'],$this->conf['list_topics.']['lastPostDate_stdWrap.']);
4468 $posttime = $this->cObj->stdWrap($row['post_time'],array('strftime'=>$this->conf['dateFormat'], 'wrap'=>$this->conf['list_topics.']['lastPostDate_stdWrap.']['wrap']));

in class.tx_mmforum_pi1

TS:
plugin.tx_mmforum_pi1.dateFormat = %d.%m.%Y

Also available in: Atom PDF