exstreme / Jcomments-4

Modified Jcomments 3.0.7 with Recaptcha 2 in comments. Adapted to Joomla 4. No compatibility with Joomla 1.5\2.5\3.x
16 stars 12 forks source link

Плагин Система - Комментарии под Joomla 4 #86

Closed Sulpher closed 1 year ago

Sulpher commented 2 years ago

В тройке есть плагин Система - Комментарии

заменяет вывод кнопки подробнее на свой блок с кол-вом комментов:

Снимок экрана 2022-05-18 в 21 16 18

на четверке после миграции вот так:

Снимок экрана 2022-05-18 в 21 16 48

не дописан функционал.

Globulopolis commented 2 years ago

В настройках плагина включите нужные переключатели.

image

Sulpher commented 2 years ago

Спасибо, я открыл не тот плагин (системный). фильтром искал по фразе jcomments.

в контент плагине вижу, под четверку меньше параметров.

планируете ли добавить недостающие из тройки?

Снимок экрана 2022-05-18 в 22 20 05
Sulpher commented 2 years ago

и по внешнему виду вот как получается:

Снимок экрана 2022-05-18 в 22 23 42

предлагаю доработать отображение в одну строку

Globulopolis commented 2 years ago

планируете ли добавить недостающие из тройки?

нет, т.к. шаблон используется джумловский для отображения Подробнее + добавлен css класс comments-readmore для ссылки комментариев. Шаблон можно переназначить, а стили для ссылки добавить в css.

Globulopolis commented 2 years ago

и по внешнему виду вот как получается:

вы можете сами это сделать через стили css.

Globulopolis commented 2 years ago

Попробуйте https://github.com/exstreme/Jcomments-4/raw/2eed1c2ac095ea046afe165a7718cf791799e354/build/packages/plg_content_jcomments.zip Просто поверх перезалейте 3 файла links.php, jcomments.php, jcomments.xml Должно помочь с отображением.

Sulpher commented 2 years ago

Накатил. теперь другое дело. спасибо!

Снимок экрана 2022-05-19 в 09 06 17
Sulpher commented 2 years ago

идея: посмотрите на скрин выше - иногда нужно не только primary, то и просто button default поставить. не хочется переопределять шаблон для плагина. предлагаю внести параметр: класс кнопки.

Globulopolis commented 2 years ago

идея: посмотрите на скрин выше - иногда нужно не только primary, то и просто button default поставить. не хочется переопределять шаблон для плагина. предлагаю внести параметр: класс кнопки.

Макет ссылок на комментарии сделан в одном стиле с макетом "Подробнее" в Джумле.

Vigoleto commented 2 months ago

"Comments" link in the list of Featured Articles doesn't seem to work. I still got “read more” button in my homepage. And of course, I have two read more buttons. Any solution?

Crop It 2024-4-20 at 10 13 54 Crop It 2024-4-20 at 10 14 19

Globulopolis commented 2 months ago

@Vigoleto I cannot reproduce the issue. Do you have caching enabled?

Vigoleto commented 2 months ago

Hello sir Not that I know of. It was a long journey migrating form Joomla 2.5 to 4.4.4, maybe I mess something up. :( Here is all the Jcomments in the Extensions Manager, maybe I did leave some old stuff? I’m using Yootheme pro – just figuring out how it works, I don’t know if its related. The site address is https://3joomlabackup.forumat-bg.com/ if that helps in some way

Crop It 2024-4-21 at 13 17 10

Globulopolis commented 2 months ago

@Vigoleto that yootheme pro template you are using?

Vigoleto commented 2 months ago

@Globulopolis Yes, I’m using yootheme pro template Do you think that the theme is causing the problem?

Globulopolis commented 2 months ago

@Globulopolis Yes, I’m using yootheme pro template Do you think that the theme is causing the problem?

Maybe. Try switch to default joomla template.

Vigoleto commented 2 months ago

@Globulopolis Ok, I did some testing as you kindly suggested.

  1. In Cassiopeia - no extra related article buttons on the front page.
  2. If I disable the “Content - Comments Jcomments “ Plugin and use Yootheme - no extra related article buttons on the front page.

So somehow the Yootheme overrides the rule - “Comments link in the list featured articles”. If I understand correctly, looking through the class “btn.btn-secondary”, the extra button is displayed as a secondary button. Maybe I could edit my theme articles.php so that that secondary button wont display. But I don’t know what to look for. I know is too much to ask for further help, but can you point me to the right direction?

Globulopolis commented 2 months ago

@Vigoleto I need some time to find solution for this issue.

Vigoleto commented 2 months ago

@Globulopolis Thank you kindly for looking in to it

Globulopolis commented 2 months ago

@Vigoleto see https://github.com/exstreme/Jcomments-4/issues/165#issuecomment-2092577614