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 help

November 21, 2008 1:56am

Subscribe [2]
  • #1 / Nov 21, 2008 1:56am

    michael Short

    50 posts

    Hey all,

    just a quick question.

    I have set up my blog to enable gravatars.  but somthing I would like to do is give people an avatar that Ive designed if they haven’t got a gravatar set up.  so far my code looks like this:

    <div class="comment">
                        {exp:comment:entries sort="asc" limit="20"}
                            <div class="comment-meta">
                                <h3 class="floatleft" class="comment-name">{name} Said: </h3> <h3 class="floatright"> {comment_date format="%d %M"}</h3>
                                <div class="clear"</div>
                            </div>
    {if email != "[email protected]"}
    {exp:gravatar email=
    {/if}
    
    {if email == "[email protected]"}
    <a href="http://michael-short.net/images/uploads/me.gif">http://michael-short.net/images/uploads/me.gif</a>
    {/if}                   
                            {comment}

    what would I need to add?  thanks in advance

  • #2 / Nov 21, 2008 5:06am

    Simon Job

    123 posts

    In the {exp:gravatar ... } tag add

    default="http://path.to.your/images/default.gif"
  • #3 / Nov 21, 2008 5:30am

    michael Short

    50 posts

    ok thanks

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

ExpressionEngine News!

#eecms, #events, #releases