I guess not so I'll take a gander at coming up with one.... I'm not to be held accountable if it doesn't work because my forums are offline right now and I don't have a place to test it. So here it goes...
Modify line 23 which looks like this...
SELECT B_Number,B_Parent,B_Posted,B_Username,B_Subject,B_Status,B_Approved,B_Icon,B_Reged,B_Color,B_UStatus
By adding ",B_File" to the end to look like..
SELECT B_Number,B_Parent,B_Posted,B_Username,B_Subject,B_Status,B_Approved,B_Icon,B_Reged,B_Color,B_UStatus,B_File
Then take line 36... which looks like...
list($Number,$Parent,$Posted,$Username,$Subject,$Open,$Approved,$icon,$Reged,$Color,$PostStatus) = $dbh -> fetch_array($sth);
And make it...
list($Number,$Parent,$Posted,$Username,$Subject,$Open,$Approved,$icon,$Reged,$Color,$PostStatus, $File) = $dbh -> fetch_array($sth);
Then look for the section that starts...
// If the post isn't approved we show it in the new color
Right after the echo command in that section (the line right after it is line 887) add this...
if($File != NULL ) { echo " <img src="$config[images]/attachment.gif\ alt="Attachment">" }
Please try it out and let me know. I'll gladly fix any problems but like I said... I have no way to test that out...
Oh and since technically it was poil's idea and he was suppose to post the code for it... I figured I'd post up his file attachment icon.. Don't be mad poil....
Doug
http://www.netherworldrpg.net