Well I think I may have figured it out on my own. I'm not a programmer, but I printed it all out, and tried to follow the logic.
In the last occurance of "If there is a poll in the post..." I made the section that began with "echo" look like this:
echo "
</td></tr></table></td></tr>
<tr><td width=83% class="lighttable">
<br><P class="post">
$Body <br>
";
if ($user['U_Username']) {
if (eregi("\.GIF|\.JPG|\.PNG", $File)) {
echo "<IMG SRC="$config[fileurl]/$File" Border="0">";
}
}
echo "
$Signature
$PrintLastEdit
<p class=small>{$ubbt_lang['POST_OPT']}
<a target="_blank" href="{$config['phpurl']}/printthread.php?Cat=$Cat&Board=$Board&main=$Number&type=post"><img align=absmiddle alt="{$ubbt_lang['PRINT_POST']}" src="{$config['images']}/print.gif" border=0></a>
";
This made the attachment appear after the Body, but before the signature.
So far all still seem OK. I haven't crashed it all out yet. []
https://www.ubbdev.com/threads/php/images/icons/wink.gif[/]
Thanks!