New Count module
Posted by Panu
Re: New message count next to "new" in list view September 02, 2004 09:32PM |
Registered: 20 years ago Posts: 60 |
Hi,
nice module. But i have a problem.
Latest cvs: phorum5-cvs-2004090212.tar.gz
latest mod: new_count-1-3.zip
I've wrote as an admin 3 new messages in the 'Bla Forum'. Topic 'bla bla'.
I've logged out and logged in as a registered user only.
I see the index page with two folders:
Bla Forum
Test Forum
Under the Posts column i see (3 new) posts for the 'Bla Forum'. That's correct.
I click and entered the 'Bla Forum'
I see the 'List page' with one created topic.
The topic is 'bla bla' with 1 new posts.
That is not correct. 1 new post? You remember? I've wrote 3 new posts as admin.
I click and entered the 'bla bla' topic.
I see three new posts marked as red.
Whats goin on? Whats wrong with me?
Again, first i see 3 new posts, then only 1 new post, next i found 3 new messages.
Regards,
Stoebi
Edited 3 time(s). Last edit at 09/02/2004 09:39PM by Stoebi.
nice module. But i have a problem.
Latest cvs: phorum5-cvs-2004090212.tar.gz
latest mod: new_count-1-3.zip
I've wrote as an admin 3 new messages in the 'Bla Forum'. Topic 'bla bla'.
I've logged out and logged in as a registered user only.
I see the index page with two folders:
Bla Forum
Test Forum
Under the Posts column i see (3 new) posts for the 'Bla Forum'. That's correct.
I click and entered the 'Bla Forum'
I see the 'List page' with one created topic.
The topic is 'bla bla' with 1 new posts.
That is not correct. 1 new post? You remember? I've wrote 3 new posts as admin.
I click and entered the 'bla bla' topic.
I see three new posts marked as red.
Whats goin on? Whats wrong with me?
Again, first i see 3 new posts, then only 1 new post, next i found 3 new messages.
Regards,
Stoebi
Edited 3 time(s). Last edit at 09/02/2004 09:39PM by Stoebi.
Re: New message count next to "new" in list view September 03, 2004 05:10PM |
Registered: 20 years ago Posts: 60 |
Re: New message count next to "new" in list view September 11, 2004 02:57PM |
Registered: 23 years ago Posts: 1,076 |
Re: New message count next to "new" in list view September 14, 2004 02:18PM |
Registered: 23 years ago Posts: 1,076 |
I hope this fixes every known and unknown bug :)
Unfortunately I disabled counting of new messages for threaded mode, but I quess there is not much use for new flags in that mode anyway.
Let me know if that functionality is desired and I'll see what can be done.
---
-=[ Panu ]=-
Unfortunately I disabled counting of new messages for threaded mode, but I quess there is not much use for new flags in that mode anyway.
Let me know if that functionality is desired and I'll see what can be done.
---
-=[ Panu ]=-
Re: New message count next to "new" in list view October 20, 2004 04:14AM |
Registered: 20 years ago Posts: 126 |
latest changes in phorum /move thread with notification/ is cause warning texts:
Warning: array_diff(): Argument #1 is not an array in ...\new_count\new_count.php on line 39
Warning: Invalid argument supplied for foreach() in ...\new_count\new_count.php on line 42
--
Tomasz Regdos :: www.regdos.com
Warning: array_diff(): Argument #1 is not an array in ...\new_count\new_count.php on line 39
Warning: Invalid argument supplied for foreach() in ...\new_count\new_count.php on line 42
--
Tomasz Regdos :: www.regdos.com
Re: New message count next to "new" in list view October 20, 2004 06:47AM |
Admin Registered: 22 years ago Posts: 9,240 |
Re: New message count next to "new" in list view October 20, 2004 10:40AM |
Registered: 20 years ago Posts: 30 |
Actually I would not change the $messages['new'] String, but create a new one called $messages['new_messages'] analog to the variable created for the index page. And of course the count does not make sense for a threaded list.
Before going the module way, I hacked the list.php to serve the count. Since this is Very, VERY easy, maybe the Phorum Hackers could just add 2 lines like:
Everybody could decide, how to use it in their templates, and no expensive extra module is needed.
Before going the module way, I hacked the list.php to serve the count. Since this is Very, VERY easy, maybe the Phorum Hackers could just add 2 lines like:
$rows[$key]["new_messages"] = 0;and
$rows[$key]["new_messages"]++;in the list.php flat view ;)
Everybody could decide, how to use it in their templates, and no expensive extra module is needed.
Re: New message count next to "new" in list view October 21, 2004 12:42PM |
Registered: 20 years ago Posts: 139 |
Re: New message count next to "new" in list view October 22, 2004 06:44AM |
Registered: 23 years ago Posts: 1,076 |
Re: New message count next to "new" in list view November 08, 2004 06:33PM |
Registered: 20 years ago Posts: 4 |
Sorry, only registered users may post in this forum.