ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Gravatar not working, my code?

September 05, 2007 3:12am

Subscribe [0]
  • #1 / Sep 05, 2007 3:12am

    qman

    30 posts

    My gravatars aren’t working and I’m puzzled as to why. I’m using the same gravatar plugin for EE as everyone else (found here http://expressionengine.com/downloads/details/ee_gravatar/). It’s enabled. See how they don’t work here: http://www.tickerville.com/index.php/site/comments/play_the_position_not_the_pl/ ... I tested quint’s gravatar on other sites and it works great. Here’s my code, is there something I’m doing wrong? Currently the default image is the one showing up. The image url that my page generates is different from the image url

    {if avatar}
    {avatar_url}
    {if:else}
    {exp:gravatar size=
    {/if}

    Mod Edit: Moved to the How To forum.

  • #2 / Sep 05, 2007 4:01am

    qman

    30 posts

    Figured it out, this code worked:

    {if avatar}
    {avatar_url}
    {if:else}
    {exp:gravatar size=
    {/if}

    (brought email inside the img tag)

  • #3 / Sep 05, 2007 10:44am

    Robin Sowell

    13255 posts

    Woot!  Glad you got it working- I’d have thought it needed the full complex conditional syntax:

    {if avatar != ""}
    {avatar_url}
    {if:else}
    {exp:gravatar size=
    {/if}
  • #4 / Feb 15, 2008 4:07pm

    woodlander

    33 posts

    How could you make the avatar/gravatar link back to the url provided, using the code above?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases