WordPress.org

Ready to get started?Download WordPress

Forums

rtMedia for WordPress, BuddyPress and bbPress
[resolved] Lightbox issue (4 posts)

  1. Versipellis
    Member
    Posted 1 year ago #

    I'm using the latest wordpress, buddypress and buddypress media.

    I get the lightbox when viewing from a users media albums, such as wall posts, and from their activity.

    However when I view from the widget, it just sends the page to the user profile. Is the widget supposed to do this or is it meant to be lightboxed? I rather need it lightboxed, so is there a way to do this?

    Also, is there a way to make the max image size larger than 800px wide?

    Regards,

    Versipellis

    http://wordpress.org/extend/plugins/buddypress-media/

  2. Saurabh Shukla
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hi,

    The widget is not lightboxed currently. While we'll add this in the next version, you can add this to the /buddypress-media/app/assets/main.js file of the plugin below this line
    if ( bp_media_vars.lightbox > 0 ) {


    jQuery('.widget-item-listing).on('click','li a',function(e){
    e.preventDefault();
    $current = jQuery(this);
    load_media($current);
    });

  3. Versipellis
    Member
    Posted 1 year ago #

    Thank you this code worked. However it didn't help with my second question regarding images.
    How do I make my max image size larger than 800px wide?

    Regards,

    Versipellis

  4. Saurabh Shukla
    Member
    Plugin Contributor

    Posted 1 year ago #

    We've added support for custom sizes in recent updates. So, now you can define your own sizes.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.