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

  1. joethepro
    Posted 2 years 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


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • GD bbPress Attachments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.