New Count module
Posted by Panu
Re: New message count next to "new" in list view November 09, 2004 05:08AM |
Registered: 23 years ago Posts: 1,076 |
Borys Wrote:
-------------------------------------------------------
> Hi....
> How does $langs[$langkey]['single'] (/ multiple)
> works? Where should i add something (possibly to
> lang file) to use this feature?
This mod doesn't have lang file (yet?) But it means that the single variable holds singular for new and multiple for plural of new.
so for example german (I assume that the language name is "german" in phorum settings and my german is really weak so I'm only quessing that german has plural for "new"...)
Hope this asnwered your question.
---
-=[ Panu ]=-
-------------------------------------------------------
> Hi....
> How does $langs[$langkey]['single'] (/ multiple)
> works? Where should i add something (possibly to
> lang file) to use this feature?
This mod doesn't have lang file (yet?) But it means that the single variable holds singular for new and multiple for plural of new.
so for example german (I assume that the language name is "german" in phorum settings and my german is really weak so I'm only quessing that german has plural for "new"...)
$langs = array("german" =>array( "single"=>"Neue", "multiple"=>"Neues"));If you want to support many languages instead of replacing finnish (like I did here) add more languages to that array.
Hope this asnwered your question.
---
-=[ Panu ]=-
Re: New message count next to "new" in list view November 09, 2004 11:27AM |
Registered: 20 years ago Posts: 4 |
Re: New message count next to "new" in list view November 10, 2004 08:48AM |
Registered: 23 years ago Posts: 1,076 |
The code to be hacked is in the module itself (new_count.php)
So my previous example...
If you would like to add finnish.
Note that if you don't hack the code you get the default "new" for your selected language (the same string for singular & plural)
---
-=[ Panu ]=-
So my previous example...
$langs = array("german" =>array("single"=>"Neue", "multiple"=>"Neues")); becomes: $langs = array("german" =>array("single"=>"Neue", "multiple"=>"Neues"), "finnish" =>array("single"=>"uusi", "multiple"=>"uutta"));
If you would like to add finnish.
Note that if you don't hack the code you get the default "new" for your selected language (the same string for singular & plural)
---
-=[ Panu ]=-
Counts still wrong January 13, 2005 11:55AM |
Registered: 23 years ago Posts: 83 |
Re: New message count next to "new" in list view January 13, 2005 12:54PM |
Registered: 23 years ago Posts: 1,076 |
Re: New message count next to "new" in list view January 13, 2005 04:56PM |
Moderator Registered: 21 years ago Posts: 634 |
Re: New message count next to "new" in list view January 13, 2005 05:11PM |
Registered: 23 years ago Posts: 1,076 |
Re: New message count next to "new" in list view January 14, 2005 09:07AM |
Registered: 23 years ago Posts: 83 |
Re: New message count next to "new" in list view January 14, 2005 12:09PM |
Registered: 23 years ago Posts: 1,076 |
Well that's the still unreleased version... :) 1.4 is the latest I have uploaded.
but anyway can you give the following information:
what are the Thread Override fileds saying in your profile?
I only get "new" when threaded view is selected.
If threaded view is used it returns the messages untouched. I have to double check mixed threaded/list/read case.
But anyway the counts should be correct assuming Phorum is reporting them correctly.
Can you attach a screenshot showing the bug?
---
-=[ Panu ]=-
but anyway can you give the following information:
what are the Thread Override fileds saying in your profile?
I only get "new" when threaded view is selected.
If threaded view is used it returns the messages untouched. I have to double check mixed threaded/list/read case.
But anyway the counts should be correct assuming Phorum is reporting them correctly.
Can you attach a screenshot showing the bug?
---
-=[ Panu ]=-
Re: New message count next to "new" in list view January 14, 2005 06:35PM |
Registered: 23 years ago Posts: 1,076 |
Sorry, only registered users may post in this forum.