WordPress.org

Forums

BuddyPress Album
[resolved] Full size image (3 posts)

  1. loufernando
    Member
    Posted 1 year ago #

    Hi, is there a way to show full size images in the album rather than thumbnails?

    https://wordpress.org/plugins/bp-album/

  2. deepbevel
    Member
    Posted 1 year ago #

    in
    bp-album\includes\templates\album\pictures.php

    <div class="picture-thumb-box">
    
    	                <a href="<?php bp_album_picture_url() ?>" class="picture-thumb"><img src='<?php bp_album_picture_thumb_url() ?>' /></a>
    	                <a href="<?php bp_album_picture_url() ?>"  class="picture-title"><?php bp_album_picture_title_truncate() ?></a>
    				</div>

    change
    bp_album_picture_thumb_url

    to
    bp_album_picture_middle_url

    then you can adjust the size in css.

    .picture-thumb-box a img {
    
        max-height: 400px;
        max-width: 600px;
    }
  3. foxly
    Member
    Plugin Author

    Posted 1 year ago #

    It depends on what you mean by "full sized image". BP-Album resizes uploaded images to fit within the maximum image dimensions you set, to save disk space. If we didn't do this, users could upload huge files (20MB+) and use up all your disk space.

    The code above that @deepbevel posted is what most users would be looking for in this situation. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Album
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.