Results 1 to 9 of 9

Thread: Public Folder?

  1. #1
    Join Date
    Feb 2011
    Posts
    2

    Default Public Folder?

    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.

  2. #2
    Join Date
    Apr 2008
    Location
    Morgan Hill, CA
    Posts
    873

    Default

    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:
    HTML Code:
    <img src="photos/picture1.jpg".....
    Sorry, I'm not sure exactly how you'd do this with Wordpress.

  3. #3
    Join Date
    Feb 2011
    Posts
    2

    Default

    I've tried putting it in both public_html and public_ftp and both of them still ask for a login.

  4. #4
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    4,951

    Default

    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.

  5. #5
    Join Date
    Apr 2008
    Location
    Morgan Hill, CA
    Posts
    873

    Default

    Quote Originally Posted by felgall View Post
    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.

  6. #6
    Join Date
    Aug 2007
    Posts
    188

    Default

    @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.

  7. #7
    Join Date
    Apr 2008
    Location
    Morgan Hill, CA
    Posts
    873

    Default

    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...

  8. #8
    Join Date
    Aug 2007
    Posts
    188

    Default

    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/

  9. #9
    Join Date
    Apr 2008
    Location
    Chasing the Holy Grail - Pacific Northwest
    Posts
    1,312

    Default

    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.
    In the Hyperion universe, a farcaster is an instantaneous transportation device.
    Experience: The thing you get just after you need it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •