This repository was archived by the owner on Apr 27, 2023. It is now read-only.
intoeetive/is_message_read
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Check whether PM in 'sent' folder is read by recipient.
Parameters (use one of them):
message_id - ID of private messsage (provided by Friends module as {friends_message_id})
copy_id - ID of PM copy in 'sent' folder (provided by Messaging module as {message_id})
Returns tagdata if message is read, and no results if it's not read yet.
{exp:messaging:private_messages folder="sent"}
{exp:is_message_read:check copy_id="{message_id}"}
{if no_results}
<div class="unread">
{/if}
<div class="read">
{/exp:is_message_read:check}
{subject}</div>
{/exp:messaging:private_messages}