Plugin: BuddyPress Media

Join this plugin group to follow comments, support topics and reviews.

How to Add Member Images to Display on Profile Page (6 posts)

Started 7 months, 2 weeks ago by: T3Kaos

  • Profile picture of T3Kaos T3Kaos said 7 months, 2 weeks ago:

    I’ve installed BP-Album on my BBPress installation. I want to be able to display an entire users photos at the bottom of a member’s profile page so it all displays on the same place. How do I do this?

  • Profile picture of foxly foxly said 7 months, 2 weeks ago:

    @T3Kaos

    Please post a wireframe of how you’d like the page to be laid out.

    ^F^

  • Profile picture of T3Kaos T3Kaos said 7 months, 1 week ago:

    Please visit http://uknexttopmodel.com/Untitled-1.jpg

    I would like all of the users pictures to appear below the users personal information and should be selectable. If you have any better suggestions it would be awesome!

    Thanks

  • Profile picture of T3Kaos T3Kaos said 7 months ago:

    Anyone here……

    Please visit http://uknexttopmodel.com/Untitled-1.jpg

    I would like all of the users pictures to appear below the users personal information and should be selectable. If you have any better suggestions it would be awesome!

    Thanks

  • Profile picture of foxly foxly said 6 months, 3 weeks ago:

    @T3Kaos

    I can’t give you a precise solution, because I don’t have the source code to the template you’re using. However, paste the following source code inside the template where you’d like the pictures to show up:

    <?php do_action( 'bp_album_all_images' ); ?>

    Then, inside the file bp-album/includes/templates/album/all-images.php

    Modify the control block as follows:

    $args['owner_id']=$bp->displayed_user->id;
    $args['per_page']=24;
    $args['ordersort']='DESC';
    $args['orderkey']='id';         // Can also use 'random' to shuffle images, but will make site much slower
    $images_per_row = 5;

    This should result in the desired output.

    For more information see: Using The Global Media Page

    For a preview of what’s coming in 0.1.9 see: Using The Featured Content Loops

    Thanks!

    ^F^

  • Profile picture of jaseyb jaseyb said 6 months, 1 week ago:

    Brilliant exactly what I needed. Donate coming your way (today). Two questions:

    1) Is there an easy way to check the number of photos a user has?
    2) How can I gell in the displayed photos (on a users profile page) code to something like jquery/lightbox

    Thanks! Jas