TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Advanced PHP Programming (http://www.talkphp.com/advanced-php-programming/)
-   -   PM system notify NEW PM (http://www.talkphp.com/advanced-php-programming/4871-pm-system-notify-new-pm.html)

tearsofthesun 08-19-2009 09:46 AM

PM system notify NEW PM
 
Functions for unread PM. i found a tutorial on the web for my PM system. the only problem is it doesn't notify my users whenever they have New Pm. can someone give me a function they use? something like this site here is really nice.

Tanax 08-19-2009 10:08 AM

At the same time you're inserting the PM that is being sent, into the DB, just run a function that notifies the affected user. It's really quite simple. Depends just how you want to notify, via email is very simple. Via the website is a bit harder, but still quite easy.

tearsofthesun 08-19-2009 10:09 AM

Do you know where i can find a tutorial on this? or a script. thanks for the reply!

Village Idiot 08-19-2009 03:04 PM

Quote:

Originally Posted by tearsofthesun (Post 27909)
Do you know where i can find a tutorial on this? or a script. thanks for the reply!

Look into cron jobs.

Tanax 08-19-2009 03:13 PM

Quote:

Originally Posted by Village Idiot (Post 27937)
Look into cron jobs.

He doesn't need crons for this. He can just store notifications in a table, and when he inserts a new PM into the db, he inserts a new notification. On all pages he then fetches the user's notifications and alerts them.


All times are GMT. The time now is 12:41 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0