The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Downloadable Files
Hopefully this is the appropriate place to ask this. I have my CMS and forum in the public_html folder. In my site I will have downloadable .pdf's for my users to download.
I can't find it now but I read somewhere that there was a difference between storing these .pdfs in a folder outside my root folder, for example in a public_ftp folder versus storing them within my public_html directory in a separate folder. On occasion I will provide others a link to download the pdf's, what I don't want is for them to be able to just click the link and download. I want them to register with my forum then be able to download the file. So what are the differences between storing files outside root directory vs within? |
#2
|
||||
|
||||
If you store them in a folder which is located within your public_html folder, then they can be downloaded via a link. If you store them in a folder that is on the same level as your public_html folder, then they can only get to them via vbulletin software and they must have the correct vbulletin permissions to get the file.
|
#3
|
|||
|
|||
Thank you Lynne for your quick response, sounds like I want them outside the public_html, that way they get the file via the forum.
--------------- Added [DATE]1264834188[/DATE] at [TIME]1264834188[/TIME] --------------- oops maybe I don't want them that way. I want links within my website, for instance in a forum topic for them to be able to click if they want to download a .pdf of the topic. can't get that to work. |
#4
|
||||
|
||||
If you put a link to the attachment, then the attachment permissions should carry though to the user who tries to download the pdf. For instance...
1) You upload a pdf file, my.pdf, in forum 1. All users may download pdf attachments in forum 1. You put a link to the pdf file in a thread in forum 2. Not all users have permission to download pdf files in forum 2. However, all users should still be able to click on the my.pdf file and download it because it was originally uploaded in forum 1 where all users have permission to download it. 2) You upload a pdf file, my2.pdf, in your Staff forum where only Staff may view threads and download files. You then put a link to my2.pdf in forum 1 where all users may download pdf files. No users, except Staff, should be able to download that file because they don't have permissions in the original thread the file was uploaded into. |
#5
|
|||
|
|||
thank you Lynne, I made a directory called downloads on the same level as my public_html directory. I put a link url=www.website.com/downloads/my1.pdf and when the link was clicked on it popped up a window saying it could not find the file. I will research into the download permissions and see if that corrects the problem. I apologize in advance that this may seem like a simple question, but I am learning.
tim |
#6
|
||||
|
||||
When playing with links, you need to remember to clear your cache everytime you make a change or you will get the same result as before. Believe me, I have spent time with this issue! So, make a change, CLEAR YOUR CACHE, refresh the page, and then click on the link again.
|
#7
|
|||
|
|||
I have never even considered that, I will have to try that tonight. I read last night about folder permissions and through cpanel looked at the permissions for the download folder, drwxr-xr-x if that makes any sense, I also wondered about the link I was posting in the forums, since folks go to the public html folder to the index file when they type my IP addy, it got me to thinking that the IP leads them to inside that folder while the download folder is outside of it. Do I need some code to denote that the file is up to the root level then point into downloads? I am familiar with absolute links vs relative links but this seems different.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|