Check user's pms with auto-refresh ?

Support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Post Reply
sgeorge
New member
New member
Posts: 15
Joined: 28 Dec 2012, 08:15

Check user's pms with auto-refresh ?

Post by sgeorge »

Hello is there any way to check the user's personal messages with auto-refresh ? I mean every 4 or 5 seconds or more the site will refresh some parts of it to check if the user has a new pms. If the statement is true it should refresh the link that says: 0 new messages to 1 new messages or 2 new messages or what the number is...

How can this be done ?

Thank you in advance !!! :)
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Check user's pms with auto-refresh ?

Post by RMcGirr83 »

You need to use ajax to be able to do that and change the header to display that there are new PM's or display a modal popup stating you have new PMs. phpBB 3.1 will have this when it is released.
sgeorge
New member
New member
Posts: 15
Joined: 28 Dec 2012, 08:15

Re: Check user's pms with auto-refresh ?

Post by sgeorge »

So you recommend me to wait for them or to start trying to code it ?

And another question: if I code it successfully now, in the future will I have to delete my coding so as the default phpbb3 board's code to work ?

Thank you
Last edited by sgeorge on 01 Jan 2013, 13:39, edited 1 time in total.
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Check user's pms with auto-refresh ?

Post by RMcGirr83 »

There is no harm in trying to code it (HINT: user jQuery and ajax) and the notification thing in 3.1 will include more than PM's.

https://area51.phpbb.com/phpBB/viewtopic.php?f=108&t=42829#p238059

eg

[img]https://area51.phpbb.com/phpBB/download/file.php?id=2103&t=1[/img]

If you need help with your code just post back.
sgeorge
New member
New member
Posts: 15
Joined: 28 Dec 2012, 08:15

Re: Check user's pms with auto-refresh ?

Post by sgeorge »

That's awesome !

I've read we can get it from github but I could not find it there :(

https://github.com/EXreaction/phpBB-Mod ... ter/phpBB3

I also found that: https://github.com/phpbb/phpbb3/pull/992

Thank you !
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Check user's pms with auto-refresh ?

Post by RMcGirr83 »

github gives me a headache but it's [url=https://github.com/phpbb/phpbb3/pull/1171]here[/url]
sgeorge
New member
New member
Posts: 15
Joined: 28 Dec 2012, 08:15

Re: Check user's pms with auto-refresh ?

Post by sgeorge »

I am sorry for the confusing but I think that it is not available for download right ?

Sorry again and thank you once more !
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Check user's pms with auto-refresh ?

Post by RMcGirr83 »

You can fork it into your github account but as to your request it would probably be easier to just code something up.
Post Reply