WordPress.org

Ready to get started?Download WordPress

Forums

thumbnail folder (9 posts)

  1. marosell
    Member
    Posted 8 years ago #

    If I want to make thumbnails with the upload, how can I make those thumbnails go in another folder?

    Thanks,
    marosell

  2. Lorelle
    Member
    Posted 8 years ago #

    Put them there?

    Honestly. That's the answer. You can put your graphics anywhere you want, in any folder you want, whether uploading through WordPress or FTP or whatever. Tell them to go into the wp-images/thumb folder or whatever you name it. And then make sure you make your links accordingly.

    Your site's folder system isn't much more different than your hard drive folder system.

  3. marosell
    Member
    Posted 8 years ago #

    i want to use the upload thing in wordpress though. if I make a thumbnail when uploading, which folder does it go in under the miscelaneous options? Destination or URI?

    Thanks,
    marosell

  4. moshu
    Member
    Posted 8 years ago #

    They should point to the same, just in different way - otherwise it doesn't work: In the Destination field that's the server path, while the URI (URL) line gives you... well, the URI :)
    Both the normal size pics and the thumbnails go to the same directory if you upload and, respectively, cretate them through this WP feature. The thumbnail pictures will have a thumb- prefix.

  5. marosell
    Member
    Posted 8 years ago #

    is there no way to make the thumbnails go into another folder? i want to set the photogallery as the upload folder so its easy to upload pictures from anywhere without an ftp, but the photogallery will automatically pick up on the thumbnails and display them as well.

    thus, i need the thumbnails to go elsewhere (and i plan on trying to make the output of text [if a thumbnail is made] to give code for an href link to the folder the real picture is in)

    has anyone done this, or know where i might start if i was trying to code this myself? btw, this would make a good plugin *wink wink*

    thanks
    marosell

  6. kaat
    Member
    Posted 8 years ago #

    Hello, couple of thoughts ...

    - Perhaps your gallery software can be "told" to ignore thumbnails with a certain prefix?

    - Here is the line from admin_functions.php at around line 251 that determines the destination of thumbnails. I wouldn't really recommend it, but you could modify it:

    $thumbpath = substr($file, 0, strrpos($file, '/')) . '/thumb-' . $path[count($path)-1];

    $file holds the entire path - including filename - of the large image. So what it's doing here is chopping it down to just the path - no trailing slash - then inserting /thumb- and adding back on the large image filename.

  7. moshu
    Member
    Posted 8 years ago #

    Or, you can always choose a gallery script that has its own upload feature...

  8. zz85
    Member
    Posted 8 years ago #

    marosell, could photozip be what you need?

    http://wordpress.org/support/topic/37913

  9. marosell
    Member
    Posted 8 years ago #

    sure, ill try that, thanks zz85

Topic Closed

This topic has been closed to new replies.

About this Topic