We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7045
    • 225 Posts
    I found another thread with a similar issue, but it didn’t help with my particular issue. I just noticed this issue on my wife’s site, but I haven’t changed anything on it for a while, so I can’t figure out why it is happening. I guess it could be a server issue, maybe?

    The following is appearing above all the photos on the live site...

    # `+] [+maxigallery.embedtype:isnot=`smoothgallery`:then=` [+maxigallery.embedtype:is=`lightboxv2`:then=` `+] [+maxigallery.embedtype:is=`slimbox`:then=` `+]

    I double checked all my snippet calls, and they appear to be right. Also, when I initial installed the gallery, I followed the directions from the wiki, if that helps.

    Here is a link to the page.... http://amanda-brown.net/80s_day.html

    Thanks in advance
      • 7923
      • 4,213 Posts
      It seems that PHx syntax is not parsed from the template at all.. What’s your snippet call?

      Do you have PHx installed as a plugin? if you do, try disabling it and then viewing the gallery again (MaxiGallery has it’s own PHx class, what it will use if PHx is not found as a plugin).

      If that doesn’t help, you can also try setting &limit=`5` to the call, to make it only get 5 pictures to see if it helps anything.. I’ve seen couple cases similar to this, they only happened when there was a lot of images displayed per page. But the error in those started halfway down the thumbnail view, so your’s is little different as no PHx syntax is parsed at all, but try this too.

      If all else fails, you can create your own custom templates where PHx isn’t used at all.



        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 7045
        • 225 Posts
        I don’t have pHX installed as a plugin.

        The &limit=`5` option didn’t do anything.

        Here is my parent snippet call....[!MaxiGallery? &display=`childgalleries`!]

        Here is my child snippet call....[!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`5` &max_thumb_size=`110` &max_pic_size=`0` thumb_use_dropshadow=`1`!]
          • 7923
          • 4,213 Posts
          Hmm.. then try to install PHx as a plugin and see if it helps.. If it doesn’t you need to do custom templates that don’t use PHx.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 7045
            • 225 Posts
            Alright, I have installed pHX, but I don’t know anything about it, so I am not exactly sure what it is suppose to do. So far, nothing has changed, everything is still messed up.
              • 7923
              • 4,213 Posts
              PHx plugin should work right out-of-the-box.. Hmm.. ok, PHx just won’t work in your environment then.. don’t know why. Or actually, PHx is working in your site, but not fully. The PHx modifiers seem to work, but not the condition syntax. Or actually, conditions are working too, but not those that are inside another condition.

              Hmm.. don’t you see the PHx syntax in picture management page? That template also uses PHx conditions that are inside another PHx conditions. If that page is OK, the gallerypicturetpl.html file in MaxiGallery templates might have just corrupted.

              You might want to try and upload the MaxiGallery files again, if the template files have corrupted during file transfer or something. Get the [http://modxcms.com/forums/index.php/topic,24600.0.html]v0.6 test version[/URL], delete the existing /assets/snippets/maxigallery folder from your site and upload the new files in place.

              If that doesn’t work, you need to create custom templates where PHx syntax is (almost) stripped out..

              For example: you are using &display=`embedded` &embedtype=`slimbox` in your snippet call.. so you wan’t the parts in the templates that only affect slimbox display type. You can have conditional PHx syntax, but not so that there are conditions inside another condtitions.

              galleryPictureTpl is by default this:
              [+maxigallery.embedtype:is=`smoothgallery`:then=` 
              	<div class="imageElement">
              	<h3>[+maxigallery.picture.title:htmlent+]</h3>
              	<p>[+maxigallery.picture.descr:htmlent+]</p>
              	<a href="[+maxigallery.picture_link_url+]" title="[+maxigallery.strings.click_to_zoom+]" class="open"></a>
              	<img src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" class="full" />
              	<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" />
              	</div>
              `+]
              
              [+maxigallery.embedtype:isnot=`smoothgallery`:then=`
               
              <li>
              [+maxigallery.embedtype:is=`slidebox`:then=` 
              
              	<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox_[+maxigallery.path_to_gal+]gallery">
              
              `+]
              
              [+maxigallery.embedtype:is=`lightboxv2`:then=` 
              
              	<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox[image[+maxigallery.pageinfo.id+]set]" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
              
              `+]
              
              [+maxigallery.embedtype:is=`slimbox`:then=` 
              
              	<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox[image[+maxigallery.pageinfo.id+]set]" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
              
              `+]
              
              [+maxigallery.embedtype:is=`popup`:then=` 
              
              	<a href="javascript:void(0);" onClick="javascript:openWindow('[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]','[+maxigallery.picture.title:htmlent+]',[+maxigallery.picture_height_normal+],[+maxigallery.picture_width_normal+],'gallery');">
              
              `+]
              
              [+maxigallery.embedtype:is=`external`:then=` 
              
              	<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="external">
              
              `+]
              
              [+maxigallery.embedtype:is=`normal`:then=`
              	
              	<a href="[+maxigallery.picture_link_url+]">
              
              `+]
              	
              	 	<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
              	
              	</a>
              	[+maxigallery.picture.title:isnot=``:then=`
              		<p style="width: [+maxigallery.picture_width_thumb+]px;">
              		[+maxigallery.picture.title:htmlent+]
              		</p>
              	`+]
              </li>
              `+]
              


              So, create a new chunk based on that called "mg_slimbox_gallerypicturetpl" an have just the slimbox related stuff there without excess PHx syntax, eg:
              <li>
              	<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox[image[+maxigallery.pageinfo.id+]set]" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
              	 	<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
              	</a>
              	[+maxigallery.picture.title:isnot=``:then=`
              		<p style="width: [+maxigallery.picture_width_thumb+]px;">
              		[+maxigallery.picture.title:htmlent+]
              		</p>
              	`+]
              </li>
              


              Then add &galleryPictureTpl=`mg_slimbox_gallerypicturetpl` to your snippet call. That may be enough for you, try and see.

              Sorry for the babbling in this post.. note to self: should think it through first before starting to write something. smiley


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."