Rteam let me see if this helps. You see my config options. They go into the config options on the bottom of the admin config screen in unknown variables section.
Here is the code from showflat.php I will paste a beginning line and end line so you know where to copy and paste from
notice begin with the if file and copy all the way to $editlinkstart
if ($File) { <br /> $File = rawurlencode($File); <br /> if (!$downloads) { $downloads = "0"; } <br /> $postrow[$i]['filelink'] = "<a href=\"{$config['phpurl']}/download.php?Number=$Number\">{$ubbt_lang['FILE_ATTACH']}</a> ($downloads {$ubbt_lang['DOWNLOADS']})"; <br /> if ($config['inline_anon'] == "yes") { <br /> // ----------------------------------------------------------------------- <br /> // if it's a graphic, let's display it in the posts - hack by JoshPet <br /> if (eregi("\.GIF|\.JPG|\.PNG", $File)) { <br /> $filewidth = getimagesize ("$config[fileurl]/$File"); <br /> $TempBod = $Body; <br /> if ($filewidth[0] > $config['max_width']) { <br /> $TempBod .= "<br /><br /><IMG SRC=\"$config[fileurl]/$File\" width=\"{$config['max_width']}\" Border=\"0\" alt=\"{$ubbt_lang['FILE_ATTACH']}\">"; <br /> } <br /> else { <br /> $TempBod .= "<br /><br /><IMG SRC=\"$config[fileurl]/$File\" Border=\"0\" alt=\"{$ubbt_lang['FILE_ATTACH']}\">"; <br /> } <br /> $Body = $TempBod; <br /> } <br /> } <br /> } <br /> <br /> <br /> $editlinkstart = "";
Now this is in showthreaded.php
if ($File) { <br /> $File = rawurlencode($File); <br /> if (!$downloads) {$downloads = 0; } <br /> $filelink = "<a href=\"{$config['phpurl']}/download.php?Number=$Number\">{$ubbt_lang['FILE_ATTACH']}</a> ($downloads {$ubbt_lang['DOWNLOADS']})<br />"; <br /> if ($config['inline_anon'] == "yes") { <br /> // ----------------------------------------------------------------------- <br /> // if it's a graphic, let's display it in the posts - hack by JoshPet <br /> if (eregi("\.GIF|\.JPG|\.PNG", $File)) { <br /> $filewidth = getimagesize ("$config[fileurl]/$File"); <br /> $TempBod = $Body; <br /> if ($filewidth[0] > $config['max_width']) { <br /> $TempBod .= "<br /><br /><IMG SRC=\"$config[fileurl]/$File\" width=\"{$config['max_width']}\" Border=\"0\" alt=\"{$ubbt_lang['FILE_ATTACH']}\">"; <br /> } <br /> else { <br /> $TempBod .= "<br /><br /><IMG SRC=\"$config[fileurl]/$File\" Border=\"0\" alt=\"{$ubbt_lang['FILE_ATTACH']}\">"; <br /> } <br /> $Body = $TempBod; <br /> } <br /> } <br /> } <br /> <br /> if ( ($edit == "on") || ($reply == "on") ) {
Just look for the ending line in each code and replace up to that line that way you will not miss any } 's