We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9994
    • 133 Posts
    thanx for ur option Sharkbate, it works, have made a choose flash swf dropdown like this before. (without the snippet)

    The first name of the dropdown is ’Easy2’ , is there a way to make it say ’No gallery choosen’ or do you have to change the mapname then sad ?
      Best CMS eva!
      • 26931
      • 2,314 Posts
      The first name of the dropdown is ’Easy2’ , is there a way to make it say ’No gallery choosen’ or do you have to change the mapname then
      this should work:
      <?php
      $output = '';
      $result = $modx->db->query( 'SELECT cat_name, cat_id FROM `modx_easy2_dirs` ' );
      $gallarray = $modx->db->makeArray( $result );
      $num_rows = mysql_num_rows($result);
      $lastgall = ($num_rows)-1;
      
      for ($i = 1; $i < $lastgall ; $i++) {
          $firstitems .= $gallarray[$i][cat_name];
          $firstitems .= '==';  
          $firstitems .= $gallarray[$i][cat_id];
          $firstitems .= '||'; 
      }
      $start = 'select a gallery' . '==' . ' ' . '||';
      $lastitem = $gallarray[$lastgall][cat_name] . '==' . $gallarray[$lastgall][cat_id];
      $output = "$start $firstitems $lastitem";
      return $output;
      ?>

      but if no gallery is selected and the field is empty ... it defaults to the gallery overview page. same as e.g. [!easy2?&w=100&h=100&thq=90!] ...without the gid parameter

      ...otherwise you could use a wrapper snippet, which won’t display the gallery call when the TV value is empty.
        • 9994
        • 133 Posts
        Hmm, yea it shows all albums when not selecting a gallery, i think it’s ok this way.
        dunno how to make the wrapper anyway.

        Thanx!
          Best CMS eva!
          • 3633
          • 84 Posts
          I am wondering if there is any way of changing all Russian to English, in highslide? When I click on an image Russian appears as it is loading, also when I mouse over the larger image Russian appears again. If there is any code which I need to delete, please post it here, so I can delete the right part of code.
            • 11055 ☆ A M B ☆
            • 3,112 Posts
            Quote from: bluegum at Mar 22, 2010, 11:56 PM

            I am wondering if there is any way of changing all Russian to English, in highslide? When I click on an image Russian appears as it is loading, also when I mouse over the larger image Russian appears again. If there is any code which I need to delete, please post it here, so I can delete the right part of code.
            just delete the language part inside the highslide-settings.js
            then it will use the default lang, which is english.
              Rico
              Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
              MODx is great, but knowing how to use it well makes it perfect!

              www.virtudraft.com

              Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

              Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

              Maintainter/contributor of Babel

              Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
              • 3633
              • 84 Posts
              Do you mean this part?

              hs.lang = {
                 loadingText :     '\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F...',
                 loadingTitle :    '\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B',
                 focusTitle :      '\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0447\u0442\u043E\u0431\u044B \u043F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432\u043F\u0435\u0440\u0435\u0434',
                 fullExpandTitle : '\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0434\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u0440\u0430\u0437\u043C\u0435\u0440\u0430',
                 fullExpandText :  '\u041E\u0440\u0438\u0433\u0438\u043D\u0430\u043B\u044C\u043D\u044B\u0439 \u0440\u0430\u0437\u043C\u0435\u0440',
                 creditsText :     '\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442 <i>Highslide JS</i>',
                 creditsTitle :    '\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0434\u043E\u043C\u0430\u0448\u043D\u044E\u044E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443 Highslide JS',
                 previousText :    '\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435',
                 previousTitle :   '\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 (\u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E)',
                 nextText :        '\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435',
                 nextTitle :       '\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 (\u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E)',
                 moveTitle :       '\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u044C',
                 moveText :        '\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u044C',
                 closeText :       'X',
                 closeTitle :      '\u0417\u0430\u043A\u0440\u044B\u0442\u044C (esc)',
                 resizeTitle :     '\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0440\u0430\u0437\u043C\u0435\u0440',
                 playText :        '\u0421\u043B\u0430\u0439\u0434\u0448\u043E\u0443',
                 playTitle :       '\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043B\u0430\u0439\u0434\u0448\u043E\u0443 (\u043F\u0440\u043E\u0431\u0435\u043B)',
                 pauseText :       '\u041F\u0430\u0443\u0437\u0430',
                 pauseTitle :      '\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u043B\u0430\u0439\u0434\u0448\u043E\u0443 (\u043F\u0440\u043E\u0431\u0435\u043B)',   
                 number :          '\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 %1 \u0438\u0437 %2',
                 restoreTitle :    '\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u043A\u0440\u044B\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435, \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u0438\u044F. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0441\u0442\u0440\u0435\u043B\u043A\u0438 \u0434\u043B\u044F \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E \u0438 \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0433\u043E \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0439.'
              };


              I have deleted all of that, and it is still displaying Russian.
                • 20014
                • 200 Posts
                my other post here which I deleted (edited) essentially was asking the same question, I deleted that as well but also (don’t know if this matters) but deleted all the russian files in modules/easy2/langs...it says "loading" now.

                the contents of highslide is as follows:
                hs.graphicsDir = "assets/libs/highslide/graphics/";
                hs.showCredits = false;
                hs.outlineType = "rounded-white";
                hs.allowSizeReduction = false;
                hs.outlineWhileAnimating = true;
                hs.captionEval = "this.a.title";
                hs.align = "center";
                // russian language
                // Add the controlbar
                if (hs.addSlideshow) hs.addSlideshow({
                	slideshowGroup: 'mygroup',
                	interval: 5000,
                	repeat: false,
                	useControls: true,
                	fixedControls: 'fit',
                	overlayOptions: {
                		opacity: .6,
                		position: 'bottom center',
                		hideOnMouseOut: true
                	}
                });
                  • 11055 ☆ A M B ☆
                  • 3,112 Posts
                  try this attached here
                    Rico
                    Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                    MODx is great, but knowing how to use it well makes it perfect!

                    www.virtudraft.com

                    Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                    Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                    Maintainter/contributor of Babel

                    Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                    • 11055 ☆ A M B ☆
                    • 3,112 Posts
                    Easy 2 Gallery 1.3.6 - Beta 3
                    http://code.google.com/p/easy2modx/issues/detail?id=6

                    + Critical Update on Javascript
                    + Now you can have multi IDs, for &fid, &gid, &rgid
                    + Introducing some parameters:
                    --+ &showonly : images | folders
                    --+ $customgetparams (for nesting with other snippets)
                    + Directory & images share same pagination
                    + English libraries, except lightwindow (author’s site is dead)
                    + Broken down Module into classes and templates, will be very useful for further development of any additional PHP functions or Module’s interface.
                    + See the help page
                    + etc... just test it.
                    + for other languages, please follow english files improvement.

                    please post bug.
                      Rico
                      Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                      MODx is great, but knowing how to use it well makes it perfect!

                      www.virtudraft.com

                      Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                      Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                      Maintainter/contributor of Babel

                      Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                      • 26931
                      • 2,314 Posts
                      Easy 2 Gallery 1.3.6 - Beta 3
                      http://code.google.com/p/easy2modx/issues/detail?id=6
                      wow grin awesome - thanks!