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

Bug #3055

No template marker replacement in new topic post preview

Added by Hauke Hain about 5 years ago. Updated over 3 years ago.

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

100%

Category:Forum
Target version:0.1.8
Votes: 0

Description

Template markers like
###PROFILEMENU###
###MESSAGEMENU###
in new_post.html / <!-- ###LIST_POSTS### begin -->
are not replaced if you watch the preview of your new topic.

In new_topic.html it is included via ###PREVIEW_POST###

On top of that, markers included via the
$TYPO3_CONF_VARS['EXTCONF']['mm_forum']['display']['postListMarkerArray']
hook are not replaced either.

class.tx_mmforum_pi1.php (237.6 kB) Hauke Hain, 2009-04-27 20:38

class.tx_mmforum_pi1.php (237.6 kB) Hauke Hain, 2009-04-27 21:41

Associated revisions

Revision 21251
Added by Oliver Klee almost 5 years ago

[Bug 3055] The table in the BE module needs some margin-left, r=niels

History

Updated by Hauke Hain almost 5 years ago

The error occurs because the markers aren't replaced in function new_post in class.tx_mmforum_pi1.php
Add the following lines before line 2525:

                    $marker['###MESSAGEMENU###']= '';
                    $marker['###PROFILEMENU###']= '';

I added the php file for SVN diff.

Updated by Hauke Hain almost 5 years ago

Forgot to mention it:
of course you have to add the same lines in function new_topic near

$marker['###POSTOPTIONS###'] = '';

I added the corrected file.

I think the following code should be added too.

          $marker['###POSTED###']= $this->formatDate(time());
          $marker['###PROFILELINK###']= $this->getauthor($this->getUserID());

Updated by Martin Helmich almost 5 years ago

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

Also available in: Atom PDF