We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11055 ☆ A M B ☆
    • 3,112 Posts
    1.3 ? easy2DropDown?
    I added the drop down since 1.4.x, and no drop down before that.
      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.
      • 16293
      • 4 Posts
      Quote from: goldsky at Feb 08, 2011, 06:46 AM

      1.3 ? easy2DropDown?
      I added the drop down since 1.4.x, and no drop down before that.

      При установки возникла ошибка, все скопировал, создал модуль, при запуске появляется ошибка
      Parse error: syntax error, unexpected ’<’ in /home/----/public_html/manager/processors/execute_module.processor.php(114) : eval()’d code on line 1

      Что это?
        • 11055 ☆ A M B ☆
        • 3,112 Posts
        delete the starting <?php and the ending ?> tags
          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.
          • 16293
          • 4 Posts
          Quote from: goldsky at Feb 08, 2011, 01:41 PM

          delete the starting <?php and the ending ?> tags
          пробовал тогда оно пишет:
          --------------------------
          if(IN_MANAGER_MODE!="true") die("INCLUDE_ORDERING_ERROR

          Please use the MODx Content Manager instead of accessing this file directly."); if(!$modx->hasPermission(’exec_module’)) { $e->setError(3); $e->dumpError(); } if(isset($_REQUEST[’id’])) { $id = intval($_REQUEST[’id’]); } else { $id=0; } // make sure the id’s a number if(!is_numeric($id)) { echo "Passed ID is NaN!"; exit; } // check if user has access permission, except admins if($_SESSION[’mgrRole’]!=1){ $sql = "SELECT sma.usergroup,mg.member " . "FROM ".$modx->getFullTableName("site_module_access")." sma " . "LEFT JOIN ".$modx->getFullTableName("member_groups")." mg ON mg.user_group = sma.usergroup AND member=’".$modx->getLoginUserID()."’". "WHERE sma.module = ’$id’"; $rs = $modx->dbQuery($sql); //initialize permission to -1, if it stays -1 no permissions //attached so permission granted $permissionAccessInt = -1; while ($row = $modx->fetchRow($rs)) { if($row["usergroup"] && $row["member"]) { //if there are permissions and this member has permission, ofcourse //this is granted $permissionAccessInt = 1; } elseif ($permissionAccessInt==-1) { //if there are permissions but this member has no permission and the //variable was still in init state we set permission to 0; no permissions $permissionAccessInt = 0; } } if($permissionAccessInt==0) { echo ""; exit; } } // get module data $sql = "SELECT * " . "FROM ".$modx->getFullTableName("site_modules")." " . "WHERE id = $id;"; $rs = mysql_query($sql); $limit = mysql_num_rows($rs); if($limit>1) { echo ""; exit; } if($limit<1) { echo ""; exit; } $content = mysql_fetch_assoc($rs); if($content[’disabled’]) { echo ""; exit; } // load module configuration $parameter = array(); if(!empty($content["properties"])){ $tmpParams = explode("&",$content["properties"]); for($x=0; $xevent->params = &$params; // store params inside event object if(is_array($params)) { extract($params, EXTR_SKIP); } ob_start(); $mod = eval($moduleCode); $msg = ob_get_contents(); ob_end_clean(); if ($php_errormsg) { if(!strpos($php_errormsg,’Deprecated’)) { // ignore php5 strict errors // log error global $content; $modx->logEvent(1,3,"$php_errormsg

          $msg",$content[’name’]." - Module"); if($modx->isBackend()) $modx->event->alert("".$content[’name’]." - Module"." runtime error:

          An error occurred while loading the module. Please see the event log."); } } unset($modx->event->params); return $mod.$msg; }
          ---------------------------
          А в логе только написана только первая ошибка.
            • 11055 ☆ A M B ☆
            • 3,112 Posts
            Wow...

            From where did you download the module?
            I suggest you to use 1.3.5 version of the 1.3 branch, or 1.4.0-RC4 for the 1.4 branch.
            http://modxcms.com/extras/package/619

            1.4.0 is the further development of 1.3.5, but it has a big difference on dealing the filenames.
            1.4.0 will try to rename them as the URL safe UTF8 names, but 1.3.5 will rename them as numbers.
            Since then, 1.3.5 does a good trick to handle cyrillics, while 1.4.0, well..., is still fighting to find the best way. lol...

            The development edge of 1.4.0 is on github (develop branch).
              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.
              • 26735
              • 34 Posts
              Hello!

              Version Easy2Gallery 1.3.5
              Gallery calling:
              [!easy2? gid=81 &orderby=random &limit=1 &w=642 &h=162 &thq=100!]


              I know that it’s not correctly. But I want to get random image from foder id 81.
              Can I do it (in version 1.3.5 or 1.4.0)?

              Thanks... And sorry for my english.
                • 29487
                • 385 Posts
                sergeykarpuk
                Вместо gid нужно писать rgid, и кавычки не забывать
                  • 7151
                  • 61 Posts
                  Кто-нибудь работал с Easy 2 Gallery при таких данных?
                  Modx - 1.0.5
                  Easy 2 Gallery - 1.3
                  PHP Version - 5.3.3
                  Apache 2.0 Handler

                  У меня после установки модуля пишет
                  Директория создана
                  Таблица easy2_dirs успешно создана.
                  Данные в таблицу easy2_dirs добавлены.
                  Таблица easy2_comments успешно создана.
                  Таблица easy2_files успешно создана.
                  Модуль обновлен
                  Сниппет создан

                  Установка завершена


                  Но после чего, никаких изменений в системе нет (разлогинивался).

                  При заходе в easy2 предлагает снова установить модуль ... и так по кругу.

                  Проверил на Modx 0.9.6.1 - такая же проблема на этот сервере.
                    • 26735
                    • 34 Posts
                    Quote from: Temus at Feb 11, 2011, 02:43 AM

                    Вместо gid нужно писать rgid, и кавычки не забывать
                    Спасибо! Как просто всё...
                      • 7151
                      • 61 Posts
                      Quote from: Designer at Feb 11, 2011, 09:50 AM

                      Кто-нибудь работал с Easy 2 Gallery при таких данных?
                      Modx - 1.0.5
                      Easy 2 Gallery - 1.3
                      PHP Version - 5.3.3
                      Apache 2.0 Handler
                      Проблема решилась.
                      Скрипт не удалил папку install (хотя я утвердительно на это ответил) и поэтому не работал.