Support » Plugins and Hacks » Option for image attachment display size?

Option for image attachment display size?

  • joethepro


    Hello, Love the plugin. I have a lightbox setup automatically for the images that are uploaded with this plugin. What about adding a setting to be more bandwidth friendly?
    I’ve modified the plugin on line 265 in gd-bbpress-attachments/code/attachments/front.php :

    $img_details = wp_get_attachment_image_src($attachment->ID, 'large');
    $file_url = $img_details[0];

    So that the users aren’t downloading the full image. You could setup an admin option to ask for the size on the wp_get_attachment_image_src call too.

    Thanks, Joe


  • The topic ‘Option for image attachment display size?’ is closed to new replies.