FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Messages not flagged read in tree-view with 2.7.5
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Messages not flagged read in tree-view with 2.7.5 [message #32251] Sat, 17 June 2006 23:12 Go to next message
Xonk is currently offline  Xonk   Germany
Messages: 67
Registered: March 2004
Karma: 0
Member
I just installed the new version of this great forum.
But in the tree-view of a thread there's the problem that the selected messages are not set to read. When I go again to the thread all messages are marked as unread.
Same behavior in this forum. I using the latest Firefox.

Greets,

Sven
Re: Messages not flagged read in tree-view with 2.7.5 [message #32252 is a reply to message #32251] Sat, 17 June 2006 23:18 Go to previous messageGo to next message
Xonk is currently offline  Xonk   Germany
Messages: 67
Registered: March 2004
Karma: 0
Member
There are errors in the SQL-Log:

(/home/badonet_de/www/forum/index.php:76
/home/badonet_de/www/forum/index.php:1097
/home/badonet_de/www/forum/theme/default/markread.php:38
/home/badonet_de/www/forum/index.php:1191
) 1110: Column 'last_view' specified twice
Query: INSERT INTO fud26_read (user_id, thread_id, msg_id, last_view) SELECT 26, id, last_post_id, 1140342272 FROM fud26_thread WHERE forum_id=7 AND last_post_date > 1108668361 ON DUPLICATE KEY UPDATE last_view=VALUES(last_view), msg_id=VALUES(msg_id)
_GET: array ( 'SQ' => '45ac9dd2492d19516dd4c2fba14e93f0', 'S' => 'f3609fbe05d31b86dd3a5dd881c8fdb8', 't' => 'markread', 'id' => '7', )
Server Version: 4.1.13-standard
Re: Messages not flagged read in tree-view with 2.7.5 [message #32260 is a reply to message #32251] Sun, 18 June 2006 14:48 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You need to disable MySQL 4.1 optimizations, your version of MySQL does not support them.

FUDforum Core Developer
Re: Messages not flagged read in tree-view with 2.7.5 [message #32261 is a reply to message #32260] Sun, 18 June 2006 16:13 Go to previous messageGo to next message
Xonk is currently offline  Xonk   Germany
Messages: 67
Registered: March 2004
Karma: 0
Member
'Use MySQL 4.1 Performance Options' is set to 'NO'.
It still not works. The problem is only in the tree-view. In the flat-view the messages will be set to read.
And the problem is also in your forum. In the tree-view when selecting a message it will be set as read. But when I go again to the thread all messages are again unread.

Greets,

Sven
Re: Messages not flagged read in tree-view with 2.7.5 [message #32263 is a reply to message #32261] Sun, 18 June 2006 16:47 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The change would fix the query error you've reported, as far as making things read a patch was just applied to CVS to fix this.
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=11500


FUDforum Core Developer
Re: Messages not flagged read in tree-view with 2.7.5 [message #32272 is a reply to message #32251] Sun, 18 June 2006 19:57 Go to previous messageGo to next message
Xonk is currently offline  Xonk   Germany
Messages: 67
Registered: March 2004
Karma: 0
Member
I tried the new version of 'tree_msg.php.t'.

Now I get this error:

Fatal error: Call to undefined function: th_inc_view_count() in /home/badonet_de/www/forum/theme/default/tree_msg.php on line 576
Re: Messages not flagged read in tree-view with 2.7.5 [message #32276 is a reply to message #32272] Mon, 19 June 2006 01:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You also need to patch tree_msg.tmpl file.
http://cvs.prohost.org/c/index.cgi/FUDforum/rlog?f=install/forum_data/thm/d efault/tmpl/tree_msg.tmpl


FUDforum Core Developer
Re: Messages not flagged read in tree-view with 2.7.5 [message #32300 is a reply to message #32251] Mon, 19 June 2006 21:17 Go to previous messageGo to next message
Xonk is currently offline  Xonk   Germany
Messages: 67
Registered: March 2004
Karma: 0
Member
Thanks! It works now!

Another thing, that's not urgent but as we are on the subject:
When a user selects a message in tree-view and there are unread messages posted at a time before in the same thread, then all this messages are marked as read.

Thanks again for your great work,

Sven
Re: Messages not flagged read in tree-view with 2.7.5 [message #32301 is a reply to message #32300] Mon, 19 June 2006 23:44 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
That's because marking of the message read is based on the post time.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: SQL bug in FUDforum 2.7.4
Next Topic: Signature does not update
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 01 18:06:14 GMT 2024

Total time taken to generate the page: 0.02574 seconds