Gravetars: ???? GRRRRR!
-
I just signed up for Gravetars, and I’m not seeing them display on this site (wp forums…..and I signed up yesterday for gravetar)
I’m also not seeing them display on my own personal site, even though I uploaded the widget?
I clicked Activate, and yet see nothing different on my site. So I read the “Usage” and changed some of the terms but perhaps I’m not doing it correctly….or putting it into the right place?
Has anyone done this already, could you show me the code and where I need to put it, I’m just getting lost in the Usage instructions.
Like is this what I need to put in
<?php gravatar(“G”, 80); ?>
if I want it rated G and 80 x 80 pixels. But where in the code do I put it in? Sorry to be so dense, but I’ve just been trying to insert it in various places and nothing seems to get it working. My blog site is here https://www.christianpreschoolprintables.com/blog1 and you can see that it’s not working? Anyone know what I need to do?
Thanks,
Valerie
This is the code in the Gravetar.php file
<?php
/*
Plugin Name: Gravatar
Plugin URI: https://www.gravatar.com/implement.php#section_2_2
Description: This plugin allows you to generate a gravatar URL complete with rating, size, default, and border options. See the documentation for syntax and usage.
Version: 1.1
Author: Tom Werner
Author URI: https://www.mojombo.com/CHANGES
2004-11-14 Fixed URL ampersand XHTML encoding issue by updating to use proper entity
*/function gravatar($rating = false, $size = calse, $default = false, $border = false) {
global $comment;
$out = “https://www.gravatar.com/avatar.php?gravatar_id=”.md5($comment->comment_author_email);
if($rating && $rating != ”)
$out .= “&rating=”.$rating;
if($size && $size != ”)
$out .=”&size=”.$size;
if($default && $default != ”)
$out .= “&default=”.urlencode($default);
if($border && $border != ”)
$out .= “&border=”.$border;
echo $out;
}?>
- The topic ‘Gravetars: ???? GRRRRR!’ is closed to new replies.