Kunena 6.4.13 Released

The Kunena team has announce the arrival of Kunena 6.4.13 [6.4.13] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 6.0
Hint: This version is primarily intended to facilitate an upgrade if Joomla was first updated to version 6.1 before Kunena was up to dated.

Question Polls - "Date piker" and "Users who voted" are no more visible

More
6 months 3 weeks ago #234281 by xillibit
Hello,

The issue is still opened, it seems that the datepicker doesn't find the HTML item in the CKeditor context.

I will look for the see less which works for the first time and not for the others.

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
5 months 2 weeks ago #234545 by guidocx84

Hello,

The issue is still opened, it seems that the datepicker doesn't find the HTML item in the CKeditor context.

I will look for the see less which works for the first time and not for the others.

Hello, do you have any update about this issue? Thanks!

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #234718 by guidocx84

Hello,

The issue is still opened, it seems that the datepicker doesn't find the HTML item in the CKeditor context.

I will look for the see less which works for the first time and not for the others.

Hello, do you have any update about this issue? Thanks!

Hello, do you have any update about this issue? Do you think it will be fixed? Thanks.

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #235017 by guidocx84
Hello, do you have any update about this issue? Do you think it will be fixed? Thanks.

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #235018 by xillibit
Hello,

Sorry for the delay, i haven't looked on this for a while and i didn't find how to fix it

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
5 hours 20 minutes ago - 5 hours 19 minutes ago #235122 by guidocx84
Hi Kunena team,I would like to share two issues I found with polls in Kunena 6.x and the fixes I applied on my Joomla 5 website. Maybe they can be useful for future releases.1) "See less" button breaks "Show more" voters listIssue:In the poll results, when there are more than 5 voters, the "Show more" link works correctly and expands the full voters list.However, after clicking "See less", the extra users are hidden again, but the "Show more" button does not reappear. The only way to get it back is to reload the page.The cause was a wrong anchor target in:
Code:
components/com_kunena/template/aurelia/layouts/topic/poll/results/default.php
The generated HTML contained:
Code:
<a href="#kpoll-lesssers-span" class="link-show-extra-users" id="kpoll-lessusers">
There was a typo (
Code:
lesssers
instead of
Code:
lessusers
) and the anchor was also unnecessary because the JavaScript handles the visibility.I solved it by overriding the Kunena JavaScript behavior from my template custom JS:
Code:
jQuery(document).ready(function ($) { $(".link-show-extra-users").off('click').on('click', function (event) { event.preventDefault(); if (!$(this).hasClass('link-show-more')) { $("#kpoll-moreusers-span").hide(); $("#kpoll-moreusers").show(); $(this).hide(); } else { $("#kpoll-moreusers").hide(); $("#kpoll-moreusers-span").show(); $("#kpoll-lessusers").show(); $(this).hide(); } }); });
This also prevents the page from jumping because of the anchor.2) Poll expiration date picker not workingIssue:When creating a poll, the "Poll time to live" field no longer opens the date picker. Users have to manually enter the date.The date picker library itself was correctly loaded. The problem was in:
Code:
media/kunena/core/js/plugins/polls/dialogs/polls.js
The initialization code was:
Code:
var theInput = jQuery('#' + this.domId).find('input'); jQuery(theInput.attr('id')).datepicker({ showButtonPanel: true, format: "yyyy-mm-dd", todayHighlight: true, autoclose: true });
The issue is this line:
Code:
jQuery(theInput.attr('id'))
because
Code:
theInput.attr('id')
returns something like:
Code:
cke_177_textInput
and jQuery interprets it as a tag selector, not as an ID selector.The correct code should be:
Code:
theInput.datepicker({ showButtonPanel: true, format: "yyyy-mm-dd", todayHighlight: true, autoclose: true });
or alternatively:
Code:
jQuery('#' + theInput.attr('id')).datepicker({ showButtonPanel: true, format: "yyyy-mm-dd", todayHighlight: true, autoclose: true });
Since I prefer not to modify Kunena core files, I fixed it with a template Custom JS override using a MutationObserver that detects when the CKEditor poll dialog is created and applies the datepicker correctly:
Code:
jQuery(function ($) { const observer = new MutationObserver(function () { const input = $('.cke_dialog_ui_labeled_label') .filter(function () { return $(this).text().includes('Poll time to live'); }) .closest('.cke_dialog_ui_text') .find('input'); if (input.length && !input.hasClass('hasDatepicker')) { input.datepicker({ showButtonPanel: true, format: "yyyy-mm-dd", todayHighlight: true, autoclose: true }); } }); observer.observe(document.body, { childList: true, subtree: true }); });
After this, the date picker works again normally.I hope this helps. Both issues seem relatively easy to fix in future releases.Thanks for your great work on Kunena!
Last edit: 5 hours 19 minutes ago by guidocx84.
The following user(s) said Thank You: xillibit

Please Log in or Create an account to join the conversation.

Time to create page: 0.268 seconds