question about the system pm

Posted on Saturday 2nd August 2008 at 08:22 PM
schorsch
schorsch's Avatar
how can I do if a user is logged out what's new pm he has logged so if he is to be because you are 5 new news how can I do?
Posted on Saturday 2nd August 2008 at 11:34 PM
Adam981
Adam981's Avatar
HUH?! try to explain alittle better please so we can help :)
Posted on Sunday 3rd August 2008 at 09:10 AM
schorsch
schorsch's Avatar
Inbox (0)



new mail wenn user is logget in
Posted on Monday 4th August 2008 at 03:00 PM
schorsch
schorsch's Avatar
Adam981 ??? can you help me?
Posted on Saturday 9th August 2008 at 01:34 PM
schorsch
schorsch's Avatar
Adam981 ???
Posted on Saturday 9th August 2008 at 04:33 PM
Diablosblizz
Diablosblizz's Avatar
Try explaining a bit better. We cannot understand you.
Posted on Saturday 9th August 2008 at 07:11 PM
schorsch
schorsch's Avatar
I would have if a user logged, it is the message you get 5 new pm's or you 2neue's pm depending on how much he's new pm!


so Inbox (5) <<<
Posted on Sunday 10th August 2008 at 08:27 AM
UrbanTwitch
UrbanTwitch's Avatar
Oh. So if the user has 1 or more PMs in their inbox. Make it attract attention; like red text? Right?

PHP Code
  1. PUT HTML/MEMBER STUFF";
  2. $getnew = mysql_query("SELECT * FROM `privates` WHERE `status` = 'Unread' AND `to` = '$logged[username]';");
  3. $total = mysql_num_rows($getnew);
  4. $select = mysql_query("SELECT * FROM `privates` WHERE `status` = 'Unread' AND `to` = '$logged[username]' ORDER BY `to` ASC LIMIT 0 , 30");
  5. $array = mysql_fetch_array($select);
  6. $amount = mysql_num_rows($select);
  7.  
  8. if($amount >= 1) {
  9. echo "<ol><li><a style='color:red' href='https://sodadome.com/inbox.php'>($total) New Message</a></li>";
  10. } else {
  11. echo "<li><a href='https://sodadome.com/inbox.php'>($total) New Messages</a></li>";
  12. }
  13. echo "


Enjoy.
Posted on Sunday 10th August 2008 at 08:28 AM
UrbanTwitch
UrbanTwitch's Avatar
Also, you can edit the links like sodadome.com, etc and edit the text to your liking. :)
Posted on Sunday 10th August 2008 at 09:31 AM
schorsch
schorsch's Avatar
thx!




many thanks as I wanted to have it!
Login or register to respond to this forum topic.