Bug #3055
No template marker replacement in new topic post preview
| 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.
Associated revisions
[Bug 3055] The table in the BE module needs some margin-left, r=niels
History
Updated by Hauke Hain about 4 years ago
- File class.tx_mmforum_pi1.php added
- % Done changed from 0 to 50
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 about 4 years ago
- File class.tx_mmforum_pi1.php added
- % Done changed from 50 to 0
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 about 4 years ago
- Status changed from New to Resolved
- Assignee set to Martin Helmich
- % Done changed from 0 to 100