• My requirements are reasonably simple, but I can’t seem to figure out how to accomplish the tasks. Any help will be appreciated. Here is what I’m try to accomplish.

    1. Allow a user to log in. (It will be a generic user; that is multiple people given the same logon credentials.)
    2. Allow the user to upload a batch of images. (I’d like to limit the number of files, the file types, and file sizes allowed. Drag and drop of multiple images to an area on the page would be great, as users will be more likely to use the function than if they are required to open a dialog, manually identify and upload each individual image.)
    3. Other than viewing unrestricted site pages the user should have no other functions allowed but the uploading.
    4. The uploads should go to a single directory by user. (So if I provide a “Bob” login then images uploaded by Bob would be found in /wp-content/uploads/user_uploads/Bob/ or something similar.)
    5. It would be preferred for the user to have the ability to modify or delete files uploaded, but it’s not a critical function.
    6. Finally, I need a page where users (can be any site visitor, logged in or not) can view the images uploaded.
    7. The page provided for viewing “Bob’s” images needs to be automatically generated. That is, I shouldn’t have to manually manage a gallery for all uploaded images to show.

    I’ve tried using “N-Media File Upload and Manager Version 8 PRO” to upload the images. It does most of what I need, but in addition to just uploading the image it creates 4 scaled images plus a thumbs directory with a single thumbnail image in it. When I then try to use “Folder Gallery” (by Vincent Jalby), it shows all the scaled images in addition to the one I want.

    If the upload function didn’t create the 4 scaled images then I’d be in great shape. Apparently this is a WordPress function. If it can be turned off then that would be great. If not I need some other suggestions on how to accomplish my goal.

    I’m using Graphene as the theme and I do have comments turned off.

    Thanks in advance,
    Andrew

Viewing 1 replies (of 1 total)
  • Thread Starter EzySetup

    (@ezysetup)

    Follow up:

    In Settings/Media, I have set Thumbnail Size, Medium Size, and Large Size all to heights and widths of zero. I still get one scaled image created as well as a thumbnail in a “thumbs” directory.

    I have tried adding the following functions to my functions.php file for the Graphene child theme. None have responded as expected.

    As always, any help will be appreciated.

    Thanks,
    Andrew

    ATTEMPT 1

    function change_image_size_limit() {
    return 0;
    }
    add_filter('wp_thumbnail_creation_size_limit','change_image_size_limit');

    ATTEMPT 2

    function wpmayor_filter_image_sizes( $sizes) {
    unset( $sizes['thumbnail']);
    unset( $sizes['medium']);
    unset( $sizes['large']);
    unset( $sizes['wysija-newsletters-max']);
    return $sizes;
    }
    add_filter('intermediate_image_sizes_advanced', 'wpmayor_filter_image_sizes');
    
    function wpmayor_custom_image_sizes($sizes) {
    $myimgsizes = array(
    "image-in-post" => __( "Image in Post" ),
    "full" => __( "Original size" )
    );
    return $myimgsizes;
    }
    add_filter('image_size_names_choose', 'wpmayor_custom_image_sizes');

    ATTEMPT 3

    function remove_default_image_sizes( $sizes) {
        unset($sizes['thumbnail']);
        unset($sizes['medium']);
        unset($sizes['large']);
        return $sizes;
    }
    add_filter('intermediate_image_sizes_advanced','remove_default_image_sizes');

    AND OPTIONALLY WITH ATTEMPT 3

    if(function_exists('add_image_size')){
        add_image_size('my_100x100_crop',100,100,true); // Crop mode
        add_image_size('my_100x100_resize',100,100); // Resize mode
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Upload and view images’ is closed to new replies.