i did it 😀
change this code in this file
wpforo-advanced-attachments - >>> includes ->>> class.wpForoAttachmentsTools
foreach( $attachs as $attach ) {
$fileurl = preg_replace( '#^https?\:#is', '', $attach['fileurl'] );
$filepath = wpforo_fix_upload_dir( $fileurl );
if( file_exists( $filepath ) ) {
$file_display_name = urldecode( basename( $attach['filename'] ) );
$attach_html .= sprintf(
'<br/><div class="wpfa-item wpfa-file" style="border: 1px dotted #bbb; padding: 5px 10px; font-size: 13px; margin: 5px 2px;"><a class="attach_cant_view" style="cursor: pointer;"> <span style="color: #666;" > %1$s : </span> %2$s </a> </div>',
wpforo_phrase( 'Attachment', false ),
$file_display_name
to this one
foreach( $attachs as $attach ) {
$fileurl = preg_replace( '#^https?\:#is', '', $attach['fileurl'] );
$filepath = wpforo_fix_upload_dir( $fileurl );
if( file_exists( $filepath ) ) {
$file_display_name = urldecode( basename( $attach['filename'] ) );
$attach_html .= sprintf(
'<br/><div class="wpfaami-boxed" style="min-width: 100px;min-height: 100px;">
<img style="max-width: 100xpx ;max-height: 100px" title="" src="' . $fileurl . '" alt=" "> </div>',
wpforo_phrase( 'Attachment', false ),
$attach_html
);
}
}
}
}