[request] New then Unread PMs after login

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Scam Warning
Locked
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

[request] New then Unread PMs after login

Post 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
Agent F
Registered User
Posts: 201
Joined: Fri Sep 15, 2006 3:28 am
Location: phpbb_users

Re: [request] New then Unread PMs after login

Post 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.
Image
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: [request] New then Unread PMs after login

Post 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.
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: [request] New then Unread PMs after login

Post 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! :)
User avatar
mattgid
Registered User
Posts: 339
Joined: Wed Sep 05, 2007 6:57 am
Location: Singapore

Re: [request] New then Unread PMs after login

Post by mattgid »

wow please test it! and then let us know the results. :D
✖✖_Matthew Gideon_✖✖
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: [request] New then Unread PMs after login

Post 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
User avatar
mattgid
Registered User
Posts: 339
Joined: Wed Sep 05, 2007 6:57 am
Location: Singapore

Re: [request] New then Unread PMs after login

Post by mattgid »

cool. but how does that small line of code change everything?

edit: now i'm not sure whee to change :?
✖✖_Matthew Gideon_✖✖
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: [request] New then Unread PMs after login

Post 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
User avatar
mattgid
Registered User
Posts: 339
Joined: Wed Sep 05, 2007 6:57 am
Location: Singapore

Re: [request] New then Unread PMs after login

Post by mattgid »

oh thanks.
✖✖_Matthew Gideon_✖✖
Gorlalessio
Registered User
Posts: 7
Joined: Sun Nov 21, 2010 6:54 pm

Re: [request] New then Unread PMs after login

Post 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"?
Locked

Return to “[3.0.x] MOD Requests”