[Plugin:Genki Youtube Comments] Pull Youtube Avatar to Comments
-
I would like to pull avatar of user in youtube to my blog as well
I checked the forum of the plugin page and come up with, but I am not sure how to put this at work.
If anyone’s interested, I edited my comments.php template so that the YouTube comments display a YouTube image for the avatar. Here’s the code…
Note: I had to remove at the beginning and end as well as before before img and the closing tag of img so that you could see the code in this response.
<?php if ($comment->comment_author_email == “api@youtube.com”) echo <img style=”height:40px; width:40px” src=”http://s.ytimg.com/yt/img/creators_corner/YouTube/40x40_yt_white.png” />; else echo get_avatar( $comment, 40 ); ?>
- The topic ‘[Plugin:Genki Youtube Comments] Pull Youtube Avatar to Comments’ is closed to new replies.