• Closed
  • Timothy Hall
    Spectator
    April 27, 2015 at 4:41 pm #16975

    When using Jetpack’s “Tiled Galleries” feature, thumbnails are linking to the Attachment Page instead of to the images themselves.

    I first posted this here.. and Alex suggested I start a new thread (here).

    Alex said..

    Could you search for the following code inside Justified Image Grid, and let me know what comes after?

    add_filter( ‘post_gallery’

    Thanks!


    @mendocinotim
    As Alex mentioned, could you please start your own thread, as per the Forum Welcome?
    http://wordpress.org/support/plugin/jetpack#postform

    Thank you!

    I spooked around in the Jetpack Plugin Directory until I found the following file..
    /wp-content/plugins/jetpack/modules/carousel/jetpack-carousel.php
    ..Where I found (starting on line 31) the following code:

    function init() {
    if ( $this->maybe_disable_jp_carousel() )
    return;

    $this->in_jetpack = ( class_exists( 'Jetpack' ) && method_exists( 'Jetpack', 'enable_module_configurable' ) ) ? true : false;

    if ( is_admin() ) {
    // Register the Carousel-related related settings
    add_action( 'admin_init', array( $this, 'register_settings' ), 5 );
    if ( ! $this->in_jetpack ) {
    if ( 0 == $this->test_1or0_option( get_option( 'carousel_enable_it' ), true ) )
    return; // Carousel disabled, abort early, but still register setting so user can switch it back on
    }
    // If in admin, register the ajax endpoints.
    add_action( 'wp_ajax_get_attachment_comments', array( $this, 'get_attachment_comments' ) );
    add_action( 'wp_ajax_nopriv_get_attachment_comments', array( $this, 'get_attachment_comments' ) );
    add_action( 'wp_ajax_post_attachment_comment', array( $this, 'post_attachment_comment' ) );
    add_action( 'wp_ajax_nopriv_post_attachment_comment', array( $this, 'post_attachment_comment' ) );
    } else {
    if ( ! $this->in_jetpack ) {
    if ( 0 == $this->test_1or0_option( get_option( 'carousel_enable_it' ), true ) )
    return; // Carousel disabled, abort early
    }
    // If on front-end, do the Carousel thang.
    $this->prebuilt_widths = apply_filters( 'jp_carousel_widths', $this->prebuilt_widths );
    add_filter( 'post_gallery', array( $this, 'enqueue_assets' ), 1000, 2 ); // load later than other callbacks hooked it
    add_filter( 'post_gallery', array( $this, 'set_in_gallery' ), -1000 );
    add_filter( 'gallery_style', array( $this, 'add_data_to_container' ) );
    add_filter( 'wp_get_attachment_image_attributes', array( $this, 'add_data_to_images' ), 10, 2 );
    }

    if ( $this->in_jetpack && method_exists( 'Jetpack', 'module_configuration_load' ) ) {
    Jetpack::enable_module_configurable( dirname( dirname( __FILE__ ) ) . '/carousel.php' );
    Jetpack::module_configuration_load( dirname( dirname( __FILE__ ) ) . '/carousel.php', array( $this, 'jetpack_configuration_load' ) );
    }
    }

    Is that what you wanted me to find?

    Timothy Hall
    Spectator
    Posts: 9
    April 27, 2015 at 4:57 pm #16982

    BTW – I’m not sure I was clear about the issue, which is in two parts.

    Part 1: Galleries created by hand, or when posted via email (with Jetpack’s Tiled Galleries enabled) do not behave like a gallery set – in other words, each image requires a click on it’s own thumbnail in the resulting generated tiled mosaic to view it; next/previous does not apply ‘although it is supposed to.

    Part 2: Galleries, when posted by email (with Jetpack’s Tiled Galleries enabled) connect to the Attachment Page ‘rather then to the image file.

    I just wanted to be sure you understand the bad behaviors here as I see them.

    Roman
    Spectator
    Posts: 3147
    April 27, 2015 at 5:15 pm #16988

    does this work with default wp theme?

    Timothy Hall
    Spectator
    Posts: 9
    April 27, 2015 at 5:41 pm #16989

    Nope – I tried it with the WP 2013 theme and my results are pretty much the same.
    After I switched to 2013 ‘I posted using Postie with several images.

    One thing I noticed after observing these test results (when I later switched back to my normal “Alora” theme)..
    The resulting Tiled Gallery post – when I click one of the front-end gallery thumbnails – pops up the following error message..

    Roman
    Spectator
    Posts: 3147
    April 27, 2015 at 5:46 pm #16990

    try more themes…if the result is same, then the bug is not in our theme

    Timothy Hall
    Spectator
    Posts: 9
    April 27, 2015 at 5:58 pm #16991

    I also tried it with the 2015 theme – same thing.
    I’ll try asking the Jetpack people instead.

    Roman
    Spectator
    Posts: 3147
    April 27, 2015 at 6:24 pm #16994

    yes, it will be better as we don’t provide support of 3rd plugins

    Timothy Hall
    Spectator
    Posts: 9
    April 27, 2015 at 6:31 pm #16995

    Something new I just discovered.
    To begin, I decided to disable Jetpack’s Tiled Gallery option, and instead installed another plugin “Tiled Galleries Carousel Without Jetpack” ‘that is described by the author as..

    Transform your standard image galleries into an immersive full-screen experience without Jetpack.This plugin is made from Jetpack Modules. You can get the tiled galleries with Full screen carousel with out connecting to wordpress.com account.

    I am running this with Jetpack enabled, but the Tiled Galleries Jetpack feature disabled.
    I am getting another result that suggests there is a theme-related component to this issue.

    Here’s a 3-min screen capture movie that shows what I did and what I am now getting.

    In brief..
    Using “Tiled Galleries Carousel Without Jetpack” and the 2013 theme, I created a gallery by hand – it worked.
    Then I switched back to the Alora theme, and without changing the page ‘I reloaded the preview, and the images in the gallery were no longer linked as a single gallery (as before) – in other words, each masonary gallery thumb on the front end would link only to that clicked image ‘with no next/prev behavior.

    Wouldn’t this be a them-related issue?

    Roman
    Spectator
    Posts: 3147
    April 27, 2015 at 8:02 pm #17006

    you have probably enabled the built in Lightbox feature of alora, Appearance -> Theme Options -> Advanced -> Disable Lightbox

    Timothy Hall
    Spectator
    Posts: 9
    April 29, 2015 at 5:35 pm #17054

    I finally solved this issue.
    I had to contact the Jetpack people – and they (Jeremy) pointed out that the Alora theme uses a “PrettyPhoto” plugin to handle galleries. So I did a search and found one called “Royal PrettyPhoto” – which I then installed; and this fixed the issues I was having with posting a gallery via email or by hand.

    I also disabled Alora’s own Lightbox and then reenabled it ‘testing for differences; and there is not any apparent difference on the front end.

    In any case – after several days fighting with this issue..
    Now the images are properly tied together as a gallery.

    I suggest you look into this.

    Here’s a link to the final forum exchange (for Jetpack) – where the final solution was uncovered.

    Roman
    Spectator
    Posts: 3147
    April 29, 2015 at 7:54 pm #17057

    well, I am assuming that disabling the Light box feature solved the issue 😕