Kunena 7.0.9 & Kunena 6.4.14 – Security Updates Released
The Kunena team has announce the arrival of Kunena 7.0.9 [K 7.0.9] 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 7.0
Question Polls - "Date piker" and "Users who voted" are no more visible
8 months 3 weeks ago #234281
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Polls - "Date piker" and "Users who voted" are no more visible
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.
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.
7 months 3 weeks ago #234545
by guidocx84
Hello, do you have any update about this issue? Thanks!
Replied by guidocx84 on topic Polls - "Date piker" and "Users who voted" are no more visible
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.
6 months 3 weeks ago #234718
by guidocx84
Hello, do you have any update about this issue? Do you think it will be fixed? Thanks.
Replied by guidocx84 on topic Polls - "Date piker" and "Users who voted" are no more visible
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.
4 months 1 day ago #235017
by guidocx84
Replied by guidocx84 on topic Polls - "Date piker" and "Users who voted" are no more visible
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.
4 months 23 hours ago #235018
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Polls - "Date piker" and "Users who voted" are no more visible
Hello,
Sorry for the delay, i haven't looked on this for a while and i didn't find how to fix it
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.
2 months 5 days ago - 2 months 5 days ago #235122
by guidocx84
Replied by guidocx84 on topic Polls - "Date piker" and "Users who voted" are no more visible
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:
The generated HTML contained:
There was a typo (
instead of
) 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:
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:
The initialization code was:
The issue is this line:
because
returns something like:
and jQuery interprets it as a tag selector, not as an ID selector.The correct code should be:
or alternatively:
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:
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!
Code:
components/com_kunena/template/aurelia/layouts/topic/poll/results/default.php
Code:
<a href="#kpoll-lesssers-span" class="link-show-extra-users" id="kpoll-lessusers">
Code:
lesssers
Code:
lessusers
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();
}
});
});
Code:
media/kunena/core/js/plugins/polls/dialogs/polls.js
Code:
var theInput = jQuery('#' + this.domId).find('input');
jQuery(theInput.attr('id')).datepicker({
showButtonPanel: true,
format: "yyyy-mm-dd",
todayHighlight: true,
autoclose: true
});
Code:
jQuery(theInput.attr('id'))
Code:
theInput.attr('id')
Code:
cke_177_textInput
Code:
theInput.datepicker({
showButtonPanel: true,
format: "yyyy-mm-dd",
todayHighlight: true,
autoclose: true
});
Code:
jQuery('#' + theInput.attr('id')).datepicker({
showButtonPanel: true,
format: "yyyy-mm-dd",
todayHighlight: true,
autoclose: true
});
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
});
});
Last edit: 2 months 5 days 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.215 seconds