vetomacht
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Active Directory Thumbnails] Avatar not showingHey Omar, thank you for offering me your support. I sent you and e-mail to sales@infinity88.ca I hope that’s the correct address 😉
Forum: Plugins
In reply to: [Active Directory Thumbnails] Avatar not showingHi Omar,
no unfortunately it’s not working. When I replace the code with yours, the avatar disappears. :/
Forum: Plugins
In reply to: [Active Directory Thumbnails] Avatar not showingHi Omar,
thank for your response. Unfortunately your code doesn’t work aswell but I read the codex entry which was very helpful. Since I want to show the profile picture in my header.php I am not in the loop and if I got that right, it means I have to pass $userID to the function.
Propably I should have mentioned that I added the following code to my functions.php to remove the default gravatar.
Could that cause a problem? Also the theme works with Buddypress.add_action('wp_enqueue_scripts', 'woffice_child_scripts'); function remove_gravatar ($avatar, $id_or_email, $size, $default, $alt) { $test1 = get_usermeta( $id_or_email->user_id, 'adt_user_photo_url' ); $test2 = get_usermeta( $id_or_email, 'adt_user_photo_url' ); if($test1 <> null) { $default = $test1; } else if ($test2 <> null) { $default = $test2; } else { $default="add a url to a default avatar picture else the picture will be a blank box"; } return "<img alt='{$alt}' src='{$default}' class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' />"; } add_filter('get_avatar', 'remove_gravatar', 1, 5);Thanks for your support Omar, I’m really glad. 🙂
Viewing 3 replies - 1 through 3 (of 3 total)