Thumbnail dimensions in the backend?
-
First of all great plugin… I am using the plugin for one of my client’s, so he can keep sort of a register of his staff. And I was wondering if you are planning to make the thumbnails in the backend table customizable, so the images will have the same size/dimensions and not the original size/dimensions of the image, and maybe also center crop like featured images in posts?
I’ve tried fiddling around with plugin and found this piece of code, but i can’t really get my head around it. The thumbnails will neither resize or be cropped. Do you have a solution. Thanks in advance! ??
` // Show thumbnail in Users table
function wpua_show_column($value, $column_name, $user_id){
global $blog_id, $wpdb;
$wpua = get_user_meta($user_id, $wpdb->get_blog_prefix($blog_id).’user_avatar’, true);
$wpua_image = wp_get_attachment_image($wpua, array(32,32));
if($column_name == ‘wp-user-avatar’){ $value = $wpua_image; }
return $value;
}`
- The topic ‘Thumbnail dimensions in the backend?’ is closed to new replies.