To resolve this issue, on file:
/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php
function:
Code: Select all
wp_w3all_assoc_phpbb_wp_users()
Code: Select all
if($usid):
$wp_user_phpbb_avatar[] = array("wpuid" => $usid->ID, "phpbbavaurl" => $ava_set_x['uavaurl'], "phpbbuid" => 0);
endif;
Then this may need to be changed into:
Code: Select all
if($usid):
$wp_user_phpbb_avatar[] = array("wpuid" => $usid->ID, "phpbbavaurl" => $ava_set_x['uavaurl'], "phpbbuid" => 0);
else:
$wp_user_phpbb_avatar[] = array("wpuid" => 0, "phpbbavaurl" => $ava_set_x['uavaurl'], "phpbbuid" => $ava_set_x['puid']);
endif;
(so these changes needs to be applied on each views/ folder files that display shortcodes etc )
where:
Code: Select all
if(!empty($last_topics)){
Code: Select all
// added
$w3phpbbuava = unserialize(W3ALLPHPBBUAVA);
Code: Select all
$countn = 0;
foreach ($last_topics as $key => $value) {
Code: Select all
// added
if(!empty($w3phpbbuava)){
foreach($w3phpbbuava as $k){
if($k['phpbbuid'] == $value->user_id && $k['phpbbuid'] > 1){
$phpbbUAVA = $k['phpbbavaurl'];
}
}
}
Code: Select all
if( ! $wpu ){
$w3all_avatar_display = get_avatar(0, $w3all_last_t_avatar_dim);
} else {
$w3all_avatar_display = get_avatar($wpu->ID, $w3all_last_t_avatar_dim);
}
}
Code: Select all
if( ! $wpu && isset($phpbbUAVA) ){
$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.'">';
} elseif ( ! $wpu && !isset($phpbbUAVA) ) {
$w3all_avatar_display = get_avatar(0, $w3all_last_t_avatar_dim);
} else {
$w3all_avatar_display = get_avatar($wpu->ID, $w3all_last_t_avatar_dim);
}
}