WordPress.org

Ready to get started?Download WordPress

Forums

Awesome Flickr Gallery
[resolved] Modify Image Size (4 posts)

  1. wilf
    Member
    Posted 2 years ago #

    I have tried to find where to modify the image size of the gallery images. Each of the images are showing at 500px width and I would like to show them at 700px. Can you tell me where to make these changes.

    Also there are 20 images I am using to test and images 8, 19 & 20 will not load, using Colorbox it shows the text 'images cannot be loaded' and moves to next image, in Highslide it sticks on trying to load the image. Any ideas why this is happening?

    Test page: http://www.wilfjames.com/test/

    Thanks for a great plugin.

    TIA,

    Wilf.

    http://wordpress.org/extend/plugins/awesome-flickr-gallery-plugin/

  2. Ronak Gandhi
    Member
    Plugin Author

    Posted 2 years ago #

    Are you OK with modifying a PHP file on your server to make photos appear at 700px? Let me know.

    Regarding the second issue, it looks like some bug on the Flickr side. Flickr is providing a URL for particular size of photo that doesn't exist. Let me investigate this further. I'll get back to you.

  3. wilf
    Member
    Posted 2 years ago #

    Hi Ronak,
    Yes I would be OK to make changes to a PHP file on my server.

    Thanks for looking into the issue with Flickr, I look forward to hearing back from you.

    All the best,
    Wilf

  4. Ronak Gandhi
    Member
    Plugin Author

    Posted 2 years ago #

    You need to modify afg_libs.php file in the plugin.

    Identify these code blocks -

    /* Map for photo titles displayed on the gallery. */
    $size_heading_map = array(
        '_s' => '',
        '_t' => '0.9em',
        '_m' => '1em',
        'NULL' => '1.2em',
    );
    $afg_photo_size_map = array(
        'default' => 'Default',
        '_s' => 'Square (Max 75px)',
        '_t' => 'Thumbnail (Max 100px)',
        '_m' => 'Small (Max 240px)',
        'NULL' => 'Medium (Max 500px)',
        'custom' => 'Custom',
    );

    Now identify a photo size which you are not using in any of the galleries because we are going to replace that with large size photos. In this case let's say "Small (Max 240px)". The associated code for this size is _m. Replace it with _z in both the code blocks mentioned above. That would give you photos at 640px. If you want 800px photos, replace _m with _c.

    Make sure you go back to the plugin settings and click Save Changes button again for all your galleries where you want this change.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic