problem with list_unread function in class.tx_mmforum_pi1.php
|Priority:||-- undefined --||Due date:|
I had a problem with the function list_unread in class.tx_mmforum_pi1.php . It showed all theads since the fe_user field tx_mmforum_prelogin alias lastlogin. Even when I read a topic and there was an entry in the table tx_mmforum_postsread it was still displayed.
To fix it for me I added the line
tx_mmforum_posts.topic_id NOT IN (SELECT topic_id FROM tx_mmforum_postsread WHERE user=" . intval($GLOBALS['TSFE']->fe_user->user['uid']) . $this->getPidQuery() . ") AND
in the WHERE part of the SELECT query. I copied the line from the getunreadposts function.
Am I the only one with this problem? In the typo3.net it seems to work right...
Updated by Martin Helmich about 3 years ago
- Status changed from New to Closed
- Priority changed from Must have to -- undefined --
- Target version deleted (
Actually, this behaviour is intentional ("It's not a bug, it's a feature.").
As long as you do not hit the "Mark all as read" button, all topics will stay in the list, even after they have been viewed. In this case, the topic's status will only be visualized by the topic icons.
Btw, as far as I recall, the behaviour on TYPO3.net should be similar.