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
(15)

Your Rating

Author: Nightgunner5


  1. Il Gatto

    Member

    OK I changed the path of '/' with

    '/webspace/httpdocs/domain/forum'

    which is what I see from my FTP client... tried also with 'httpdocs/domain/forum/' or /domain/forum/

    none of these worked... is there any workaround to let the wordpress plugin fetch the avatars folder in the forum installation in another way?

    Posted: 2 years ago #
  2. Il Gatto

    Member

    ahh it finally worked... it was tricky for me to get the right path
    perhaps for the average user is difficult to get it, in future revion of this wonderful plugin I advice to simplify the setup process for wp/bb integration

    and thanks for your quick answer! :-)

    cheers from Italy

    Posted: 2 years ago #
  3. tobiisagoodboy

    Member

    Warning: imagepng() [function.imagepng]: Unable to open 'C:\Inetpub\vhosts\segmentnext.com\httpdocs\Ali\bbpress/avatars/c/c4/c4c/c4ca4238a0b923820dcc509a6f75849b.png' for writing: No such file or directory in C:\Inetpub\vhosts\segmentnext.com\httpdocs\Ali\bbpress\my-plugins\bavatars\bavatars-profile.php on line 42

    Any solution to this problem?

    Posted: 2 years ago #
  4. tobiisagoodboy

    Member

    how can u adjust length and width of the avatar?

    Posted: 2 years ago #
  5. tobiisagoodboy: Try disabling and re-enabling Bavatars with your bbpress folder permissions set to 777. Then, change the permissions back to 755.

    tobiisagoodboy: Where it says post_author_avatar_link() or post_author_avatar_link() in your post.php template, add a number between the parentheses.

    Posted: 2 years ago #
  6. tobiisagoodboy

    Member

    Adding number to the given place isn't helping :(

    Posted: 2 years ago #
  7. jimgozieo

    Member

    Is there an "approve bavatar" facility?
    What I mean is, is there a facilty to ensure that the bavatar does not appear on my forum until it has been seen and approved by my admin. So it would be in the queue pending approval by my admin, and the bavatar would not display on my forum until my admin have approved it.
    Does it have that facility? And if not, do you know of any bavatar/gravatar plugin that does have that facility?

    Posted: 2 years ago #
  8. Tomcraft1980

    Member

    There seems to be a problem with the wordpress syncing.

    Is there anything that needs to be done for this to work?

    kind regards

    Tom

    Posted: 2 years ago #
  9. Tomcraft1980

    Member

    Got it, lin 65 in bavatars-wp.php needs to be fixed:

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

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

    kind regards

    Tom

    Posted: 2 years ago #
  10. rh3sus

    Member

    Thanks Tomcraft, your fix worked for me.

    Posted: 2 years ago #
  11. The plugin works for me in BBpress, but not in my WordPress comments. It shows the gravatars. How to replace the Gravatars by the user-uploaded ones?

    Posted: 2 years ago #
  12. holysjit: What do you have for lines 11 and 12 of your bavatars-wp.php?

    By default, it's

    define( 'BAVATARS_BBPRESS_URI', 'http://forums.example.com/' ); // The full address of the front page of your forum.
    define( 'BAVATARS_BBPRESS_PATH', '/path/to/bbpress/' ); // The full path to your bbPress installation.

    But you'll need to edit it.

    Posted: 2 years ago #
  13. I already changed the locations to:

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

    But that won't work. It just displays the gravatar.

    Posted: 2 years ago #
  14. holysjit: BAVATARS_BBPRESS_PATH needs to be the filesystem path to the forum's root folder. For example, this could be /home/you/htdocs/public_html/forum/.

    Posted: 2 years ago #
  15. I changed it, but still the gravatars appear. No uploaded avatar. :(

    Posted: 2 years ago #
  16. holysjit: If your forum is in a subdirectory of WordPress, you can use define( 'BAVATARS_BBPRESS_PATH', ABSPATH . 'forum/' );

    Posted: 2 years ago #
  17. rh3sus

    Member

    Nightgunner,

    I was wondering what tag to use within a wordpress theme to show a bavatar? I have been using

    <?php echo get_avatar($id_or_email, 48); ?>

    but this only ever gets the default mystery man avatar. Is there another call I can use to show the user selected bavatar?
    Thanks.

    Posted: 2 years ago #
  18. Tomcraft1980

    Member

    The trunk version is broken because bavatars-profile.php is missing a ?> on last line.

    Kind regards

    Tom

    Posted: 2 years ago #
  19. rh3sus: The users have to be logged in, and then it should work normally with that code.

    Tomcraft1980: Actually, that's not a problem. A lot of the bbPress files have the last ?> missing - it prevents a lot of the "headers already sent" errors.

    Posted: 2 years ago #
  20. Tomcraft1980

    Member

    Ah.... k, thx. ;-)

    But are you sure line 65 in bavatars-wp.php is correct now?
    return '<img alt="' . $alt . '" src="' . trailingslashit( BAVATARS_BBPRESS_URI ) . $location . ' class="avatar avatar-' . $size . ' avatar-bavatar" style="height:' . $size . 'px; width:' . $size . 'px;" />';
    I think this should be:
    return '<img alt="' . $alt . '" src="' . trailingslashit( BAVATARS_BBPRESS_URI ) . $location . '" class="avatar avatar-' . $size . ' avatar-bavatar" style="height:' . $size . 'px; width:' . $size . 'px;" />';

    Posted: 2 years ago #

RSS feed for this topic

Add a Comment »

You must log in to post.