• I have a problem because the plugin doesn’t work at it best with my ligtbox.
    I have to say that i didn’t know exactly the lightbox as it is provided by the theme (seems to be a modified prettyphoto).
    The lightbox works but the gallery feature don’t.
    I have found that this feature work thanks to the rel attribute.
    All image in the same gallery have a rel with content is : lightbox[auto_group1], or lightbox[auto_group2]
    I have found the rel attribute in the plugin php and so i could change it to “lightbox” so the gallery function.
    But as i can’t provide a lightbox[auto_group#] with a number different for each group, i only got in the lightbox a unique gallery with all the images.
    I can’t find how to do this.
    Could you help me ?
    It works just fine without the plugin but here I loose a functionality with the plugin activated.
    Sadly and despite my investigations, i haven’t find how the writing of this lightbox[auto_group#] rel is done by the wordpress gallery shortcode so I haven’t been able to reproduce it here with the plugin activated.

    I hope you could help me.
    Sorry for my english, it is not my own language.

    I have also another problem.
    Have found that the type native would permit to restore for a gallery the wordpress way to do it.
    But it doesn’t work, I always have the your responsive gallery instead.
    From the shortcode option, or directly from the setting in the php, the type = native setting doesn’t work.
    Is this a know bug?
    Is there a way to make this possibility to use for a specific gallery the native wordpress short code ?

    Thanks for your help. and great plugin despite the problem I have.

    http://wordpress.org/plugins/responsive-gallery-grid/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dinobib

    (@dinobib)

    Hello,

    It could be useful for other but i have found a solution to have the lightbox gallery feature only for the actual gallery (and not the whole images from the page.

    on the plugin php
    start by setting the default option to none
    'rel' => '',

    and later in the file, change the rgg_id and the echo rel

    <div class="rgg_imagegrid <?php echo $class ?>" rgg_id="<?php echo $id = count($all_settings) ?>">
    
    <?php
    		foreach($media_ids as $mid) {
    			$info = wp_get_attachment_image_src( $mid, 'large' );
    			$link = $info[0];
    			$title = $captions == 'off' ? '' : get_post_field('post_excerpt', $mid);
    			$title_esc = htmlentities($title);
    			$img = wp_get_attachment_image($mid, $image_size);
    			echo "<a rel=\"lightbox[auto_group{$id}]\" href=\"$link\" title=\"$title_esc\">$img</a>";

    I think it not a clean solution as it use a count instead of getting an id but it works.

    I haven’t find why the 'type' =>'native' or type arg in short code don’t work.
    Is it only on my install that the native option don’t work, or is there others who also have this problem.

    Thread Starter dinobib

    (@dinobib)

    It seems, there is really a problem with fetching parameter in the shortcode.
    Whatever argument for size i put in the shortcode doesn’t change anything. Other parameter as maxrowheight indeed works. For me type and size at least doesn’t work.

    Plugin Author Jules Colle

    (@jules-colle)

    Thanks for the detailed information. Could you please update the plugin to version 1.3.2? All problems with the shortcode parameters should be solved. Make sure to keep a copy of the version you modified though, so you can get the lightbox back to work as well.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘prettyphoto lightbox’ is closed to new replies.