Well it is actually very doable. I have both hacks installed together fine. Here is the code below. You will see I did not delete the initial hacks code so the pics are still displayed inline.
Josh's hack in red the inline image in blue.
[:"red"]
if ($File) {
$fileicon = "";
if (eregi("\.GIF|\.JPG|\.PNG", $File)) {
$fileicon = "<img src="{$config['images']}/fileiconphoto.gif" alt="Photo" border="0" $imagestyle />";
}
elseif (eregi("\.TXT", $File)) {
$fileicon = "<img src="{$config['images']}/fileicontext.gif" alt="Text Document" border="0" $imagestyle />";
}
elseif (eregi("\.ZIP|\.SIT|\.SEA", $File)) {
$fileicon = "<img src="{$config['images']}/fileiconzip.gif" alt="Compressed File" border="0" $imagestyle />";
}
elseif (eregi("\.PDF", $File)) {
$fileicon = "<img src="{$config['images']}/fileiconpdf.gif" alt="PDF File" border="0" $imagestyle />";
}
elseif (eregi("\.WAV|\.RA|\.AU|\.MP3|\.AVI", $File)) {
$fileicon = "<img src="{$config['images']}/fileiconsound.gif" alt="Sound File" border="0" $imagestyle />";
}
elseif (eregi("\.MPG|\.MPEG|\.RM|\.WMV|\.MOV|\.ASX|\.RAM", $File)) {
$fileicon = "<img src="{$config['images']}/fileiconmovie.gif" alt="Movie File" border="0" $imagestyle />";
}
else {
$fileicon = "<img src="{$config['images']}/file.gif" alt="{$ubbt_lang['FILE_ATTACH']}" border="0" $imagestyle />";
}
$File = rawurlencode($File);
$postrow[$i]['filelink'] = "<a href="{$config['fileurl']}/$File">{$ubbt_lang['FILE_ATTACH']} $fileicon</a>";[/][:"blue"]
if ($user['U_Username']) {
if (eregi("\.GIF|\.JPG|\.PNG", $File)) {
$TempBod = $Body;
$TempBod .= "<br /><br /><IMG SRC="$config[fileurl]/$File" Border="0">";
$Body = $TempBod;
}
}
}
[/]