1. 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

Discussion in 'Styling and Customization Questions' started by netkingZ, Feb 25, 2014.

  1. netkingZ

    netkingZ Active Member

    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?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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.
     
  3. netkingZ

    netkingZ Active Member

    Thanks you Jake.
     

Share This Page