From c3cf1875bc2dd85782fa9859e9a7c7910ca8fdac Mon Sep 17 00:00:00 2001 From: Fahad Abbas Date: Tue, 30 May 2017 17:08:01 +0500 Subject: [PATCH] modified : user thumb url issue fixed --- upload/plugins/cb_server_thumb/cb_server_thumb.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/upload/plugins/cb_server_thumb/cb_server_thumb.php b/upload/plugins/cb_server_thumb/cb_server_thumb.php index a0c04740..8a4e7db4 100644 --- a/upload/plugins/cb_server_thumb/cb_server_thumb.php +++ b/upload/plugins/cb_server_thumb/cb_server_thumb.php @@ -455,6 +455,7 @@ if(!function_exists('user_thumb')) $size = ( !in_array( $size, $default ) or !$size ) ? 't' : $size; + list($width,$height) = explode('x',$params['size']); if( $size=='l') { @@ -471,7 +472,12 @@ if(!function_exists('user_thumb')) $w = 40; $h = 40; } - + if(isset($width) && is_numeric($width) && isset($height) && is_numeric($height) ) + { + $w = $width; + $h = $height; + } + $tim_postfix = '&type=users&h='.$h.'&w='.$w.'&zc=1'; $timthumb_path = CB_SERVER_THUMB_URL.'/timthumb.php?src=';