We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16861 ☆ A M B ☆
    • 86 Posts
    I am adding the following gallery to MaxiGallery:


    http://tools.uvumi.com/gallery.html

    I have updated the maxigallery.class.inc.php file with the following two pieces of code:

    //uvumi scripts
    		$uvumi_css_link = '<link rel="stylesheet" href="' . $modx->config['base_url'] . MAXIGALLERY_PATH . 'uvumi/css/uvumi-gallery.css" type="text/css" media="screen" />';
    		$uvumi_script_link1 = $modx->config['base_url'] . MAXIGALLERY_PATH . 'uvumi/js/mootools-for-gallery.js'; 
    		$uvumi_script_link2 = $modx->config['base_url'] . MAXIGALLERY_PATH . 'uvumi/js/UvumiGallery-compressed.js';


    and

    //register uvumi scripts if in use
    		if(($this->mgconfig['display'] == "embedded" && $this->mgconfig['embedtype'] == "uvumi") || ($this->mgconfig['uvumi_pictureview'])) {
    			$modx->regClientCSS($uvumi_css_link);
    			// do not include mootools if javascript libraries are set to be disabled
    			if(!$this->mgconfig['disable_js_libs']) {
    				$modx->regClientStartupScript($uvumi_script_link1);
    			}
    			$modx->regClientStartupScript($uvumi_script_link2);
    		}


    when I preview the page, the images show up and the links have been placed in the html, but I noticed that the links are incomplete:

    	
    <div class="thumbscontainer">
    <ul class="thumbs">
    	<li>
    		<img src="/ncpr/assets/galleries/20/tn_nicoles_baby.jpg" class="thumbnail" title="  » Click to zoom ->" alt="  » Click to zoom ->" />
    		</a>
    	</li>
    	<li>
    		<img src="/ncpr/assets/galleries/20/tn_picture_1.png" class="thumbnail" title="  » Click to zoom ->" alt="  » Click to zoom ->" />
    		</a>
    	</li>
    </ul>
    </div>
    


    In the process of updating the MaxiGallery code, is there a step that I am missing or something else that needs to be updated? Your help is appreciated.

      Lee Brinckley
      Manassas, VA (Washington DC)
      Twitter - @leebrinckley
      http://www.leebrinckley.com
      • 16861 ☆ A M B ☆
      • 86 Posts
      If my OP is unclear, please let me know if there is any other info that I can provide. I find it odd that it is adding the <img> and a closing </a> tag, but the opening <a> tag is absent. Does anyone have any idea why that is happening?

      Thanks
        Lee Brinckley
        Manassas, VA (Washington DC)
        Twitter - @leebrinckley
        http://www.leebrinckley.com
        • 7231
        • 4,205 Posts
        You need to edit the tpl file for the gallery output, I think that the opening a tag may be in a conditional statement according to the gallery type and since yours is custom it is not recognizing it.
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don&#39;t know what it is.
          Do you, Mr. Jones? - [bob dylan]
          • 16861 ☆ A M B ☆
          • 86 Posts
          Thanks Shane! I will take a look at that.
            Lee Brinckley
            Manassas, VA (Washington DC)
            Twitter - @leebrinckley
            http://www.leebrinckley.com
            • 16861 ☆ A M B ☆
            • 86 Posts
            I appreciate your help. I figured there were other files that needed to be updated as well since I was integrating a custom image gallery. I had to update the ’gallerypicturetpl.html’ file.

            Thanks
              Lee Brinckley
              Manassas, VA (Washington DC)
              Twitter - @leebrinckley
              http://www.leebrinckley.com
              • 7231
              • 4,205 Posts
              Glad to know it worked out. When you get a chance post the files/instruction for using the uvumi script with MaxiGallery wink
                [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                Something is happening here, but you don&#39;t know what it is.
                Do you, Mr. Jones? - [bob dylan]
                • 16861 ☆ A M B ☆
                • 86 Posts
                I am still working out some kinks, but once it is up and running, I will post instructions/files.
                  Lee Brinckley
                  Manassas, VA (Washington DC)
                  Twitter - @leebrinckley
                  http://www.leebrinckley.com