• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 conversation Unread

netkingZ

Active member
#1
Hello ,
in the model/template how can check if a conversation has been accessed or not?
I would like to create an alert that notifies the user that a call has not yet read.
I found the variable $conversationsUnread and tried to use it so it does not work:

Code:
    <xen:if is="{$conversationsUnread}">
                MESSAGE CONVERSATION UNREAD
            </xen:if>
            <xen:if is="{$conversationsRead}">
              MESSAGE CONVERSATION READ
            </xen:if>
any suggestions?
 

Jake Bunce

XenForo moderator
Staff member
#2
Code:
<xen:if is="{$visitor.conversations_unread}">
	MESSAGE CONVERSATION UNREAD
</xen:if>
That is true if the current logged in user has at least 1 unread PM.