Hello @hellisher
I will try to improve the upload-logic in a future release so thumbnails can be shown. But I have no information yet when it will come.
I added it to my todo-list here:
https://github.com/Asgaros/asgaros-forum/issues/97
As a temporary solution.
in the file forum-uploads.php to find:
$upload_list_elements .= '<li><a href="'.$url.utf8_encode($upload).'" target="_blank">'.$upload.'</a></li>';
replace:
$upload_list_elements .= '<li></li><i class="fa fa-file-image-o"></i> <a href="'.$url.utf8_encode($upload).'"><img class="wp-image-34 size-thumbnail tie-appear" src="'.$url.utf8_encode($upload).'" width="150" height="150" target="_blank" alt="downloaded file"></a>';
<img class=”wp-image-34 size-thumbnail tie-appear” – replaced by your
class=”fa fa-file-image-o” – icon

@asgaros thanks for a wonderful plugin!
-
This reply was modified 9 years, 6 months ago by
Yworld.
Thanks for your support and thanks for the code. 🙂
@yworld
Anyway to do the same with picture’s original size?