Can't get Gravatars to show with my theme

Discussion in 'WordPress' started by Steupz, May 6, 2008.

  1. #1
    Has anyone had this problem? I am using Wwordpress 2.5 and when I click show Gravatars, I get nothing, but when I switch to the default Wordpress theme; it works
     
    Steupz, May 6, 2008 IP
  2. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Make sure your theme can support them. Look for the

    <?php echo get_avatar(); ?>
    Code (markup):
    call in your comments.php.
     
    mizaks, May 6, 2008 IP
  3. Steupz

    Steupz Peon

    Messages:
    917
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ok mate...if it's not there, where do I add it, and is that all I need to add?

    Thanks or your reply.
     
    Steupz, May 6, 2008 IP
  4. Steupz

    Steupz Peon

    Messages:
    917
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    well it's not there, drats.
     
    Steupz, May 6, 2008 IP
  5. godsofchaos

    godsofchaos Peon

    Messages:
    2,595
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hmmm... Simply add that function where you want your gravatar to appear, left or right. It should work then, to make it appear left or right simply edit the float option in your gravatar's css.
     
    godsofchaos, May 6, 2008 IP
  6. Steupz

    Steupz Peon

    Messages:
    917
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yes, I did, but now I have a bigger issue, I tried adding code to my functions php and it showed an error; when I deleted it and tried to view my blog, I am getting this error

    Parse error: parse error, unexpected T_ENDIF in /home/content/s/t/e/steupz/html/wordpress/wp-content/themes/color_biz/functions.php on line 17

    And my site is inaccessible.

    What can I do to fix it?
     
    Steupz, May 6, 2008 IP
  7. godsofchaos

    godsofchaos Peon

    Messages:
    2,595
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You have deleted some other lines when deleting the function, undo and delete it manually without messing with the paragraphs or other codes. In extreme case, delete the gravatar plugin and install it again.
     
    godsofchaos, May 6, 2008 IP
  8. Steupz

    Steupz Peon

    Messages:
    917
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Never mind I used FTP and edited the functions.php file.

    Right, so how do I get these gravatars to work?
     
    Steupz, May 6, 2008 IP
  9. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Can you post the site where you've gotten the code from? I know they moved to Gravatars 2 awhile back, and I think it was available on a separate site.
     
    Pixelrage, May 6, 2008 IP
  10. Steupz

    Steupz Peon

    Messages:
    917
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I'll have to search mate, it was posted on the Wwordpress forum by a moderator
     
    Steupz, May 6, 2008 IP
  11. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #11
    You don't need to edit functions.php. You need to add that line of code in your comments.php. Experiment with the placement, just don't overwrite any exiting code!
     
    mizaks, May 6, 2008 IP
  12. Steupz

    Steupz Peon

    Messages:
    917
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Thanks mizaks, I've added it in about ten different places and I'm seeing the gravatar image, but I am also getting an error message.

    Is there a favored place to add the line, you can recommend?
     
    Steupz, May 6, 2008 IP
  13. godsofchaos

    godsofchaos Peon

    Messages:
    2,595
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Use it just above where the php do comment function exists, provided you fixed the css first it should work smoothly.
     
    godsofchaos, May 7, 2008 IP
  14. Steupz

    Steupz Peon

    Messages:
    917
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I'm afraid you'll have to break it down for me...or anyone else who can, please.

    What do I have to add to the css?
    And what is the php do comment function?
     
    Steupz, May 7, 2008 IP