We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19741
    • 90 Posts
    You have to wait a little, till your new (yesterday "posted") gravatar will be shown on any site. My gravatar needed 3 or 4 days.
      Bye,
      Mithrandir
      • 17717
      • 433 Posts
      I am having problems displaying the admin’s image, it doesn’t seem to default to the no-image file, it display nothing. I am wondering if it would be possible to hardcode an admin image?

      Thanks
      Lee
        http://www.blend.uk.com | Web Design by Blend
        • 19741
        • 90 Posts
        Hi,

        what’s the meaning of "admin’s image"? If your image is quite "fresh", you have to wait a little (gravatar site needs some time).
          Bye,
          Mithrandir
          • 17717
          • 433 Posts
          Hi there,

          The default image seems to show fine, just not if a manager posts a comment. Its probably how I have the thing set up with jot, but basically, the default gravatar only shows up if a. the user enters an email address when posting and b. if they are not a manager.

          Thanks
          Lee
            http://www.blend.uk.com | Web Design by Blend
            • 19741
            • 90 Posts
            Sorry, i think i misunderstood your question (and changed my previous posting).

            If the admins/manager don’t save any mailaddress in the form, you should pass their name to the snippet? Maybe you can change the snippet in this way: If output==’admins name’ then take hash of his/her mailaddress ...


            I’ll have a look into the snippet in two weeks or more (don’t have much time now).
              Bye,
              Mithrandir
              • 17717
              • 433 Posts
              Sounds like a plan, not too confident about changing the snippet, not sure which bits, don’t suppose you could show me which specific bits need changing, sorry, I know I’m being a complete pain here.

              Thanks
              Lee
                http://www.blend.uk.com | Web Design by Blend
                • 33337
                • 3,975 Posts
                Please check if you have right email address in your admin account? .. the first account you create while installing MODx, it goes with email "builtin admin account" or something like that. Make sure you corrected it.
                  Zaigham R - MODX Professional | Skype | Email | Twitter

                  Digging the interwebs for #MODX gems and bringing it to you. modx.link
                  • 17717
                  • 433 Posts
                  Thanks, yes, there is an email in there for the manager. I am using the snippet in conjunction with the Jot snippet, which in turn is being used with Maxigallery, so somewhere along the line its going astray. I’ll post the bits and pieces when I get my head round where items are being pulled in from.

                  Lee
                    http://www.blend.uk.com | Web Design by Blend
                    • 17717
                    • 433 Posts
                    Its working great for guests, but for users logged in such as administrators, there is no avatar at all, it doesn’t seem to pull in the default no-image avatar.

                    Not sure if this might have something to do with how I am calling the snippet from other snippet templates (such as jot), but here is where I am at the minute.

                    Call within sites blog template:

                    <div id="commentcontainer">
                    <a name="commentsAnchor"></a>
                    <h3>Comments</h3>
                    
                    [[Jot? &placeholders=`1` &customfields=`name,email,website,gravatar` &output=`0` &subscribe=`1` &moderated=`0` &notify=`2` &canmoderate=`Site Admins` &validate=`email,name` ]]
                    
                    [+jot.html.moderate+]
                    [+jot.html.comments+]
                    [+jot.html.form+]
                    [+comment.custom.email:is=``:then=``:else=`[+comment.custom.email:gravatar+]`+]
                    </div>


                    Here is the specific section of code within jot’s chunk.comment.inc.html template:

                    <div class="jot-user">
                    			 		 
                    <!-- this is the posters details, such as name -->
                    <a href="[+comment.custom.website+]">
                    [+comment.custom.email:is=``:then=``:else=`[+comment.custom.email:gravatar+]`+]
                    </a>
                    					[+comment.createdby:isnt=`0`:then=`<strong>`+][+comment.createdby:userinfo=`username`:ifempty=`[+comment.custom.name:ifempty=`[+jot.guestname+]`:esc+]`+][+comment.createdby:isnt=`0`:then=`</strong>`+]
                    <span class="date">[+comment.createdon:date=`%a %B %d, %Y, %H:%M:%S`+]</span>
                    
                    </div> <!-- end .jot-user -->


                    Can anybody see why its not pulling in an image for the administrator? Even better would be a solution for manually adding an image for the administrator when he/she posts, that way its not relying on Gravatar, which seems to be playing up at the minute.

                    Thanks
                    Lee
                      http://www.blend.uk.com | Web Design by Blend
                      • 25547
                      • 61 Posts
                      can someone give me a basic example?

                      Im stuck  embarrassed

                      EDIT: no im not!

                      Sorted!

                      Try it out at http://game4free.co.uk and comment on any game