Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums How To How To integrate Gravatar
HamzaDesign
Posted on 03 Jan 2012, 14:24:42

Access: Member
Total Posts: 7
Joined: 2011-12-31

Is there a posibility to integrate gravatar in comments ??? and thank you in advance best script thank you chris

#3674
Last edited by HamzaDesign at 2012-01-03 21:01:42 Reason: fault in the title
Chris
Posted on 03 Jan 2012, 15:10:54

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Integrating Gravatar looks fairly straight forward, you can do so by making a small change to your functions.php file, around line 884~ you'll see this code

$str = str_replace("{email}",$email2,$str);

If you add the following line above it

$str = str_replace("{emailhash}", md5($row['email']), $str);
$str = str_replace("{email}",$email2,$str);

Then edit your Template and add the following to the Comments section

<img src="http://www.gravatar.com/avatar/{emailhash}.jpg" />

Now comments should have a Gravatar image.

#3675
Last edited by Chris at 2012-01-03 15:14:36 Reason: .
HamzaDesign
Posted on 03 Jan 2012, 21:01:42

Access: Member
Total Posts: 7
Joined: 2011-12-31

Thank You :D

#3676
Network-13.com © 2013