PDA

View Full Version : Public Folder?



CHoTai
02-26-2011, 07:26 PM
I have a Wordpress site. Bruckassefa.com and currently I host my images on Imageshack.com and they load very slowly. I thought it would be faster to load them from my FTP server from Bluehost but no matter where I put them, when I go on my site, it asks for a login.

Is there anywhere I can put them so that you don't need the login, or do I need some coding skills and customize them to my theme. If you can't already tell, I'm very new to website development.

Thank you.

Bob Barr
02-27-2011, 04:51 AM
You can put the image files into a subfolder of your 'public_html' folder. I typically use the folder name 'photos'. A reference to an image is coded as:

<img src="photos/picture1.jpg".....
Sorry, I'm not sure exactly how you'd do this with Wordpress.

CHoTai
02-27-2011, 07:37 PM
I've tried putting it in both public_html and public_ftp and both of them still ask for a login.

felgall
02-27-2011, 10:07 PM
There isn't any way to upload to the site without some sort of login unless you have a script on the site that does the upload. With WordPress there is an image upload option within WordPress that you might be able to use to do the upload but it will probably require that you have a WordPress login to your site to be able to use it.

Bob Barr
02-28-2011, 12:27 AM
There isn't any way to upload to the site without some sort of login unless you have a script on the site that does the upload. With WordPress there is an image upload option within WordPress that you might be able to use to do the upload but it will probably require that you have a WordPress login to your site to be able to use it.
While I could be wrong, I think the problem he's having is with visitors to the site being able to see his pictures rather than with uploading them.

nitrocrzy
02-28-2011, 04:09 AM
@Bob... sounds like your closer to the mark and that CHoTai probably is experiencing something like password protection.
My bet is you need to go into cPanel and under security un-password protect the directory you want to host the files from... then simply make sure the shared directory is under public_html somewhere like in a folder called photos.
http://bukerworld.com/tmp/password_protect.png

Bob Barr
02-28-2011, 07:04 AM
I think it has to do with his using FTP rather than putting the image files in a subfolder under 'public_html'. As far as I know, FTP always requires a login.

CHoTai:

I thought it would be faster to load them from my FTP server from Bluehost...

nitrocrzy
02-28-2011, 09:29 AM
Your probably right.... he has a test folder it looks like for uploading pic's too which will require an ftp login everytime. But he is linking all his photos to imageshack which with the sizes makes the pages load unreasonably slow. I say code it with HTML5 and use the FileAPI to allow drag and drop functionality. http://www.thebuzzmedia.com/html5-drag-and-drop-and-file-api-tutorial/ (http://www.thebuzzmedia.com/html5-drag-and-drop-and-file-api-tutorial/)

farcaster
02-28-2011, 10:26 AM
The original poster of this thread stated that Wordpress is being used for this. There are two well known ways to get images available locally to Wordpress.

First is to use the image folder in the theme that is being used. That way the scripts have direct access to them without messing with offsite calls or an ftp location that evidently does not work well in this case.

The second way is to place to images in the wp-content/uploads folder making use of the built-in media manager available in Wordpress.

It will be very difficult to add custom code for drag and drop to Wordpress functionality.