We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37449
    • 57 Posts
    I am having trouble getting my big images to display how I want.
    I have the gallery working fine, the thumb nail links to the picture and that displays OK, but I want the big image to display in slimbox, but it doesn’t - it just creates an external page.

    Here is my call

    [!MaxiGallery? &display=`normal` &pics_per_row=`4` &max_thumb_size=`110` &max_pic_size=`600` &thumb_use_dropshadow=`1` &thumb_shadow_bgcolor=`222222` &pic_use_dropshadow=`1` &pic_shadow_bgcolor=`222222` &keep_bigimg=`1` &bigimg_linkstyle=`slidebox`!]

    I’m probably missing something obvious!!

    Many thanks
    Daz
      formerly sumodaz on here!
      • 37449
      • 57 Posts
      I have managed to do some digging around on this problem and have discovered that the picturetpl template is not evaluating the &bigimg_linkstyle at all.

      I proved this by creating "galpicturetpl" as a copy of the original, and replacing the inserted <a href> section from the lightbox branch:

      	[+maxigallery.big_img_linkstyle:is=`external`:then=`
      
      		<a href="[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]" rel="lightbox" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
      
      	`+]
      


      The generated source now contains the ’rel=lightbox’ BUT my &bigimg_linktyle is still set to lightboxv2.

      If you visit http://www.darrenjehan.me.uk/page/gallery-home.php and look at the source code from one of the Nebula images, you’lll see the ’rel=lightbox’ on the image link, but the Lunar ones do not. They still show ’rel=external’.

      Here is the snippet call:
      [!MaxiGallery? &display=`normal` &pics_per_row=`4` &bigimg_linkstyle=`lightboxv2` &max_thumb_size=`110` &max_pic_size=`600` &thumb_use_dropshadow=`1` &thumb_shadow_bgcolor=`222222` &pic_use_dropshadow=`1` &pic_shadow_bgcolor=`222222` &keep_bigimg=`1`  &admin_webgroups=`UserGroup` &pictureTpl=`@FILE:assets/snippets/maxigallery/templates/galpicturetpl.html`!]
      



      So, why would the picturetpl not evaluate the linkstyle correctly?


      Thanks for any suggestions!
        formerly sumodaz on here!
        • 37449
        • 57 Posts
        Solved!!

        The WIKI page states the parameter is &bigimg_linkstyle but the maxigallery pho script has the line

        $mgconfig['big_img_linkstyle'] = (isset($big_img_linkstyle)) ? $big_img_linkstyle : "external"; // [ slidebox | lightboxv2 | popup | external ]
        


        Perhaps the WIKI should be updated.....
          formerly sumodaz on here!
          • 7923
          • 4,213 Posts
          Yes, true.. why don’t you update it? smiley


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 37449
            • 57 Posts
            lol! True grin

            Done...
              formerly sumodaz on here!