Page 1 of 1

[request] New then Unread PMs after login

Posted: Wed Oct 03, 2007 10:53 am
by IPB_Refugee
Hi,

yesterday I got a PM but I haven't read it yet. Today phpBB.com tells me: (0 new messages) It would be better when phpBB told me: (1 unread message)

To say it short: I'd like to have the MOD [11/02/07] New then Unread PMs after login for Olympus, too. :)
Mod Robot wrote:MOD Description: Normally, phpbb shows the number of new messages. With this Mod once the amount of new messages have been displayed and the user starts browsing in the forum, the display will change to the amount of unread messages in his/her inbox. The display will be in a different colour to the standard until all messages have been read.
Regards
Wolfgang

Re: [request] New then Unread PMs after login

Posted: Wed Oct 03, 2007 8:45 pm
by Agent F
As far as I know, the message changes from 1 New Message to 0 New Messages, 1 Unread Message if you enter the Message Center or return to the forum later on.

Re: [request] New then Unread PMs after login

Posted: Wed Oct 03, 2007 9:48 pm
by IPB_Refugee
Hi,

unfortunately phpBB.com told me (0 new messages) after leaving phpBB.com for several hours and then coming back. (A new session was established for me as I returned). But I want that unread PMs stay as long marked as unread until you have really read the PM. (I want the same behaviour for PMs as we already have got for unread topics.) This is not the case at present.

Regards
Wolfgang

EDIT: Reported as bug on October, 12th.

Re: [request] New then Unread PMs after login

Posted: Fri Oct 12, 2007 1:02 pm
by IPB_Refugee
Although I really believe it should be the standard behaviour of Olympus, it seems that I need a MOD: I want that unread PMs appear as long marked as unread in the header until I have really read them.

Image

So when I have 5 unread PMs the header should show: (5 unread messages). Now in this case it would show (0 new messages)

Unfortunately this has not been considered a bug. :(

Regards
Wolfgang

EDIT: Kellanved was so nice to provide a solution (will have to test it yet):

http://www.phpbb.com/bugs/phpbb3/ticket ... #post41550

Thank you! :)

Re: [request] New then Unread PMs after login

Posted: Sat Oct 13, 2007 11:49 am
by mattgid
wow please test it! and then let us know the results. :D

Re: [request] New then Unread PMs after login

Posted: Sat Oct 13, 2007 12:01 pm
by IPB_Refugee
Hi,

you can do it by yourself in overall_header.html. I'm absolutely sure it will work. But maybe I'm going to write a small MOD within the next few months (after Gold release) because I want it this way:

You have | Header shows

no new PMs, no unread PMs | Private Messages
2 new PMs, no unread PMs | (2 new PMs)
no new PMs, 1 unread PM | (1 unread PM)
1 new PM, 2 unread PMs | (1 new PM, 2 unread PMs)

Especially I do not want to read (0 new messages) - and nothing else - when I have one or more unread PMs.

Regards
Wolfgang

Re: [request] New then Unread PMs after login

Posted: Sat Oct 13, 2007 12:15 pm
by mattgid
cool. but how does that small line of code change everything?

edit: now i'm not sure whee to change :?

Re: [request] New then Unread PMs after login

Posted: Sat Oct 13, 2007 12:53 pm
by IPB_Refugee
Hi,

in styles/prosilver/template/overall_header.html you can change e.g.

Code: Select all

						<!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>)<!-- ENDIF --> &bull; 
to

Code: Select all

						<!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a>)<!-- ENDIF --> &bull; 
And then don't forget to purge the cache in ACP after doing the code changes.

Regards
Wolfgang

Re: [request] New then Unread PMs after login

Posted: Sat Oct 13, 2007 1:01 pm
by mattgid
oh thanks.

Re: [request] New then Unread PMs after login

Posted: Thu Jan 05, 2012 1:09 pm
by Gorlalessio
IPB_Refugee wrote:

Code: Select all

<!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a>)<!-- ENDIF --> &bull; 
Sorry refugee in which language files could I edit "PRIVATE_MESSAGE_INFO_UNREAD"?