Jump to content
MakeWebGames

Recommended Posts

Posted

This very small addition will let the sender of a message know if the person they have sent it to has read their mail or not.

look for the function mail_outbox and find this part $sent=date('F j, Y, g:i:s a',$r['mail_time']);

below it add

$status = ($r['mail_read'] == 0) ? "<font color=red>Unread</font>" : "<font color=green>Read</font>";

add a new bit to the end of the table statement so it reads <th>Status</th>

Now on the print statement that has the <a href='viewuser.php?u={$r['userid']}'>

add this to the near end <td>$status</td>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...