I wanted to enable attachments to forums on my private site that does not use .LRN. Two things got on my nerves and need to be fixed (besides the fact that it should be possible to enable attachments from the forums administration and not through the site-map, manually mounting the attachment instance).
a) Forums assumes attachments to be mounted under "[path_to_forums]/attach". This is hardcoded => VERY BAD!
b) Who on earth had the splendid idea to make attachments depend on .LRN without stating so in the .info file. After all, you could just attach the file to the forum_posting_id without using a folder, but who am I to argue....
malte@andromeda:/web/cognovis/packages/attachments/www$ grep dotlrn *
attach.tcl: set folder_id [dotlrn_fs::get_user_shared_folder -user_id $user_id]
file-add-2.tcl:set fs_package_id [site_node::get_element -url "[dotlrn::get_url]/file-storage/" -element "package_id"]
I will try to fix this in the near future, but do us a favour and prevent hidden dependencies like this as not all sites use .LRN.