demvlg Posted February 4, 2018 Report Share Posted February 4, 2018 поставил на локалхост чистый дистрибутив, распаковал инструменты разработчика как только включаю его в константс.пхп, получаю вот это: Quote Link to comment Share on other sites More sharing options...
Dmitriy427 Posted February 4, 2018 Report Share Posted February 4, 2018 В /system/Member/Member.php найти: if ( count( $this->_groups ) ) Заменить на: if( isset( $this->_groups ) and count( $this->_groups ) ) Quote Link to comment Share on other sites More sharing options...
demvlg Posted February 4, 2018 Author Report Share Posted February 4, 2018 не комильфо в код лезть оказалось дев мод с 7.2 не дружит на 7.1 все норм Quote Link to comment Share on other sites More sharing options...
Dmitriy427 Posted February 4, 2018 Report Share Posted February 4, 2018 Девмод со всем дружит, и нужен для для исправления ошибок, в частности. Этой конкретной ошибке в php7.2 просто повысили уровень до warning. Quote Link to comment Share on other sites More sharing options...
demvlg Posted February 4, 2018 Author Report Share Posted February 4, 2018 а новый темплет я могу добавить только в приложении? в плагине нельзя? Quote Link to comment Share on other sites More sharing options...
demvlg Posted February 4, 2018 Author Report Share Posted February 4, 2018 https://invisioncommunity.com/developers/docs/development/plugins/adding-resources-to-plugins-r47/ You should create your files using the extension ".phtml". Не совсем понимаю, где его создать? Quote Link to comment Share on other sites More sharing options...
Dmitriy427 Posted February 5, 2018 Report Share Posted February 5, 2018 В папке /plugins/myplugin/dev/html/ Quote Link to comment Share on other sites More sharing options...
demvlg Posted February 5, 2018 Author Report Share Posted February 5, 2018 и если я нажму "скачать" плагин, шаблон скомпилится в него? нифига, как то в самом плагине в хуках надо указать на наличие темплетов? Quote Link to comment Share on other sites More sharing options...
Dmitriy427 Posted February 5, 2018 Report Share Posted February 5, 2018 Всё скомпилится. Шаблоны, в xml-файле, кодируются в строку base64. Quote Link to comment Share on other sites More sharing options...
demvlg Posted February 6, 2018 Author Report Share Posted February 6, 2018 я открыл хмл файл, пусто там Quote Link to comment Share on other sites More sharing options...
demvlg Posted February 6, 2018 Author Report Share Posted February 6, 2018 а, все норм лежало не в папке dev Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.