WordPress Avatar to Phpbb
-
Can I use wordpress user’s avatar to phpbb?
The page I need help with: [log in to see the link]
-
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.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.
Pardon me but as I see both codes you give me are the same!
🙂 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';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!
The topic ‘WordPress Avatar to Phpbb’ is closed to new replies.