WordPress.org

Ready to get started?Download WordPress

Forums

WPBook
[resolved] WPBook Messes Up Website (8 posts)

  1. DAKing240
    Member
    Posted 3 years ago #

    Hello,

    In the middle of installing WPBook last night, I noticed a strange error when activating WPBook. Our site, which normally loads 32 by 32 Gravatars, now loaded which appeared to be 48 by 48 images, and all showed up as 'Mystery Man' thumbnails. When I looked at the settings in WordPress, all the options, including Wavatar and Gravatar had the same generic 'Mystery Man' thumbnail.

    However, once deactivated, the problem went away. Any idea if some plugins should not be used together with WPBook?

  2. johneckman
    Member
    Plugin Author

    Posted 3 years ago #

    @DAKing240 - sorry, I've no idea what's happening there - I'm looking into the code now to see if there is anything.

    Are you running any other plugins related to avatars/gravatars/wavatars?

    What's the url of your blog in it's normal view?

  3. DAKing240
    Member
    Posted 3 years ago #

    Hey Jon,

    Our site can be found at: http://www.360Sync.com

    We have a plugin simply called Gravatar running, but not even sure if it is necessary anymore now with the latest version of WordPress installed.

  4. Brooke Dukes
    Member
    Plugin Contributor

    Posted 3 years ago #

    @DAKing240,

    I noticed this the other day too, basically what's happening is that WPBook is overwriting the WordPress default avatar. I noticed this with my blog too just haven't found the time to fix it or find a solution.

    For now you want to set the default Gravatar in WPBook admin settings to your 32x32 icon. I set the icons to 50x50 because that's what the Facebook square icons are.

    If you want to disable the Facebook profile icons all together you can delete or comment out line 1195 in wpbook.php add_filter( 'get_avatar','wpbook_get_facebook_avatar', 1, 3 ); the line that overrides the standard WordPress Gravatar with the WPBook one.

    You can also modify how Gravatars appear by modifying the wpbook_get_facebook_avatar function 1145-1173 of wpbook.php this is where you can set the size to 32 keeping in mind that avatars from FB will be larger.

    Hope that helps if you need/want more information just let me know.

    PS: aftever WP 2.6 (I think) gravatars are build in so you don't need the gravatar plugin.

  5. johneckman
    Member
    Plugin Author

    Posted 3 years ago #

    @BandonRandon Would it make sense to add an option for this?

    If they turn it off (by disabling that add_filter) this will mean that they won't see Facebook avatars in comments made by users inside FB?

  6. Brooke Dukes
    Member
    Plugin Contributor

    Posted 3 years ago #

    @johneckman, I was hoping to create an option original or to only show the FB avatar inside the FB app view. However, a lot of feedback i got was to to show them inside and outside of Facebook.

    With regards to options I think that's what we should do "enable FB avatars outside of the app view" That would call the above hook. I think to make that work we'll have to manually call wpbook_get_facebook_avatar() inside theme/index.php. It may be a good idea to wrap the avatar filter in the "show Gravatar option" My original implementation was sorta quick and dirty. I'm all for improved functionality.

  7. DAKing240
    Member
    Posted 3 years ago #

    Thank you,

    If you want to disable the Facebook profile icons all together you can delete or comment out line 1195 in wpbook.php add_filter( 'get_avatar','wpbook_get_facebook_avatar', 1, 3 ); the line that overrides the standard WordPress Gravatar with the WPBook one.

    This solved it!

  8. Brooke Dukes
    Member
    Plugin Contributor

    Posted 3 years ago #

    Glad you got it solve.

    @johneckman I just relized something John. I'm not wrapping add_filter( 'get_avatar','wpbook_get_facebook_avatar', 1, 3 ); in the show_gravatar setting. Oops!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags