We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32652
    • 8 Posts
    Quote from: goldsky at Jul 14, 2010, 03:05 AM

    you can try to disable this part of code for a while.
    i’ll look for another way to sanitize input.
    <?php // only highlighting
    //if (isset($_GET)) {
    //    foreach ($_GET as $v) {
    //        if (!is_numeric($v)) {
    //            $v = filter_var($v, FILTER_SANITIZE_STRING);
    //        }
    //    }
    //}
    



    Thanks - аfter this action it works)
      • 31792
      • 125 Posts
      Quote from: goldsky at Jul 20, 2010, 07:34 PM



      @volodka,
      the last revision includes the Fancybox 1.3.1
      http://arslantic.co.id/evo/assets/libs/fancybox/

      да, всё верно, я перезалил себе все файлы. Только название и описание фотографии по-прежнему выводится отдельно от картинки...
        • 20050
        • 67 Posts
        Доброй ночи.

        Когда делаю вызов, например,

        [!easy2?gid=`5`!] , где "5" - id галереии, вот что мне выдаётся на странице:


        « MODx Parse Error »
        MODx encountered the following error while attempting to parse the requested resource:
        « PHP Parse Error »

        PHP error debug
        Error: set_time_limit() has been disabled for security reasons
        Error type/ Nr.: Warning - 2
        File: /home/u58441/kristallov.net/www/assets/modules/easy2/includes/classes/e2g.snippet.class.php
        Line: 1014
        Line 1014 source: set_time_limit(0);

        Parser timing
        MySQL: 0.0035 s (0 Requests)
        PHP: 0.0232 s
        Total: 0.0266 s


        В чём тут дело?

        Версия modx 1.04
          [!ditto? !][!ditto? !][!ditto &margaritto=`yes`!]
          • 11055 ☆ A M B ☆
          • 3,112 Posts
          you can disable Line 1014 source: // set_time_limit(0);
          one downside is that you will often have a blank white page, when you synchronize a lot of images.

          my suggestion:
          move to a better hosting who enable the set_time_limit();
            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.
            • 20050
            • 67 Posts
            Quote from: goldsky at Jul 23, 2010, 12:06 AM

            you can disable Line 1014 source: // set_time_limit(0);
            one downside is the you will often have a blank white page, when you synchronize a lot of images.

            my suggestion:
            move to a better hosting who enable the set_time_limit();

            Спасибо большое за отличный модуль. Над советом подумаю. smiley

              [!ditto? !][!ditto? !][!ditto &margaritto=`yes`!]
              • 31792
              • 125 Posts
              Скажите: а надо ли подключать скрипты в основном шаблоне, где у меня выводятся новости с галереями?
              Вот эти я имею ввиду:
              <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
              <script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
              <script type="text/javascript" src="js/jquery.fancybox-1.2.1.js"></script>
              <script type="text/javascript" src="js/jquery.fancybox-1.2.1.pack.js"></script>
                • 11055 ☆ A M B ☆
                • 3,112 Posts
                assets\modules\easy2\includes\configs\libs.config.easy2gallery.php

                <?php // highlighting
                        ,'fancybox' => array (
                                'alias' => 'fancybox 1.3.1 (jq)'
                                , 'regClient' => array (
                                        'CSS' => array ( 'screen' => array (
                                                        MODX_BASE_URL . 'assets/libs/fancybox/jquery.fancybox-1.3.1.css'
                                                )
                                        )
                                        , 'JS' => array (
                                                "http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"
                                                , MODX_BASE_URL . 'assets/libs/fancybox/jquery.fancybox-1.3.1.pack.js'
                                                , MODX_BASE_URL . 'assets/libs/fancybox/jquery.easing-1.3.pack.js'
                                                , MODX_BASE_URL . 'assets/libs/fancybox/jquery.mousewheel-3.0.2.pack.js'
                                                , MODX_BASE_URL . 'assets/libs/fancybox/e2g.fancybox.js'
                                        )
                


                anyway, why do you downgrade?
                  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.
                  • 32195
                  • 78 Posts
                  Озадачился одной проблемой, например мне надо вывести на главной странице все категории Фотогалереи с ID=7
                  вызов
                  [!easy2?gid=7&limit=4!]
                  


                  всё прекрасно выводится, вопрос в следующем как мне вызвать только 4 последние категории из раздела Фотогалереи вот такая у меня стрктура

                  Фотогалерея
                  -Раздел 1 (в нём картинки)
                  -Раздел 2 (в нём картинки)
                  -Раздел 3 (в нём картинки)
                  -Раздел 4 (в нём картинки)
                  -Раздел 5 (в нём картинки)
                  -Раздел 6 (в нём картинки)

                  сейчас выводятся все 6 разделов.

                  Заранее спасибо,
                    • 11055 ☆ A M B ☆
                    • 3,112 Posts
                      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.
                      • 32195
                      • 78 Posts
                      Это понятно, &limit=`4` выводит количество фотографий в категории. А вот как задать количество категорий на странице чтобы было так

                      Категория 1 Категория 2

                      Категория 3 Категория 4

                      [1] 2 3

                      Категория 5 Категория 6

                      Категория 7 Категория 8

                      1 [2] 3