19 | 03 | 2024
Main menu
Login/Logout
 
Contacts
Реклама
Our button

Блог Ecolora

Код:

<a href="http://www.ecolora.com" target="_blank" rel="nothing" title="Ecolora.com"><img alt="Ecolora.com" height="31" src="http://www.ecolora.com/images/ecoloracom.gif" width="88" /></a>
Who's online

We have 196 guests and no members online

Лента новостей

Newsletter

Commedia 5.0 works with Joomla 4.2.4

2.6666666666667 1 1 1 1 1 Rating 2.67 (18 Votes)

English

Dear Commedia users! I'm very happy to inform You that i spent a lot of hours to update Commedia, so it can work now on Joomla 2.5, Joomla 3.10 and Joomla 4.2.4 (under PHP 8).

There are a lot of changes (actually most of them was made to make working Commedia on Joomla 4.2.4):

  • Replaced $db->query() with $db->execute() in Joomla 3+ files
  • In the Commedia content addon, the method of obtaining parameters is replaced by $this->params->def parameters with $this->params->get.
  • The component installation script contains values ​​for the client_id and custom_data fields (for the installation mail package with Joomla 4).
  • The install script disabled security checks with earlier versions of Commedia (which also lacked user-related settings).
  • In the addition of the Commedia button, the "if (!$app->isAdmin())" code has been replaced with "if (!$app->isClient('admin'))" for Joomla 3.7+ versions.
  • Fixed a bug that occurs in PHP 8.0: "0 count(): Argument #1 ($value) must be of type Countable|array, given string" related to users.
  • Updated the Joomla version detection function in the Commedia component library (needed to support polar work on Joomla from version 2.5 to version 4.2).
  • To work in Joomla 3.0+, the JRequest class has been replaced with JFactory::getApplication()->input.
  • The JView->assignRef method has been rewritten to work in Joomla 3.0+.
  • Disabled JHtml::_('behavior.tooltip') class.
  • To work in Joomla 3.0+, the JSubMenuHelper class has been replaced with JHtmlSidebar.
  • Modal windows output code has been rewritten to work correctly in Joomla 2.5-3 and Joomla 4.
  • Changed the code for inserting {commedia}{/commedia} tags into the editor to work in Joomla 4.
  • Fixed parsing the list of files in a folder when they are not there.
  • Fixed connection error with missing default options on some MySQL database fields.
  • Joomla 3.2+ now has its own settings form (different from the older version).
  • Fixed a bug in analyzing group access of users when voting and downloading a file.
  • Rewritten router file to work on Joomla 4.
  • Receiving parameters from $_REQUEST has been replaced with protected Joomla library class files.
  • Rewritten code for getting YouTube file data.

Russian

Уважаемые друзья! Наконец-то у меня появился месяц для того, чтобы провести работу по адаптации Commedia на Joomla 4.2.4 и PHP 8. И я с радостью представляю Вам последнюю версию, в которой сохранена поддержка Joomla 2.5, Joomla 3.10 и в том же время добавлена поддержка последней версии Joomla.

Сделано на самом деле было много

  • В файлах для версии Joomla 3+ заменено $db->query() на $db->execute()
  • В контентном плагине Commedia заменен способ получения значений параметров с $this->params->def на $this->params->get.
  • В скрипте установки компонента прописаны значения для полей client_id и custom_data (для совместимости пакета установки с Joomla 4).
  • В скрипте установки отключена проверка совместимости с более ранними версиями Commedia (в которых еще отсутствовали параметры, связанные с группами пользователей).
  • В плагине кнопки Commedia заменен код "if (!$app->isAdmin())" на "if (!$app->isClient('admin'))" для версий Joomla 3.7+.
  • Исправлена ошибка, возникающая на PHP 8.0: "0 count(): Argument #1 ($value) must be of type Countable|array, string given", связанная с группами пользователей.
  • Обновлена функция определения версии Joomla в библиотеке компонента Commedia (нужно для поддержки совместимости работы на Joomla с версии 2.5 по версию 4.2).
  • Для работы в Joomla 3.0+ класс JRequest заменен на JFactory::getApplication()->input.
  • Для работы в Joomla 3.0+ переписан метод JView->assignRef.
  • Отключен класс JHtml::_('behavior.tooltip').
  • Для работы в Joomla 3.0+ класс JSubMenuHelper заменен на JHtmlSidebar.
  • Переписан код вывода модальных окон для корректной работы в Joomla 2.5-3 и Joomla 4.
  • Изменен код вставки тегов {commedia}{/commedia} в редактор для работы в Joomla 4.
  • Исправлена ошибка анализа списка музыкальных файлов в папке, когда их там нет.
  • Исправлена ошибка в связи с отсутствием значений по умолчанию у некоторых полей таблиц базы данных MySQL.
  • Для Joomla 3.2+ теперь формируется своя форма настроек (отличная от более старых версий).
  • Исправлена ошибка анализа доступа групп пользователей при голосовании и скачивании файла.
  • Переписан файл роутера с учетом работы на Joomla 4.
  • Получение параметров из $_REQUEST заменено на безопасные методы классов библиотеки Joomla.
  • Переписан код получения данных файла YouTube.

 



Comments:

You have no rights to post comments

Discuss this article in the forums (7 replies).
for children older than 12 years