We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8643
    • 271 Posts
    Подружил Managermanager и ContentHistory! smiley


    В MM jQuery перевёл в noConflict, все $ заменил на $j.
    Добавил возможность скрывать и переименовывать секцию ContentHistory (изменён managermanager/functions/sections.inc.php).

    Теперь для секции ContentHistory можно применять правила как и для других секций, например:
    mm_renameSection('history', 'История изменений документа');
    mm_hideSections('history', '', '6'); 
    

    В ContentHistory внесены изменения для удаления конфликта с ММ и возможности переименовывать секцию ContentHistory.
    Изменены content_history.tpl.phtml и content_history.css

    29 Июля 2009:Убрал ссылку на архив, там были ошибки smiley ,как починю выложу опять.
    Версия для EVO RC3 тут:http://modxcms.com/forums/index.php/topic,37985.0.html
    30 Июля 2009:Починил, архив в аттаче.Работает на 9.6.3(MM v0.3.2,ContentHistory 0.2.4), на Evolution работать не будет.MM теперь с jQuery 1.3.2.
    Инструкция по установке:
    1.Установите плагины,согласно инструкциям прилагаемым к плагинам. Плагины должны нормально работать по отдельности.
    2.Добавьте файлы из архива.
    3.В конфигурации плагина ContentHistory измените параметр "skin" с "default" на "mm".
      • 17883
      • 1,039 Posts
      Could you provide an english version of that? I am just looking for a non conflict solution ;-)

      Via Google translation:

      Можете ли вы представить на английском языке, что? Я просто ищу, не решение конфликта ;-)
        • 8643
        • 271 Posts
        Сообщники перевидите плиз первый пост на английский, а то я чёта затрудняюсь... rolleyes

        Если по простому, то для решения конфликта надо после стандартной установки этих плагинов заменить их папки в assets/plugins на те что представлены в архиве.



          • 1611
          • 591 Posts
          @MadeMyDay
          Just replace original files in assets/plugins to these from archive after initial install of plugins.

          Author have just switched jQuery in MM to nonConflict option, all $ chanched to $j. And make it possible to hide ContentHistory section from the page.

          In Content History was chanched these files: content_history.tpl.phtml and content_history.css.
            • 17883
            • 1,039 Posts
            Thanks a lot Andrey (and elastic of course ;-) ). I will try this when it comes to content history in my recent project. If it works I’ll post it in the english section.
              • 26709
              • 4 Posts
              Что-то у меня не получилось устранить конфликт. После попытки отредактировать страницу выдает чистое окно и все. Никакие манипуляции не помогли.

              Сделал все, как было указано: установил плагины, перезалил их из архива - и.... ничего

              Да. кстати. Заметил только что ошибку при попытке отредактировать страницу:

              « MODx Parse Error »
              MODx encountered the following error while attempting to parse the requested resource:
              « Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’’ at line 1 »
              SQL: SELECT * FROM `domoptom_comua`.`modx_site_content_history` WHERE `id`=’7’ ORDER BY `editedon` DESC LIMIT 0,
                • 8643
                • 271 Posts
                Quote from: Serg24 at Jun 20, 2009, 07:06 AM

                Что-то у меня не получилось устранить конфликт. После попытки отредактировать страницу выдает чистое окно и все. Никакие манипуляции не помогли.
                А по отдельности плагины работают?
                  • 28436
                  • 242 Posts
                  Hello folks

                  Very cool thank you! And its a good sample how to use the switch "skin" in plugin-settings.

                  1. just create a new folder under /skin/ eg. mm -> /skin/mm

                  2. copy the path and files you changed under your new folder

                  • /skin/mm/css/content_history.css
                  • /skin/mm/tpl/content_history.tpl.phtml

                  3. go to plugin-page -> tab "config" -> set the switch "skin" from "default" to "mm"(your skin-folder, beware the whitespaces)

                  Save the plugin. The files from your skin-folder will used.

                  the function work by this way

                  is file( path_to_"your-skin" )
                  set path to path_to_"your-skin"
                  else
                  set path to path_to_default


                  ciao Stefan
                    • 8643
                    • 271 Posts
                    Quote from: stefan at Jul 29, 2009, 11:17 AM

                    Hello folks

                    Very cool thank you! And its a good sample how to use the switch "skin" in plugin-settings.

                    1. just create a new folder under /skin/ eg. mm -> /skin/mm

                    2. copy the path and files you changed under your new folder

                    • /skin/mm/css/content_history.css
                    • /skin/mm/tpl/content_history.tpl.phtml

                    3. go to plugin-page -> tab "config" -> set the switch "skin" from "default" to "mm"(your skin-folder, beware the whitespaces)

                    Save the plugin. The files from your skin-folder will used.

                    the function work by this way

                    is file( path_to_"your-skin" )
                    set path to path_to_"your-skin"
                    else
                    set path to path_to_default


                    ciao Stefan

                    Danke schön stefan!

                    Plugin setup don’t working in EVO RC3.
                    Fix:comment out the line 76 in skin/default/plugin_formrender.tpl.phtml
                    //$E('div.sectionHeader').setText('<?php echo $ch->txt('Content History'); ?> v<?php echo $ch->params['version']; ?>');
                    
                    


                      • 28436
                      • 242 Posts
                      hallo elastic,

                      Danke!

                      ciao, Stefan