Finally i recoded the whole thing, ill still have to add the pageanism later as that takes some time, but this version is much quicker then the other, well on my test it was anyway, also on the main page, if u click the from user or the to user it will take u to a page for them that shows all the messages theyve sent and all the messages theyve received
Edit: I think there is a bug with the attachment upload or something, for some reason, it keeps trimming out my ?> out of the pmview.php file even when its in zip... so depending on ur site you may need to go ahead and add ?> to the end of it, if your having problems.