I think these need to be named differently as their position is rather arbitrary.

<!-- EVENT ucp_pm_viewmessage_custom_fields_before --> would describe exactly where this is. Prepend wouldn't be necessary then (or would be author_posts_before)