No problem, simply download this file and upload it to the root of your bbPress installation.
Next, we need to add some code to topic.php located in /bb-templates/topic.php, NOT topic.php located in your bbPress root. So once you have /bb-templates/topic.php open follow these easy steps:
<?php require_once('./bb-hacks.php'); ?> at the top of topic.php just below <?php get_header(); ?>.<php cjd_gravatar(); ?> in that spot.That’s it people. Save topic.php and upload it to your server, remembering it goes in /bb-templates/, not bbPress root and when you load your bbPress install you will magically have gravatars for each of your posters that have an account.
Stroll on over and visit Zeke
March 1, 2007
Doesn’t seem to work, cap’tain. I think it might have something to do with the bit of code that displays posters, being in a seperate .php from topic.php?
Stroll on over and visit Chris J. Davis
March 1, 2007
Prolly cause I wrote this over a year ago, and there has been a lot of changes in bbPress since then.
Stroll on over and visit Zeke
March 1, 2007
Any chance you’re interesting in refreshing it? A friend and I have mucked around with no success.
Stroll on over and visit Chris J. Davis
March 1, 2007
Sure, I think I could do that. I don’t know if I will be able to do that this week (I am on vacation in GA currently) but at the latest first thing next week I could look into it.
Stroll on over and visit Alex
May 10, 2007
I second the re-write. Have been looking for this function for a while.
Stroll on over and visit Alex
May 10, 2007
Wow. Is that avatar on my post pointing to me? Or is it because gravatar just isn’t working.
Leave a Reply