We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36635
    • 41 Posts
    Trying to get latest MaxiGallerySolo - download leads to:

    For some reason, the file repo-1439 was not found. The website administrators have been notified of this issue and will resolve it shortly.

    http://modxcms.com/extras.html?view=package/view&repository=10&package=262

    Is this file in an SVN location somewhere? Or at another download location?

    thanks
      • 28215
      • 4,149 Posts
      There might have been some hiccups in transferring the data over. We’ll fix this as soon as we can; the core team is a bit tied up in client work for the next week or so as we catch up with putting food on the table. smiley
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 36635
        • 41 Posts
        Yes, I totally understand. No problem, just working on a site and found I don’t have this snippet and could use it.

        Does anyone know where else I can get this snippet?

        Or would someone please paste it below...?

        thanks
          • 20413
          • 2,877 Posts
          Try this snippet:
          <?php
          ////////////////////////////////////////////////////
          // GrabMGImage
          // Made by Dimmy, modified by andrazk, modifed again by Dimmy (galid not needed anymore)
          // grabs a image from Maxigallery by using the image id
          // use like this [!GrabMGImage?&id=`5`&align=`left`!]
          // 
          // optional options are &thumb wil display the thumb version &imgtag will generate an imgtag, 
          // align parameter will align the img 
          // when both are set to 1 you wil get a thumb with a lik to the normal image including lightbox tags
          // when thumb is set to 1 and imgtag to 0 it wil display the thumb without as link
          // when both are set to 0 it wil only give the image path
          // when thumb is set to 0 and imgtag to 1 it wil display the normal image.
          // when both are not use at all it wil display the normal image.
          /////
          
          $thumb = isset($thumb)?$thumb:1;
          $imgtag = isset($imgtag)?$imgtag:1;
          $align = isset($align)?$align:'';
          $id = isset($id)? $id : 1;
          
          
          $result = $modx->db->select("*", $modx->getFullTableName('maxigallery')," id='".$id."'"); 
          $info = $modx->db->getRow($result);
          $folder="assets/galleries/".$info['gal_id']."/";
          $title = trim($info['title']);
          $imagename=$info['filename'];
          $description = trim($info['descr']);
          if($thumb == 1) {
          $filename= "tn_".$imagename;
          }else{
          $filename= $imagename;
          }
          
          
                  //lightbox scripts
                  $lightboxv2_css_link = '<link rel="stylesheet" href="' . $modx->config['base_url'] . 'assets/snippets/maxigallery/lightboxv2/css/lightbox.css" type="text/css" media="screen" />';
                  $lightboxv2_script_link1 = $modx->config['base_url'] . 'assets/snippets/maxigallery/lightboxv2/js/lightbox_setup.js'; 
                  $lightboxv2_settings = 'assets/snippets/maxigallery/lightboxv2/js/lightbox_lang_'.$this->mgconfig['lang'].'.js';
                  if(file_exists($modx->config['base_path'].$lightboxv2_settings)){
                      $lightboxv2_script_link2 = $modx->config['base_url'] . $lightboxv2_settings;
                  }else{
                      $lightboxv2_script_link2 = $modx->config['base_url'] . 'assets/snippets/maxigallery/lightboxv2/js/lightbox_lang_en.js';
                  }
                  $lightboxv2_script_link3 = $modx->config['base_url'] . 'assets/snippets/maxigallery/lightboxv2/js/prototype.js';
                  $lightboxv2_script_link4 = $modx->config['base_url'] . 'assets/snippets/maxigallery/lightboxv2/js/scriptaculous.js?load=effects';
                  $lightboxv2_script_link5 = $modx->config['base_url'] . 'assets/snippets/maxigallery/lightboxv2/js/lightbox.js';
          
                  $modx->regClientCSS($lightboxv2_css_link);
                  $modx->regClientStartupScript($lightboxv2_script_link1);
                  $modx->regClientStartupScript($lightboxv2_script_link2);
                  $modx->regClientStartupScript($lightboxv2_script_link3);
                  $modx->regClientStartupScript($lightboxv2_script_link4);
                  $modx->regClientStartupScript($lightboxv2_script_link5);
          
          
          $al = $align == '' ? $align : 'align="'.$align.'"';
          
          if(($thumb == 1)&&($imgtag==1)) {
          $output="<a href='[(site_url)]".$folder.$info['filename']."' rel='lightbox[maxigallery]' title='".$description."'><img ".$al." src='".$folder.$filename."' title='".$description."' alt='".$description."' class='thumbnail' /></a>";
          }
          
          if(($thumb == 0)&&($imgtag==1)) {
          $output="<img ".$al." src='".$folder.$filename."' title='".$description."' alt='".$description."' />";
          }
          
          if(($thumb == 0)&&($imgtag==0)) {
          $output=$folder.$filename;
          }
          
          if(($thumb == 1)&&($imgtag==0)) {
          $output="<img ".$al." src='".$folder.$filename."' title='".$description."' alt='".$description."' class='thumbnail' /></a>";
          }
          return $output;
          ?>
            @hawproductions | http://mrhaw.com/

            Infograph: MODX Advanced Install in 7 steps:
            http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

            Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
            http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
            • 36635
            • 41 Posts
            Thanks! That’s the kind of thing I was looking for, mucho gracias
              • 22303 MODX Staff
              • 10,725 Posts
              Quote from: splittingred at Mar 05, 2009, 11:44 AM

              There might have been some hiccups in transferring the data over. We’ll fix this as soon as we can; the core team is a bit tied up in client work for the next week or so as we catch up with putting food on the table. smiley
              FYI, the missing downloads should be fixed now; please let us know if you find any items in the repository that are still missing it’s associated file( s ).