Title: WordPress Avatar to Phpbb
Last modified: October 18, 2017

---

# WordPress Avatar to Phpbb

 *  Resolved [mieuth](https://wordpress.org/support/users/mieuth/)
 * (@mieuth)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wordpress-avatar-to-phpbb/)
 * Can I use wordpress user’s avatar to phpbb?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-avatar-to-phpbb%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wordpress-avatar-to-phpbb/#post-9604428)
 * Yes it has been also added on code, but not as option on wp_w3all admin config
   page.
    will be added as soon on next because seem to be useful.
 * The code in case setup on WP register, the setting for the avatar in phpBB to
   be Gravatar (that is a default one available in phpBB to be activate in ACP as
   avatar option for phpBB users).
 * on file _wp-content/plugins-wp-w3all-phpbb-integration/**class.wp.w3all-phpbb.
   php**_
    there are these four lines:
 *     ```
            //maybe to be added as option
            // if you wish to setup gravatar by default into phpBB profile for the user when register in WP
            $uavatar = $avatype = '';
            //$uavatar = get_option('show_avatars') == 1 ? $wpu->user_email : '';
            //$avatype = (empty($uavatar)) ? '' : 'avatar.driver.gravatar';
       ```
   
 * change into:
 *     ```
            //maybe to be added as option
            // if you wish to setup gravatar by default into phpBB profile for the user when register in WP
            $uavatar = $avatype = '';
            $uavatar = get_option('show_avatars') == 1 ? $wpu->user_email : '';
            $avatype = (empty($uavatar)) ? '' : 'avatar.driver.gravatar';
       ```
   
 * this a temporary solution as said.
    The buddypress avatar to phpBB option has
   been instead already included and is available on wp_w3all admin config page.
 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wordpress-avatar-to-phpbb/#post-9604440)
 * p.s this code, apply when a new user is created in WP: the user will be created
   so into phpBB, with setting Gravatar about avatar, and inserting his email as
   value.
    Check that into your phpBB ACP you’ve setup Gravatars option for user’s
   avatars, to get this work ok.
 * **When will be added as complete option, all will be done in auto for all users,
   also existent.**
 *  Thread Starter [mieuth](https://wordpress.org/support/users/mieuth/)
 * (@mieuth)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wordpress-avatar-to-phpbb/#post-9608374)
 * Pardon me but as I see both codes you give me are the same!
 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wordpress-avatar-to-phpbb/#post-9608871)
 * 🙂 Look better: in php two slashes
    ** //** in front of the line, mean that the
   line will not be parsed by php and considered as a comment on code. `// this 
   never will be parsed by php, javascript etc` So, as you can see, aren’t the same
   where in the first code you have:
 *     ```
       //$uavatar = get_option('show_avatars') == 1 ? $wpu->user_email : '';
       //$avatype = (empty($uavatar)) ? '' : 'avatar.driver.gravatar';
       ```
   
 * while in the second
 *     ```
       $uavatar = get_option('show_avatars') == 1 ? $wpu->user_email : '';
       $avatype = (empty($uavatar)) ? '' : 'avatar.driver.gravatar';
       ```
   
 *  Thread Starter [mieuth](https://wordpress.org/support/users/mieuth/)
 * (@mieuth)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wordpress-avatar-to-phpbb/#post-9614593)
 * Yes you are right! I’m sorry.
    I use the Super Socializer plugin and I thought
   the phpbb avatar is going to be replaced by the social profile images of the 
   user is created on social login. But this method only shows the gravatar is connected
   with the users profile. Anyway, I am sorry for my inattention, you where right
   for the code. Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WordPress Avatar to Phpbb’ is closed to new replies.

 * ![](https://ps.w.org/wp-w3all-phpbb-integration/assets/icon-128x128.png?rev=3375511)
 * [WP w3all phpBB](https://wordpress.org/plugins/wp-w3all-phpbb-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-w3all-phpbb-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [mieuth](https://wordpress.org/support/users/mieuth/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/wordpress-avatar-to-phpbb/#post-9614593)
 * Status: resolved