How can i show a message next to an attachment to an unregistered user? Example from an vbulletin forum

(http://www.freeimagehost.ro/viewer.php?file=smf_registerd.jpg)
Text to display if user does not have permission to view attachments:
http://www.simplemachines.org/community/index.php?topic=108236.0;topicseen
Works great.. thank you
One more question... till now, guest have seen the name of the attached files. It's possible to show the name of the attachment and message to the guest?
Example: "019.jpg Only reg users may see the attached files. Please register/login".
I will take a look - if I haven't responded to this thread in 24 to 36 hours PM me and point me back to it. (Be sure to tell me I said to PM me and include the link lest I forget and just ignore it because I get a great many PMs even though I expressly ask people to respect my desires to not get them in my signature.)