Avatars in PhpBB Side of the bridge

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Avatars in PhpBB Side of the bridge

Re: Avatars in PhpBB Side of the bridge

by axew3 » Sun Feb 12, 2017 12:35 am

1.6.0 has been released.

about
If an user register WP side and set Gravatar, this should be added into phpBB also
it has been added from 1.6.0 but (still) not as option into wp_w3all config page.
It is on file class.wp.w3all-phpbb.php, look inside

Code: Select all

private static function create_phpBB_user($wpu){
just comment out the two lines of code

Code: Select all

//$uavatar = get_option('show_avatars') == 1 ? $wpu->user_email : '';
//$avatype = (empty($uavatar)) ? '' : 'avatar.driver.gravatar';
like this

Code: Select all

     $uavatar = get_option('show_avatars') == 1 ? $wpu->user_email : '';
     $avatype = (empty($uavatar)) ? '' : 'avatar.driver.gravatar';
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.

Re: Avatars in PhpBB Side of the bridge

by antoinegdln4 » Wed Feb 08, 2017 10:26 am

Okey THanks ! :)

Re: Avatars in PhpBB Side of the bridge

by axew3 » Wed Feb 08, 2017 1:00 am

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.

Re: Avatars in PhpBB Side of the bridge

by antoinegdln4 » Tue Feb 07, 2017 8:21 pm

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 :)

Re: Avatars in PhpBB Side of the bridge

by axew3 » Tue Feb 07, 2017 8:01 pm

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

Code: Select all

private static function create_phpBB_user($wpu){
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.

Re: Avatars in PhpBB Side of the bridge

by antoinegdln4 » Tue Feb 07, 2017 6:54 pm

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 :)

Top