WordPress.org

Ready to get started?Download WordPress

Forums

GD bbPress Attachments
Option for image attachment display size? (1 post)

  1. joethepro
    Member
    Posted 9 months ago #

    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

    http://wordpress.org/plugins/gd-bbpress-attachments/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.