We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25315
    • 68 Posts
    Hi guys.

    I’m going through the tutorial in the docs on creating a blog with revo.
    I’m encountering a few difficulties - one of which is disabling the avatars in quipreply.

    The snippet I’m using is from the tutorial:
    [[!QuipReply?  
           &thread=`blog-post-[[*id]]`  
           &notifyEmails=`[email protected]`  
           &moderate=`1`  
           &moderatorGroup=`Moderators`  
           &closeAfter=`30`  
        ]] 
    



    Looking at the docs for quipreply, it appears that avatars are a default feature that can be turned off. So I’ve modified the snippet to:
    [[!QuipReply?
           &thread=`blog-post-[[*id]]`
           &notifyEmails=`[email protected]`
           &moderate=`1`
           &moderatorGroup=`Moderators`
           &closeAfter=`30`
           &useGravatar=`0`
        ]]
    


    After saving the template and clearing the cache, the avatar still appears.
    What could be happening here?
    How do I get rid of this annoying feature?
      • 17499 ☆ A M B ☆
      • 872 Posts
      You can do it without touching the php code or adding any additional parameter by just removing the html code and pladeholders for the avatar from you comment chunk.
        • 25315
        • 68 Posts
        Following the tutorial, the only chunk I’ve created is ’blogPost’, which I’ve just copied from the tutorial.
        http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution#CreatingaBloginMODxRevolution-Conclusion

        I can’t see any placeholders in ’bloghost’ for the avatar.

        Looking at the docs for the quip-related snippets, it seems that they have their own chunks. But I can’t find them.


          • 36592
          • 970 Posts
          You have to add "&useGravatar=`0`" to your Quip snippet call (Not to QuipReply snippet).
            • 25315
            • 68 Posts
            Thanks.

            I’ll adjust the snippet parameters.
              • 17499 ☆ A M B ☆
              • 872 Posts
              The default Chunk is the following:

              <li class="[[+cls]]" id="[[+idprefix]][[+id]]" [[+depth_margin:notempty=`style="padding-left: [[+depth_margin]]px"`]]>
              <div id="[[+idprefix]][[+id]]-div" class="quip-comment-body [[+alt]]">
                  <div class="quip-comment-right">
                      [[+md5email:notempty=`<img src="http://www.gravatar.com/avatar/[[+md5email]]?s=[[+gravatarSize]]&d=[[+gravatarIcon]]" class="quip-avatar" />`]]
                  </div>
              
                  <p class="quip-comment-meta">
                      <span class="quip-comment-author">[[+authorName]]:</span><br />
                      <span class="quip-comment-createdon"><a href="[[+url]]">[[+createdon]]</a>
                      [[+approved:if=`[[+approved]]`:is=`1`:then=``:else=`- <em>[[%quip.unapproved? &namespace=`quip` &topic=`default`]]</em>`]]
                      </span>
                  </p>
              
                  <div class="quip-comment-text">
                      <p>[[+body]]</p>
              
                      [[+replyUrl:notempty=`<p><span class="quip-reply-link"><a href="[[+replyUrl]]">[[%quip.reply? &namespace=`quip` &topic=`default`]]</a></span></p>`]]
                  </div>
              
                  <div class="quip-comment-options">
                      [[+report]]
                      [[+options]]
                  </div>
              </div>
                  [[+children:notempty=`<ol class="quip-comment-list">[[+children]]</ol>`]]
              </li>
              
              


              Just put out this part:

              <div class="quip-comment-right">
                      [[+md5email:notempty=`<img src="http://www.gravatar.com/avatar/[[+md5email]]?s=[[+gravatarSize]]&d=[[+gravatarIcon]]" class="quip-avatar" />`]]
                  </div>
              
              


              You’ll probably to adjust your CSS accordingly.