Oct 31 |
This plug-in enables the Sterling Adventures bbPress forum (News) to use the avatars from the blog (Adventures). It isn’t an elaborate plug-in, but I am fairly proud of it, if only because it only took 30 minutes to write. So, I think it is worth sharing…
The plug-in is available as a download here.
All I ask is that you leave your greeting card here (i.e. leave a comment
) and credit the plug-in (i.e. include a link to this page) on your site.
Because of some demand, please feel free to make a donation here if you find the code valuable!
Thanks!
Instructions:
- Just put the plug-in into your ‘my-plugins’ directory (if this doesn’t make sense it probably isn’t something you should be trying
) and activate it. - Then include the following (or similar) code where you want the avatar to show. An example
posts.phptemplate file is included in the download.
<?php
if(function_exists('pws_get_avatar')) pws_get_avatar();
?>
But please note I may have to ask for a donation before I’ll look at “how to” questions…


4 Responses to ““Use Avatar” bbPress plug-in”
Thursday, January 24th, 2008 at 10:46 am
Hiya,
after implementing the code into post.php (MistyMorning theme) I get the gravatar shown, but before it there is this error msg:
bbPress database error: [Table 'xyz.wp_options' doesn't exist]select option_value from wp_options where option_name = ‘gravatar_local’ limit 1
any idea how to fix that? Id really appreciate it
thanks in advance,
Georg
Thursday, January 24th, 2008 at 11:44 am
I solved it.
The plugin doesn’t recognize when the local wordpress blog is from a Wordpress MultiUser installation. Since WP MU does not have a wp_options mysql table, but numbers it like wp_x_options, the plugin simply didnt find it. Other plugins work, they seem to find it, but here it seems to be hardcoded. I changed the prefix in the plugin php, now it works for me (but it wouldnt work with a second blog, since this would have wp_2_options…).
Maybe this could be fixed, so this plugin would be fully compatible to WP MU?
Thursday, January 24th, 2008 at 6:02 pm
Georg, thanks for your comments - I didn’t design the plug-in for WP MU, sorry. I’m glad you managed to sort it though!
Thursday, February 21st, 2008 at 1:55 pm
Therefore, this thread is closed to comments now. If you do have comments on this plug-in, please use the feedback link below.