PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   How Do I? - vBulletin 3.5.X (http://www.photopost.com/forum/how-do-i-vbulletin-3-5-x/)
-   -   Disable Hotlinking of files (http://www.photopost.com/forum/how-do-i-vbulletin-3-5-x/119413-disable-hotlinking-files.html)

Iridium1 October 20th, 2005 11:32 AM

Disable Hotlinking of files
 
How do I disable hotlinking of CERTAIN files(ot all) from my 3.5 Gallery?

Brian October 20th, 2005 01:26 PM

Re: Disable Hotlinking of files
 
Quote:

Originally Posted by Iridium1
How do I disable hotlinking of CERTAIN files(ot all) from my 3.5 Gallery?

Just to be sure... I'm assuming (ot all) should be (not all), right? If that's the case, are you trying to prevent images from being hotlinked that are in certain categories, uploaded by certain users, or what exactly?

Iridium1 October 20th, 2005 01:51 PM

Re: Disable Hotlinking of files
 
Quote:

Originally Posted by Brian
Just to be sure... I'm assuming (ot all) should be (not all), right? If that's the case, are you trying to prevent images from being hotlinked that are in certain categories, uploaded by certain users, or what exactly?

Well, images(pics) are fine. When we open the video tutorial section, I won't want any videos to be hotlinked. Is that possible?

Brian October 20th, 2005 03:24 PM

Re: Disable Hotlinking of files
 
About the only way to do something like that would be to upload all of the images under a specific username, and then place a .htaccess file in the folder for that username.

Iridium1 October 20th, 2005 03:27 PM

Re: Disable Hotlinking of files
 
Does vba gallery make folders for users automatically?

Brian October 21st, 2005 09:44 AM

Re: Disable Hotlinking of files
 
Yes, it stores the images pretty much the same way vB stores attachments. If the userid is 590, then the images for that user will be stored in gallery/files/5/9/0.

Iridium1 October 21st, 2005 11:53 AM

Re: Disable Hotlinking of files
 
I've just checked and mine isn't doing that Brian. They are only in the forums/gallery/files folder with NO subfolders like you mentioned. How do I fix this?

You have FTP access to my site, can you look or should I open a ticket?

Brian October 21st, 2005 12:32 PM

Re: Disable Hotlinking of files
 
Admin CP => vBa Gallery => Maintenance => Change File Storage Method

Looks like you've used that option to move your files into the safe mode storage method. Your server is not running in safe mode though, so you can use the same option to move your files back into the regular storage method if you would like.

Iridium1 October 21st, 2005 01:22 PM

Re: Disable Hotlinking of files
 
Now, the last time I "accidentally" clicked this it messed my entire gallery up. I'm not sure, but it I think it was my fault since I closed the window before it finished.

Are you sure this will work OK for me?

Brian October 22nd, 2005 12:05 PM

Re: Disable Hotlinking of files
 
If you don't close the window first then you shouldn't have a problem.

Iridium1 October 22nd, 2005 12:10 PM

Re: Disable Hotlinking of files
 
Quote:

Originally Posted by Brian
If you don't close the window first then you shouldn't have a problem.

What is the best way to back it up, prior to running this script. I want to do this so I don't have a problem

Brian October 22nd, 2005 12:26 PM

Re: Disable Hotlinking of files
 
If you want to be completely safe, download all files/folders in your gallery/files directory, then make a backup of your adv_gallery_images table.


All times are GMT -5. The time now is 12:27 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97