As I've stated in a previous post, I'm creating online photography courses.
I've gotten the resources in place, the auto linking works, etc, but I have one problem.
I can't share the resources with other courses!!!
They are in a folder outside of the public_html, so I can't link to it.
I've tried place them into the FILES folder in my moodle folder, but then everyone can access the files(not possible when it's outisde of public_html), plus the autolinking doesn't seem to work.
Do I assume that I'll have to duplicate the entire resource folder for each new courses that I want to add?
I'm planning on running a series of different courses at the same time using some of the same resources, so if this is the case, it's going to take up a huge amount of server space.
If your system is LINUX, the best way to achieve your goal is to create a symbolic link from your external resource repository to the individual folder id for the course accessing the resources.
Is it possible to link to my moodledata folder which is outside of my public_html?
Have you tried using the "Glossary" tool to create an image database?
If you create a glossary and flag it as "global" then it's available to all courses. Additionally, if you set the glossary type to "Encyclopedia", then when you create glossary entries with images as attachments, they are automatically displayed inline, so it becomes a very neat images database with keyword searching, autolinking, and other nice features.
If you create a glossary and flag it as "global" then it's available to all courses
That's what I thought as well and IMO that's how it should be. But especially if you are including pictures this doesn't work.
It's like Dan said in his other post: file.php handles permissions very strictly and as such if you are not enrolled in the course to which the glossary belongs (even if it's a global one), you will not have access to the pictures in it: they will not display.
I agree with Dan that hacking file.php to take away some of the security is a dangerous thing. But how about this:
file.php checks if you are logged in (course doesn't matter)
file.php only serves images / no other filetypes
file.php only serves images that are inside a directory called
sitewideto make sure no teacher puts files in there which should be available to students of a particular course only.
I can see how I can take out the check if their logged in in FILE.PHP, but I want to restrict access to students