What you're going to add in 1.6.0 is a good idea, but i will try to explain myself better
Actually, on my forum phpbb, the default method for avatar is Random Gravatar. (extension).
I have a test forum for see what's wrong. On the test forum (without bridge) , when an user is registered , he's get a Random Gravatar (on PhpBB ! ) .
On my actual website with WP / Forum , the users have to register with WP. When they register, their Phpbb account is created.
On my actual forum, the default method for avatar is Random Gravatar too.
So, when a user is created (for me they have to register by WP side) , he should have a Random Gravatar on phpBB forum.
But that's not .
When the account is created with the bridge , they don't get the default avatar method on PhpBB , so they don't have the Random Gravatar.
I check the Database for see that. (It's Gravatar email) .
I hope that you can better understand
Avatars in PhpBB Side of the bridge
-
- User www
- Posts: 70
- Joined: Fri Nov 11, 2016 3:50 pm
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Avatars in PhpBB Side of the bridge
Ok got it! (i hope) ... it is necessary to see how this mod is coded, and hook into from WP side (into wp_w3all when the user is created, so adding code, into inside class.wp.w3all-phpbb.php and the code to be added depend on how the random gravatar mod in phpBB is done/coded, how it add record into phpBB db, adding it from WP side instead within the function create_phpBB_user.
But the better way is to add randomly one directly from WP, as it is ready feature in WP side.
Code: Select all
private static function create_phpBB_user($wpu){
But the better way is to add randomly one directly from WP, as it is ready feature in WP side.
-
- User www
- Posts: 70
- Joined: Fri Nov 11, 2016 3:50 pm
Re: Avatars in PhpBB Side of the bridge
My users have alreay a Random Gravatar on WP Side, i was trying to get that working for phpBB
Do you want the extension (zip) ?
Maybe a bridge between the avatars should be excellent aha
Do you want the extension (zip) ?
Maybe a bridge between the avatars should be excellent aha
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Avatars in PhpBB Side of the bridge
At moment i cannot take a look but as possible when the feature will be added i will return of course over this.
This should be quite easy to implement.
This should be quite easy to implement.
-
- User www
- Posts: 70
- Joined: Fri Nov 11, 2016 3:50 pm
Re: Avatars in PhpBB Side of the bridge
Okey THanks !
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Avatars in PhpBB Side of the bridge
1.6.0 has been released.
about
It is on file class.wp.w3all-phpbb.php, look inside
just comment out the two lines of code
like this
1.6.0 resolve definitively the first login fail when user register first time in WP side, update resizer, and more minor fixes. 1.6.1 is coming soon.
about
it has been added from 1.6.0 but (still) not as option into wp_w3all config page.If an user register WP side and set Gravatar, this should be added into phpBB also
It is on file class.wp.w3all-phpbb.php, look inside
Code: Select all
private static function create_phpBB_user($wpu){
Code: Select all
//$uavatar = get_option('show_avatars') == 1 ? $wpu->user_email : '';
//$avatype = (empty($uavatar)) ? '' : 'avatar.driver.gravatar';
Code: Select all
$uavatar = get_option('show_avatars') == 1 ? $wpu->user_email : '';
$avatype = (empty($uavatar)) ? '' : 'avatar.driver.gravatar';