I have this problem, sometimes to varying degrees.
I'm in the middle of writing a plugin that will "explain" what attachment is being viewed. If the attachment belongs to a post, I will have the userinfo['activity'] say that it's "Viewing Attachment to Post in BlahBlahBlah thread" or something similar.
I do not know all of the places where attachments are used, though. I'm going through and trying to find that out right now, so that I can put, "viewing attachment in Blog" or "Viewing attachment in album" or whatever (if they use attachments).
After I get it all tested out a bit and everything, I'll post up the code I'm using, and maybe it'll help you guys out. It's a pretty concept (at least in theory)--on the online_location_preprocess, test to see if $filename is attachment.php, and if so, check some tables to see where that attachment is attached to, then pull and display that info.
We'll see if it works out that simply in practice, though. XD
|