Support » Plugins » Gravatar.com Implementation Help

  • diabolus

    (@diabolus)



    Hello everyone,

    I am trying to get gravatar working on my blog, so that any users posting comments who have a gravatar associated with their email address, will have their picture posted along with their comment.

    I have downloaded the gravatar plugin for wordpress, from this site and installed it successfully.

    http://site.gravatar.com/site/implement#section_2_2

    In the implementation section it gives examples of HTML to add in order to use the plugin… But I’m not sure -where- this code is supposed to be added.

    I used wordpress 2.2.2 with GlossyBlue 1.4 theme. In the comments.php I put the code like this:

    <img src=”<?php gravatar(“G”, “R”, “PG”, 80, ); ?/>” alt=”Author comment” align=”right” width=”80″ height=”80″ />

    after :

    <?php foreach ($comments as $comment) : ?>

    and before :

    <li class=”<?php echo $oddcomment; ?>” id=”comment-<?php comment_ID() ?>”>

    So, my comment.php look like this:

    <?php foreach ($comments as $comment) : ?>

    <img src=”<?php gravatar(“G”, “R”, “PG”, 80, ); ?/>” alt=”Author comment” align=”right” width=”80″ height=”80″ />

    <li class=”<?php echo $oddcomment; ?>” id=”comment-<?php comment_ID() ?>”>

    But i get error:

    Parse error: syntax error, unexpected ‘?’ in /home/glossyblue-1-4/public_html/wp-content/themes/aufklarung/comments.php on line 23

    Please give help

  • The topic ‘Gravatar.com Implementation Help’ is closed to new replies.