Future Request

User avatar
Lantern
User www
User www
Posts: 66
Joined: Fri Sep 09, 2016 12:07 pm
Location: The Netherlands
Contact:

Future Request

Post 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 !
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Future Request

Post 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?
User avatar
Lantern
User www
User www
Posts: 66
Joined: Fri Sep 09, 2016 12:07 pm
Location: The Netherlands
Contact:

Re: Future Request

Post 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.
Attachments
who's online.png
who's online.png (9.79 KiB) Viewed 3780 times
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Future Request

Post 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.
User avatar
Lantern
User www
User www
Posts: 66
Joined: Fri Sep 09, 2016 12:07 pm
Location: The Netherlands
Contact:

Re: Future Request

Post by Lantern »

Bummer this doesn't work
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Future Request

Post 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.
Post Reply