Новости Joomla

Обновление пакета плагинов JL Like 5.0

Обновление пакета плагинов  JL Like 5.0

Обновление пакета плагинов JL Like 5.0.0Команда JoomLine рада представить долгожданное обновление плагина социальных кнопок JL Like — версию 5.0.0! В этом релизе мы сделали акцент на совместимости с последними версиями Joomla, улучшении производительности и расширении функционала.👩‍💻 Что нового в JL Like 5.0.0?- Полная совместимость с Joomla 5 — теперь плагин работает на всех актуальных версиях Joomla, включая Joomla 5.- Рефакторинг и оптимизация кода — проведена масштабная чистка и обновление внутренних классов для повышения стабильности и скорости работы.- Удаление устаревших зависимостей — полностью отказались от использования jQuery, что ускорило загрузку страниц и повысило безопасность.- Обновление CSS и удаление неиспользуемых стилей — интерфейс стал еще легче и современнее.- Удалена поддержка устаревших виджетов — например, функциональность твиттер-виджета вынесена из плагина.- Поддержка twitter:card — улучшена интеграция с социальными сетями для красивого отображения ссылок.- Гибкая настройка счетчиков лайков — теперь можно включать и отключать рандомизацию количества лайков.- Улучшено подключение скриптов — переход на WebAssetManager для более корректной работы с ресурсами.- Обновлены языковые переменныеРасширения всё ещё наследуют старую архитектуру плагинов Joomla 3, но были протестированы на Joomla 5.3.Новость на сайте JoomlineСтраница расширенияGitHub расширения@joomlafeed#расширения

Совет по Joomla: $db->getQuery(true) стал устаревшим

Совет по Joomla: $db->getQuery(true) стал устаревшим

👩‍💻 Совет по Joomla: $db->getQuery(true) стал устаревшим.Раньше при создании запросов в базу данных мы всегда получали объект запроса с помощью метода

getQuery(). Если передавался параметр
$new =
true, то получали новый запрос. Если без - последний.

use Joomla\CMS\Factory;$db = Factory::getContainer()->get('DatabaseDriver');$query = $db->getQuery(new: true);// и строим запрос
Под капот Joomla 4 вошёл Joomla Framework (PHP фреймворк а-ля Laravel, Yii и т.д.), а для Joomla 5 он обновился - версия 3.4.1 вышла 6 октября 2023г. В методе фреймворка есть примечание о том, что параметр
$new, который передавался в метод
getQuery() помечен как устаревший и будет удалён в версии фреймворка 4.0.
The parameter $new is deprecated and will be removed in 4.0, use %s::createQuery() instead.В Joomla 4 версия Joomla Framework была 2.x., в Joomla 5 - 3.x. Поэтому есть предположение, что с выходом Joomla 6 обновится и версия фреймворка - станет 4.0. Поэтому для получения объекта для новых запросов следует использовать метод
createQuery(). Он уже представлен в ядре и широко используется. При этом метод
getQuery() останется, но, скорее всего, будет выполнять функцию только геттера - получения текущего запроса.
@joomlafeed#joomla #php #разработка

0 Пользователей и 1 Гость просматривают эту тему.
  • 11 Ответов
  • 7715 Просмотров
*

nick71

  • Завсегдатай
  • 1145
  • 12 / 12
  • Сайты любой сложности - обращайтесь
На сайте галереи есть пример: http://www.phoca.cz/wallpapers/index.php/podyji/category/6-podyji
Подскажите как это сделать?
*

flyingspook

  • Живу я здесь
  • 3590
  • 247 / 9
почитай у них на демо сайте там примеры все описаны
*

nick71

  • Завсегдатай
  • 1145
  • 12 / 12
  • Сайты любой сложности - обращайтесь
хм, я ссылку дал на демо сайт, значит я там был. Раз пишу здесь - значит не нашел. А ты нашел? И просто не хочешь давать?
*

flyingspook

  • Живу я здесь
  • 3590
  • 247 / 9
у фоки есть плагин
вот его настройки

Displaying PhocaGallery Plugin


 
Add the following code into the article:

Categories displaying

altphocagallery view=categoriesalt

    * PhocaGallery - display PhocaGallery Plugin
    * view - categories | category | switchimage - display all categories, some image from category or the switch image
    * categoryid - number - ID of category which you want to display, in case of only 1 category
    * imagecategories - 0|1 - display or hide image beside the category name in a list of all the PhocaGallery Categories
    * imagecategoriessize - 0|1|2|3|4|5|6|7 - means 0 - small | 1 - medium | 2 - smallfolder | 3 - mediumfolder | 4 - smallshadow | 5 - mediumshadow | 6 - smallfoldershadow | 7 - mediumfoldershadow - image size beside the category name
    * hidecategories - number - hide the category in categories view. Set categories (categories id) which will be not displayed in categories tree. Separate each id with comma (,).

Important
When you copy the code from this website, please don't copy the { and }, because these are images. When you add the code to your own article you have to type the { and } yourself. (If it would be typed here, you wouldn't see the code, but the images). Don't use line breaks for the code. The code should be added without any line breaks into the editor.

Images displaying

phocagallery view=category|categoryid=2|
imageid=0|limitstart=0|limitcount=2|
fontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|
bordercolor=#B88A00|bordercolorhover=#86B300|
detail=1|displayname=1|displaydetail=1|displaydownload=1|float=right

    * PhocaGallery - display PhocaGallery Plugin
    * view - categories | category | switchimage - display all categories, some image from category or the switch image
    * categoryid - number - ID of category in which is the image saved (image you want to display)
    * imageid - номер - ID № фото которое надо отобразить на экране
    * imagerandom - 0|1 - Random image enable (1) or disable (0)
    * imageshadow - none | shadow1 | shadow2 | shadow3 - Показывать тень под изображением
    * limitstart - number - if you want to display more than one image - from which image will be displayed a group of images
    * limitcount - number - if you want to display more than one image - count of images which should be displayed
    * fontcolor - HTML color - font color
    * bgcolor - HTML color - background color
    * bgcolorhover - HTML color - background color (mouseover effect)
    * imagebgcolor - HTML color - image background color
    * bordercolor - HTML color - border color (you can use bordercolor=transparent for hiding the border)
    * bordercolorhover - HTML color - bofder color (mouseover effect)
    * detail - 0|1|2|3|4|5|6|7 - 0 - Modal Box | 1 - Standard Popup Window | 2 - Modal Box (only image) | 3 - Shadowbox | 4 - Highslide JS | 5 - Highslide JS (only image) | 6 - JAK lightbox | 7 - No Popup
    * displayname - 0|1 - 1-display or 0-hide name
    * displaydetail - 0|1 display or hide URL link to Detail window
    * displaydownload - 0|1 - 1-display or 0-hide URL link to Download window
    * displaybuttons - 0|1 - 1-display or 0-hide buttons in deatil view (slideshow buttons)
    * float - left|right - your image(s) can be positioned in the text (left or right - CSS float positioning)
    * namefontsize - number - font size of Name text (image name in category view in frontend - in px)
    * namenumchar - number - number of characters which will be displayed in Name text (image name in category view in frontend)
    * displaydescription - 0|1 - If you have set Display Description attribute to 1 in PhocaGallery and you want to display this description if you click on image in PhocaGallery Plugin, you must set it to 1
    * descriptionheight - number - If you have set Display Description attribute to 1 in PhocaGallery and you want to display this description if you click on image in PhocaGallery Plugin, you must set the Display Height, because the opened window (Modal Popup Box or Standard Popup Window) must be resized.
    * enableswitch - 0|1 - enable the switch option (1), only needed when the Switch Image is displayed, see next section.
    * overlib - 0|1|2|3 - enable overlib effect, (1) Only Image, (2) Only Description, (3) Image and Description
    * piclens - 0|1|2 - enable PicLens (Cooliris) on the site, (1) PicLens, (2) PicLens with start button (for browsers where no PicLens support is installed)
    * imageordering - set ordering of images: 1 - Ordering ASC, 2 - Ordering DESC, 3 - Title ASC, 4 - Title DESC, 5 - Date ASC, 6 - Date DESC, 7 - ID ASC, 8 - ID DESC, 9 - Random
    * pluginlink - set link type: 0 - link to detail image, 1 - link to category, 2 - link to all categories
    * type - set type of images: 0 - standard medium image, 1 - small image (Mosaic effect), 2 - large image (for single image displaying)
    * paddingmosaic - set padding of Mosaic type (in px)
    * highslidedescription - use this parameter if you want to display description in Highslide JS (image only) method - 1 - Title, 2 - Description, 3 - Title and Description

Switch Image displaying

phocagallery view=switchimage|switchheight=360|switchwidth=416|basicimageid=71
phocagallery view=category|categoryid=15|limitstart=0|limitcount=2|enableswitch=1

    * PhocaGallery - display PhocaGallery Plugin
    * view - categories | category | switchimage - display all categories, some image from category or the switch image
    * switchheight - number - height of the large image
    * switchwidth - number - width of the large image
    * basicimageid - number - ID of the image displayed when there is no hovering over the thumbnails.
*

nick71

  • Завсегдатай
  • 1145
  • 12 / 12
  • Сайты любой сложности - обращайтесь
разве это делается средствами плагина? Это должно ставиться в настройках галереи
*

FlahsAxel

  • Захожу иногда
  • 210
  • 0 / 0
Overlib effect

Как задать вывод при наведени (в статье через плагин) уменьшенного на половину или треть изображения, как это делается в самой Галерее?
Через плагин выводится в полный размер, что не удобно.
Спасибо.
*

Olg

  • Завсегдатай
  • 1181
  • 90 / 2
Посмотреть документацию у посетителей этого и многих других разделов нет сил...
Что бы мог означать пункт "Overlib Image Size" здесь?
Ответ написан там же:
Цитировать
Set overlib image size. Image displayed in overlib can be transformed (resized with HTML parameters) by rate
*

FlahsAxel

  • Захожу иногда
  • 210
  • 0 / 0
Olg

Отвечу в Вашем же стиле.
А прочитать мы наверное поленились...
Вышеописанная настройка НЕ ВЛИЯЕТ на отображение в статье через ПЛАГИН!
В статье всплывает ПОЛНОРАЗМЕРНАЯ картинка.
Задавал этот же вопрос на форуме Яна - не ответили.

Вероятно, в коде плагина нужно код подредактировать.
*

Olg

  • Завсегдатай
  • 1181
  • 90 / 2
Для плагина такой настройки нет.
*

Olg

  • Завсегдатай
  • 1181
  • 90 / 2
За вывод отвечают 55 строчек в плагине (после строки "// Overlib").
При сильной необходимости их и надо курочить.
*

FlahsAxel

  • Захожу иногда
  • 210
  • 0 / 0
Цитировать
их и надо курочить.
Не хватает знаний.
Если знаешь как, подскажи.
Самому и многим может пригодиться. А так приходится не включать Overlib (в статьях).

Вероятно здесь
Код
if (isset($image->extid) && $image->extid != '') {
// SIZE WILL BE NOT CORRECTED
$oImg = JHTML::_( 'image',$image->extl, '', '', '', $image->title );
} else {
$oImg = JHTML::_( 'image.site', str_replace ('phoca_thumb_m_','phoca_thumb_l_',$image->linkthumbnailpath), '', '', '', $image->title );
}
нужно подправить, чтобы изменить // SIZE WILL BE NOT CORRECTED
Спасибо.
« Последнее редактирование: 14.01.2011, 23:56:17 от FlahsAxel »
*

Ksuha

  • Новичок
  • 2
  • 0 / 0
Проблему не решили? Сейчас тоже ломаю над этим голову, надо что бы Overlib effect был в половину изображения.
Может подскажете как исправить?
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Название файла вместо имени фото

Автор dj_serg

Ответов: 3
Просмотров: 3595
Последний ответ 08.12.2022, 20:01:22
от marksetter
Чем сделать карту сайта

Автор stendapuss

Ответов: 8
Просмотров: 3717
Последний ответ 07.09.2019, 10:33:10
от dmitry_stas
PhocaGallery Description ( как на демо) вывод описания и заголовка к фото

Автор strela.mari

Ответов: 0
Просмотров: 3231
Последний ответ 18.03.2019, 13:32:08
от strela.mari
В PhocaGallery не появляются фото в списке подкатегорий

Автор sergspb

Ответов: 2
Просмотров: 1392
Последний ответ 22.05.2017, 23:45:48
от sergspb
Не выводятся фото в PhocaGallery Image Module

Автор OGreen

Ответов: 2
Просмотров: 1800
Последний ответ 01.03.2017, 10:19:55
от bdv1983