bbPress

Simple, fast, elegant

bbPress Plugin Browser »

Bavatars (0.4.1)

Download

Version: 0.4.1

Other Versions

Last Updated: 2009-8-21

Requires bbPress Version: 0.9 or higher

Compatible up to: trunk

Author Homepage »

Plugin Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(10)

Your Rating

Author: Nightgunner5

Tags: ,

  1. vikram_gripsack, try using the development version.

    Posted: 9 months ago #
  2. I'm getting the same error message as uno25 and vikram_gripsack. Where do I find the development version to try that? Thanks.

    Posted: 9 months ago #
  3. Friedl82

    Member

    Hello Nightgunner,

    I use your plugin (version 0.4) on a site with "deep integration" with wordpress ("require_once('path/to/wp-blog-header.php');" in bbPress’ bb-config.php). When I activate the WP part of the plugin, my forum page will be blank. I think the problem is, that both plugins use the function "bavatars_filter". I changed the function in bbPress' plugin file to "bb_bavatars_filter" and now this works for me.
    Would be nice when you could fix this.

    Posted: 8 months ago #
  4. is there any way to get the avatars to be bigger? ... they're shown in 48x48 pixels on the posts though bigger versions are created in the /avatars folder

    PS: I'm using bechet 1.0.1

    Posted: 8 months ago #
  5. ziggy101

    Member

    Am I missing something?

    What do I have to install in the template files to show the avatar?

    Posted: 7 months ago #
  6. What is wrong with Gravatars?

    or is this a case of re-inventing the wheel. !!!

    Posted: 7 months ago #
  7. Tomcraft1980

    Member

    Unfortunately doesn't work for me with bbpress 1.02.
    The plugin says that the avatar was uploaded successfully, but it doesnt't show!
    Are there any hidden tags I need to add to my template to show the avatars?

    Ans suggestions?

    Kind regards

    Tom

    Posted: 7 months ago #
  8. britbomber: In your post.php template, there will be a call to post_author_avatar, like post_author_avatar();. Add the number of pixels you want it to be in between the parentheses.

    DavyB: Bavatars are for the people who want to be able to upload their avatar directly to the forum.

    ziggy101 and Tomcraft1980: If Gravatars show up on your forum, then Bavatars will be able to override them. Add <?php post_author_avatar(); ?> to your post.php template where you want the avatars to show up.

    Posted: 7 months ago #
  9. Tomcraft1980

    Member

    THX! Is it also possible to show the avatars in the profile?

    What do I have to add to profile.php?

    Kind regards

    Tom

    Posted: 6 months ago #
  10. Tomcraft1980: Try the following:

    <?php if ( $avatar = bb_get_avatar( $user->ID ) ) : ?>
    <div id="useravatar"><?php echo $avatar; ?></div>
    <?php unset($avatar); endif; ?>
    Posted: 6 months ago #
  11. Tomcraft1980

    Member

    Doesn't work for me.

    Neither <?php post_author_avatar(); ?> nor <?php if ( $avatar = bb_get_avatar( $user->ID ) ) : ?>
    Gravatars don't show up and after uploading an image manually, the image also doesn' show up.

    any ideas?

    kind regards

    Tom

    Posted: 6 months ago #
  12. bart74

    Member

    Hi Nightgunner5.

    Thank you for the amazing work that you put into bbPress, but I get a strange error when I want to activate it:

    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/vhosts/primerplato.nl/subdomains/forum/httpdocs/my-plugins/bavatars/bavatars.php on line 47

    Do you know what's wrong with it?

    Thanks,
    Bart

    Posted: 6 months ago #
  13. bart74: Replace line 47 ($id = bb_get_user( $id_or_email, array( 'by' => 'email' ) )->ID;) with $id = bb_get_user( $id_or_email, array( 'by' => 'email' ) ); $id = $id->ID;

    Posted: 6 months ago #
  14. this work!

    Posted: 5 months ago #
  15. galvanmaria

    Member

    Hello,

    I am having the same problem that Tomcraft1980 is having. I installed the plugin, put the copy in the wp side due to the integration and when I try to upload a picture it says is has been successfully uploaded but it doesn't show anywhere.

    Thanks

    Posted: 5 months ago #
  16. galvanmaria: If your site isn't set up to display Gravatars, it won't display Bavatars. Try adding <?php post_author_avatar_link(); ?> to your post.php template.

    Posted: 5 months ago #
  17. Finally, an avatar plugin that works! Thanks Nightgunner5!

    Posted: 5 months ago #
  18. Il Gatto

    Member

    First of all, I think this is a very useful and well done plugin for bbpress. Thank you for coding it. I have a problem with wordpress integration, however.

    1. my bbPress (1.0.2) and my Wordpress (2.8.4) installations are integrated
    2. Wordpress is in the root (www.domain.com), forum is in a subdomain (forum.domain.com)
    3. I installed correctly bavatars.php plugin in bbPress and it works very well there
    4. I edited the bavatars-wp.php plugin with paths to forum installation ('/' in my case)
    5. I copied the bavatars-wp.php in the Wordpress plugin folder and activated it

    Activation went fine both in bbpress and wordpress, but if an user uploads a bavatar in BBpress, in Wordpress you see no avatar, only the default "mistery man" avatar (I have gravatars enabled in Wordpress of course, changing this doesn't change the result).

    Therefore, something is wrong with wordpress-bbpress integration part of this plugin.

    How to display the same avatars both in bbpress and wordpress?

    thank you!

    Posted: 5 months ago #
  19. Il Gatto: Your path is not /. For example, the path might be /home/username/htdocs/public_html/forums/

    Posted: 5 months ago #
  20. Il Gatto

    Member

    for further information:

    this is what my bavatar.php code looks like:

    define( 'BAVATARS_BBPRESS_URI', 'http://forum.domain.com' ); // The full address of the front page of your forum.
    define( 'BAVATARS_BBPRESS_PATH', '/' ); // The full path to your bbPress installation.<br />

    I tried also replacing 'http://forum.domain.com'with 'http://forum.domain.com/', neither of the above worked
    and for the full path using an empty space ' '
    I also tried with correcting line#64 of the original code:

    return '<img alt="' . $alt . '" src="' . trailingslashit( BAVATARS_BBPRESS_URI ) . $location . '" class="avatar avatar-' . $size . ' avatar-bavatar" style="height:' . $size . 'px; width:' . $size . 'px;" />';

    in the original code there was a img" which didn't make sense and some user in this thread suggested to remove it

    Posted: 5 months ago #

RSS feed for this topic

Add a Comment »

You must log in to post.

Code is Poetry.