Coder Social home page Coder Social logo

jcomments-4's Introduction

JComments 4.0 (Stable)

This branch is stable. Adapting the component to work with Joomla 4 continuing in 4.1 branch.

Quick Start

Download latest version of package

Requirements

Joomla 4.2+

Joomla 5.0+

Migration from Jcomments 3

  • Make backup
  • Uninstall Jcomments 3 (your comments will be saved in the database)
  • Install Jcomments 4
  • Run database repair if need from administrator/index.php?option=com_installer&view=database
  • Go to administrator/index.php?option=com_config&view=component&component=com_jcomments and set up access rules again

Modules

Available modules can be downloaded here.

Plugins

Available plugins can be downloaded here.

Integrations

The JComments has integrations with other components. See the full list in the folder https://github.com/exstreme/Jcomments-4/tree/master/component/site/plugins

NOTE! For FW Gallery and VirtueMart integration see Extra section at https://github.com/exstreme/Jcomments-4/blob/master/FOR_DEVELOPERS.md

FAQ

jcomments-4's People

Contributors

artist-matrix avatar exstreme avatar globulopolis avatar thomdietrich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

jcomments-4's Issues

error to display comments

Hello
I am on joomla 4.0.4 and I updated jcomment to com_jcomments_v4.0.2
But on get an error :
0 Class 'JString' not found
when want to display my comments
Thanks for your help

Проблемы после установки/миграции

Итак, был сайт на Joomla 3.
Помня вот этот опыт (#85 (comment)),
сделал вот так:
перед миграцией на четверку, переключился на английский язык в админке, отфильтровал все расширения по фразе jcomments и деинсталлировал.
во время деинсталляции прежней версии получил такое:
Снимок экрана 2022-07-21 в 18 29 18

но больше в списке расширений jcomments не было.
обновился до J4 и поставил JComments 4.0.22.

Итого:
правила комментов с чекбоксом не отображаются (ссылка на проблему выше)
также я не вижу поддеркжи hCaptcha - в настройках нет такой опции.

исходя из чего делаю вывод:
либо деинсталляция/установка была некорректной, либо у вас пакет 4.0.22 не включает в себя заявленные правки.
скачивал отсюда:
https://github.com/exstreme/Jcomments-4/releases

Снимок экрана 2022-07-22 в 10 51 21

Снимок экрана 2022-07-22 в 10 52 10

Timeline for Modules

Hi all, do we have a timeline for when the JComments Latest, Latest Commented, Most Commented, Top Posters, and Latest Backend modules will be updated for Joomla 4, or a repo / branch where work has begun updating those? Thanks!

Комментарий не сохраняется в базе и нет ни каких ошибок

Добрый день!
J4 локально на openserver установлен pkg_jcomments_4.0.22.zip
при любых вариантах настроек (с капчей и без / с правильной капчей и не правильной / с лимитом на длину сообщения и без него) при нажатии кнопки "отправить" над блоком на пару секунд появляется колесико, потом оно исчезает и все.
ни каких сообщений: ни об удачной или неудачной отправке, ни о неверной капче, ни сообщения что тема короткая.
как результат ни в списке админки, ни в базе ничего нет.
капча мне пока не нужна, жалко что без нее тоже не работает.
Подскажите плизз куда копать.

Migration issue 4.0.14

Hey, sorry I can't name the issue better.
Thanks for maintaining this fork!

I started with an old export and your latest version 4.0.14. After installation of the plugin I imported my exported rows and end up with a working jcomments. irrespective of that, Joomla shows the following error:

image

I did apply all migration steps from 4.0.12.sql and 4.0.14.sql but that doesn't change anything. Any help would be great.

Thanks and best!!

H6 заменить на H4 в заголовках

Снимок экрана 2022-05-19 в 10 26 29

я поменяю, но предлагаю в дистрибутиве также сделать, поскольку логична семантика:

h1 - заголовок страницы
h2 - что-то в контенте
h3 - модуль
h4 - формы комментов

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

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

заменяет вывод кнопки подробнее на свой блок с кол-вом комментов:
Снимок экрана 2022-05-18 в 21 16 18

на четверке после миграции вот так:
Снимок экрана 2022-05-18 в 21 16 48

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

[WIP] Modules refactoring

As requested in #47

Modules to refactor:

  • JComments Latest
  • JComments Latest Commented
  • JComments Most Commented
  • JComments Top Posters
  • JComments Latest Backend

Avatar Plugin Error when saving new comment

Getting an error when I try to submit/save a new comment:

0 PlgJcommentsAvatar::onPrepareAvatar(): Argument #1 ($comment) must
be of type array, JCommentsTableComment given, called in /libraries/src/Plugin/CMSPlugin.php
on line 285

Call stack

# | Function | Location
1 | () | JROOT/plugins/jcomments/avatar/avatar.php:42
2 | PlgJcommentsAvatar->onPrepareAvatar() | JROOT/libraries/src/Plugin/CMSPlugin.php:285
3 | Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() | JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
4 | Joomla\Event\Dispatcher->dispatch() | JROOT/libraries/src/Application/EventAware.php:111
5 | Joomla\CMS\Application\WebApplication->triggerEvent() | JROOT/components/com_jcomments/helpers/event.php:53
6 | JCommentsEvent::trigger() | JROOT/components/com_jcomments/jcomments.php:1049
7 | JComments::getCommentItem() | JROOT/components/com_jcomments/jcomments.php:1099
8 | JComments::getCommentListItem() | JROOT/components/com_jcomments/jcomments.ajax.php:638
9 | JCommentsAJAX::addComment() | JROOT/components/com_jcomments/libraries/joomlatune/ajax.php:200
10 | JoomlaTuneAjax->_callFunction() | JROOT/components/com_jcomments/libraries/joomlatune/ajax.php:216
11 | JoomlaTuneAjax->processRequests() | JROOT/components/com_jcomments/jcomments.php:185
12 | require_once() | JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69
13 | Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() | JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
14 | Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() | JROOT/libraries/src/Component/ComponentHelper.php:389
15 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT/libraries/src/Application/SiteApplication.php:204
16 | Joomla\CMS\Application\SiteApplication->dispatch() | JROOT/libraries/src/Application/SiteApplication.php:243
17 | Joomla\CMS\Application\SiteApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:278
18 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/includes/app.php:63
19 | require_once() | JROOT/index.php:32

Invisible reCAPTCHA v3

Hello,
Any hope for getting Invisible reCAPTCHA to work? Now I get "Empty solution not allowed" when submitting the frontend form in Jcomments 4.0.23 running Joomla 4.2.3 with Cassiopeia template.
Thanks.

antispam

Hello,
Since a few days, Jcomment's antispam is not efficient anymore. I receive several false messages per day.
Are you aware of this?
Do you have a solution to solve this problem?
Thanks
Kind regards

Show avatar next to article comments

Hey friends,
I'm using latest versions of extension/plugins. The jcomments avatar plugin is installed and active but I can't enable it in the jcomments settings and no avatars are shown in comments list. Not sure how it should look, so here are some screenshots :) Some help would be appreciated!

image

image

image

image

Error installing package

I tried to install version 4.15 on a clean version of Joomla 4.10 and this is what I get:

obraz

Is there any solution to this?

Не поддерживает hCaptcha

В настройках выбрать можно, но при просмотре статьи появляется ошибка 0, плагин не найден.
Было бы здорово, если бы JComments поддерживал hCaptcha. Спасибо!

переименовать плагины и добавить фразу JComments

предлагаю переименовать плагины и добавить фразу Jcomments, чтобы при фильтрации расширений попадало в общий список.

почему это важно:
Снимок экрана 2022-05-18 в 21 38 53
разбирался, откуда дубль.

цитата:
_это jcomments плагин для четверки.
я проверял и отрубал всё по фильтру jcomments.

плагин называется так:
Материалы - Комментарии

в принципе, к вопросу о стандартизации названий_

"Refresh Objects" Infinite Loop

When I hit "Refresh Objects" in the Joomla Administrator, Components > JComments > Comments top bar, a modal opens that is stuck on 0%.

Taking a look at the console, it is repeatedly hitting /index.php?option=com_jcomments&task=refreshObjectsAjax&tmpl=component&lang=en over and over again with a response similar to this:

count: 0
hash: "bf80f965214488d334e01663a81137fc"
lang: "en-US"
lang_sef: "en"
object_group: null
percent: 0
step: 1407
total: 2

The only thing changing each time is step, which is increasing over and over again. Nothing else changes. There are only 13 comments total in this test site. No errors in the console.

refresh-objects
refresh-objects2
refresh-objects3

Can't make new posts

Hello! Great job with this new component for Joomla 4! I made the migration of my blog the last month and i installed in it your new version of JComments. Actually joomla version is: 4.0.5
I have configurated the component to function like the old one on the previous version of the blog made with Joomla! 3.9.x
The new component show the old posts properly and is perfectly integrated in the front end. Great!
The problem now is that when I try to insert a new post on an article, the system seems to accept it, but without giving a message or an error.
After the click on the submit button, the system reset the text message box and no post is added to the component.
I've tried to follow the logic of the software with the development tool of the browser. It seems function properly but there's no effect instead. I can't find the error (if there's one) or where the problem is...
Need help please!

Updated Joomla 4 from 3.10.6 date base error

I updated Joomla 3.10.6 to Joomla 4. Then I installed Jcomments 4.16 and got this information about the database.
obraz
Jcomments tables are empty. It is possible that the problem is with a clean version of Joomla 4.1.
Tested on Mysql 5.6.50 and PHP 8.0.12.

Changing the title of objects did not work.

Steps to reproduce:

  1. Change an article title on article with comments.
  2. Go to administrator/index.php?option=com_jcomments&view=comments

Result: an old article title.
Manual fix: run Refresh Objects

Affected:
admin panel - all lists with comments and objects;
modules which displaying list of objects(articles, etc.);
user subscriptions, emails.

German translations

Hey guys,
I started to re-introduce german translation for this extension. Would you accept a PR?

TypeError: Cannot read properties of null

смотрю сайт в lighthouse, вот что получаю:

TypeError: Cannot read properties of null (reading 'clientHeight') at JCommentsEditor.init (https://сайт.ru/media/com_jcomments/js/jcomments-v2.3.js:116:32) at new JCommentsEditor (https://сайт.ru/media/com_jcomments/js/jcomments-v2.3.js:16:7) at JCommentsInitializeForm (https://сайт.ru/:37:17)

Снимок экрана 2022-07-22 в 10 01 58

Дано: Joomla 4.1.5, JComments 4.0.22, Yootheme Pro - комменты выводятся через событие (после отображения содержимого).

Read more link generation bug

Hey!
Ran into another small issue. Hope you can help.

return '<a class="' . $css . '" href="' . $link . '" title="' . htmlspecialchars($title) . '">' . $text . '</a>';

This code generates the line under an article. In my joomla setup I chose the option to only show "read more" without the title of the article. The result looks like this:

grafik

The german strings are defined as follows:

COM_CONTENT_READ_MORE="Weiterlesen ... "
COM_CONTENT_READ_MORE_TITLE="Weiterlesen: %s"

As you can see, the first string should be used, but the second one is. If the joomla setting for including the title is set, the page looks as expected.

Any help would be highly appreciated!


The joomla setting that influences this is jform[show_readmore_title] under https://mywebsite.tld/administrator/index.php?option=com_config&view=component&component=com_content

Notice

Hi!
Please, how to resolve this ?
Notice: Undefined index: * in C:\xampp\htdocs\weblim\components\com_jcomments\cl asses\text.php on line 187

Notice: Trying to get property 'message_policy_whocancomment' of non-object in C:\xampp\htdocs\weblim\components\com_jcomments\cl asses\text.php on line 187

Many thanks

CSS Template Overrides in 4.0.17?

With the CSS files moving from the tpl folder to media/com_jcomments/css, how do you change CSS on a per-template basis now?

I had a custom template with css in components/tpl/<custom_template_name>/style.css that no longer appears to load in 4.0.17

translation

Hi ! how to complete the french translation ?
Which file should be modified ?
jcomments
Many thanks

comment-number and button-vote null/empty in tree view

$displayData->getVar('button-vote', 0) and $displayData->getVar('comment-number', 1) are both returning null/empty in Tree View currently, resulting in no comment # being shown and no vote buttons being shown. In the backend, Super User has permissions to "Allow voting on comments" and "Show votes" is set to Yes in View settings.

Updating issue after 4.0.16

Hey friends,
I can only assume this is due to the recent changes regarding css location? Can't figure out how to solve this. Any help would be much appreciated! Thanks

image

Ошибка при отключении юзера

Заметил, если отключить юзера, то такая ошибка возникает:

An error has occurred.

0 Argument 4 passed to PlgUserJComments::onUserAfterSave() must be of the type string, null given, called in /var/www/site.ru/www/libraries/src/Plugin/CMSPlugin.php on line 279 

Joomla 4.2.1 + последняя версия JC

jcomments-4 seem working

Hi guys
get get the codes zip from here, seem to be working at installation, will test out fully soon. THANK YOU.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.