WordPress.org

Ready to get started?Download WordPress

Forums

WP phpBB Bridge
[resolved] have the same avatar in phpbb and wordpress (17 posts)

  1. icemax90
    Member
    Posted 3 years ago #

    I changed my avatar on my profile in phpbb, but when I go to add a comment in a post on wordpress is not the avatar entered, how can I fix this?

    http://wordpress.org/extend/plugins/wp-phpbb-bridge/

  2. merianos
    Member
    Plugin Author

    Posted 3 years ago #

    Try Ctlr+F5. Propably it is cached

  3. icemax90
    Member
    Posted 3 years ago #

    I've tried does not work in the comments on wordpress and I have an avatar in the forum I have what I have provided.

  4. merianos
    Member
    Plugin Author

    Posted 3 years ago #

    Ooops ! Sorry :)

    Avatars on WordPress are related to your email account and the service that provide the http://el.gravatar.com/

    To change you avatar on wordpress, you have to visit the above service, register with you email account (the same as the one you have on wordpress) and then assign the avatar on your email address. After that process you will have you avatar into WordPress.

  5. icemax90
    Member
    Posted 3 years ago #

    then it is not possible via plugins have the same avatar in phpbb and wordpress?

  6. merianos
    Member
    Plugin Author

    Posted 3 years ago #

    not. This is an absolute diferent thing. You can't have the same avatar in both phpBB and wp, because you just have isntalled on phpBB. This is the way that the wordpress is written ! :)

  7. factor2k
    Member
    Posted 3 years ago #

    I hate to burst you bubble, but this is possible in Word Press United. I also have it implemented on my site:

    http://pixelsmashers.com/

    I think it would be a good idea to look it over and see what you can do to improve your mod. Having to change ones avater two different ways in two different places can be annoying.

    Here is a link to wpu: http://www.wp-united.com/

  8. icemax90
    Member
    Posted 3 years ago #

    wp-united is a great software to integrate phpbb in wordpress but it's almost more than a year that can not be supported by its creator.

  9. merianos
    Member
    Plugin Author

    Posted 3 years ago #

    As I see you need this feature. So in next version I will try to implement it, so you will be able to have it !

  10. icemax90
    Member
    Posted 3 years ago #

    ok thanks.

  11. factor2k
    Member
    Posted 3 years ago #

    @icemax90, yes you are correct, but it is important to point these things out in order to try and help them. Maybe they can take a look at how it was implemented in WPU and use it in their mod. That's all I'm getting at.

    Switching to WPU atm is a bad idea and it is unfortunate that the creator is MIA. That is why it is important for this mod to take its place as this community seems dedicated to the cause and more active. Adding certain features will definitely help with that. Cheers ;)

  12. icemax90
    Member
    Posted 3 years ago #

    you are okay with you, I can see from there how to implement it.

  13. archonic
    Member
    Posted 3 years ago #

    Another convert from wp-united here. It was wigging out the style of the forum header and other things too, glad to see it go!

    I second this feature though, there should be a switch in the options panel for opting to phpbb avatars instead of gravatar.

    About how to do it, WP-United is a pretty heavy mod. It modifies a good number of core files in phpbb, and then writes WP's "index.php" as "blog.php" after you point it to the WP install location in the phpBB ACP. It takes over wordpress functions from phpbb, so how they do it will likely be irrelevant.

    You can add a hook to re-route the avatar get function though, like this:

    add_filter('get_avatar', array($this,'site_get_avatar'), 10, 5);

    function site_get_avatar($avatar, $id_or_email, $size, $default, $alt){
    //$avatar format includes the tag <img>
    $imgpath = "http://website.com/image/myownimage.jpg";
    $my_avatar = "<img src='".$path."' alt='".$alt."' height='".$size."' width='".$size."' />";
    return $my_avatar;
    }

    Those 5 paramaters are:
    1 - $avatar: the avatar given by WordPress with the tag . This is not the path of the default image.
    2 - $id_or_email: this is the email or id of the user
    3 - $size: size of the image
    4 - $default: this should be the default image provided by WordPress or the path given by us when we used get_avatar (third parameter as shown previously)
    5 - $alt: this is the alt value given in your img tag.

    Hope this helps! Here's more info about it - http://www.sanisoft.com/blog/2010/01/04/wordpress-the-get_avatar-hook/

  14. merianos
    Member
    Plugin Author

    Posted 3 years ago #

    thanx for the infos archonic we will check them ;)

  15. heredia21
    Member
    Posted 3 years ago #

    Anyone get avatars to show up?

  16. imaginena
    Member
    Posted 3 years ago #

    The update 1.0.2 of WP phpBB Bridge solve this problem.

  17. heredia21
    Member
    Posted 3 years ago #

    I updated to v1.0.3 and avatars still do not show up on comments.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic