Page 1 of 4

Future Request

Posted: Mon Jul 17, 2017 3:07 pm
by Lantern
Hi,

I'm back and i was wondering if a Who's Online Widget is on the design table? I'm using a standard WP Who's Online Widget but i have avatar problems ( the avatars are synced with WP instead of PHPBB, so i see plain wp user avatars by the users who are online.

Hoping to hear from you !
Greetings !

Re: Future Request

Posted: Mon Jul 17, 2017 3:29 pm
by axew3
Hi! yes, into next release all should be more comfortable about widgets styles
But i've not understand what happen with
the avatars are synced with WP instead of PHPBB, so i see plain wp user avatars by the users who are online
if these users have an avatar in phpBB than you should see their avatars ... it is not?

Re: Future Request

Posted: Tue Jul 18, 2017 9:46 am
by Lantern
Hi,

Now i use: https://wordpress.org/plugins/wp-whos-online/ - this plugin and is not capable to sync with PHPBB so it looks into de WP db users table and avatars - the widget shows :

The users with avatar are manually added in WP - but i like to have a phpbb sync :) so no manual actions are needed.

Re: Future Request

Posted: Tue Jul 18, 2017 12:49 pm
by axew3
ah ok! now is clear.
In effect it is impossible to pass phpBB avatars to another plugin and render the same result without passing values.
It is possible to guess that are passed, activating before or after the call on wp_w3all?

I do not know, i should see. But you can try to open class.wp.w3all-phpbb.php
search for this line:

Code: Select all

add_filter( 'get_avatar', array( 'WP_w3all_phpbb', 'wp_w3all_phpbb_custom_avatar' ), 10 , 5  );
change into:

Code: Select all

add_filter( 'get_avatar', array( 'WP_w3all_phpbb', 'wp_w3all_phpbb_custom_avatar' ), 8 , 5  );
as you see i've change value 10 into 8.
this parameter indicate when the filter need to be executed. The question is: will work as expected? Need to fire also before? Try 6 than.
To execute after so, increase instead the value into 12 or more ...
Try out and let know.

Re: Future Request

Posted: Tue Jul 18, 2017 9:10 pm
by Lantern
Bummer this doesn't work

Re: Future Request

Posted: Tue Jul 18, 2017 9:31 pm
by axew3
Bummer this doesn't work
It should, if coded as i was hoping, so perhaps it isn't. As you can see on WP default, avatars for users on posts are replaced.
So i've suppose, the plugin you use, should also.
This maybe mean nothing but i see this plugin you use report:
This plugin hasn’t been updated in over 2 years.