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

XF 1.3 Show quote from ignored user

Discussion in 'Styling and Customization Questions' started by Case, Aug 21, 2014.

  1. Case

    Case Active Member

    Currently the ignore system adds the 'ignored' class to the message blockquote and through css, this is then hidden.

    I'd like to leave an indication (not the whole original message) that a message is in response to a quote from an ignored user though.

    So this is the code currently...

    Code:
    <blockquote class="messageText ugc baseHtml{xen:if $message.isIgnored, ' ignored'}">
    <xen:include template="ad_message_body" />
       {xen:raw $message.messageHtml}
    </blockquote>
    
    So if the message/quote is from an ignored user, the whole blockquote is hidden.

    I thought I could do something like...

    Code:
    <blockquote class="messageText ugc baseHtml">
      <xen:include template="ad_message_body" />
      <xen:if is="{$message.isIgnored}">
         You are ignoring content by this member
      <xen:else />
         {xen:raw $message.messageHtml}
      </xen:if>
    </blockquote>
    
    That doesn't seem to have any effect though. Any ideas?

    Thanks
     
    Last edited: Aug 21, 2014

Share This Page