by axew3 » Mon Apr 05, 2021 9:16 am
Manual fix (or download the ready file more below)
file
/wp-content/plugins\/wp-w3all-phpbb-integration/views/phpbb_last_topics.php
search for:
Code: Select all
$w3all_avatar_display = ( is_email( $phpbbUAVA ) !== false ) ? get_avatar($phpbbUAVA, $w3all_last_t_avatar_dim) : '<img alt="" src="'.$phpbbUAVA.'" class="avatar" width="'.$w3all_last_t_avatar_dim.'" height="'.$w3all_last_t_avatar_dim.'">';
change into:
Code: Select all
if(is_email( $phpbbUAVA )){
$w3all_avatar_display = get_avatar($phpbbUAVA, $w3all_last_t_avatar_dim);
} elseif(!empty($phpbbUAVA)){
$w3all_avatar_display = '<img alt="" src="'.$phpbbUAVA.'" class="avatar" width="'.$w3all_last_t_avatar_dim.'" height="'.$w3all_last_t_avatar_dim.'">';
} else {
$w3all_avatar_display = get_avatar(0, $w3all_last_t_avatar_dim);
}
then search for
change into:
or download the ready and updated file on repo:
https://plugins.trac.wordpress.org/expo ... topics.php
and substitute it into folder:
/wp-content/plugins/wp-w3all-phpbb-integration/views/phpbb_last_topics.php
Result: if an user is not existent into wordpress, and own an avatar in phpBB his phpBB avatar will display.
If the user exist in WP and own an avatar, the avatar will display.
It the user do not own any avatar that can display, both in wp and phpBB, then the dafault WP gravatar, based on WP Settings -> Discussion -> Gravatar will display for the user.
[size=150]Manual fix[/size] (or download the ready file more below)
file
[i]/wp-content/plugins\/wp-w3all-phpbb-integration/views/[b]phpbb_last_topics.php[/b][/i]
search for:
[code]$w3all_avatar_display = ( is_email( $phpbbUAVA ) !== false ) ? get_avatar($phpbbUAVA, $w3all_last_t_avatar_dim) : '<img alt="" src="'.$phpbbUAVA.'" class="avatar" width="'.$w3all_last_t_avatar_dim.'" height="'.$w3all_last_t_avatar_dim.'">';[/code]
change into:
[code] if(is_email( $phpbbUAVA )){
$w3all_avatar_display = get_avatar($phpbbUAVA, $w3all_last_t_avatar_dim);
} elseif(!empty($phpbbUAVA)){
$w3all_avatar_display = '<img alt="" src="'.$phpbbUAVA.'" class="avatar" width="'.$w3all_last_t_avatar_dim.'" height="'.$w3all_last_t_avatar_dim.'">';
} else {
$w3all_avatar_display = get_avatar(0, $w3all_last_t_avatar_dim);
}[/code]
then search for
[code]$countn++;[/code]
change into:
[code] $phpbbUAVA = '';
$countn++;[/code]
[size=150]
[b]or download the ready and updated file on repo:[/b][/size]
https://plugins.trac.wordpress.org/export/HEAD/wp-w3all-phpbb-integration/trunk/views/phpbb_last_topics.php
[b]and substitute it into folder:[/b]
[i]/wp-content/plugins/wp-w3all-phpbb-integration/views/[b]phpbb_last_topics.php[/b][/i]
Result: if an user is not existent into wordpress, and own an avatar in phpBB his phpBB avatar will display.
If the user exist in WP and own an avatar, the avatar will display.
It the user do not own any avatar that can display, both in wp and phpBB, then the dafault WP gravatar, based on WP Settings -> Discussion -> Gravatar will display for the user.