Read before updating: How to Update Kunena Templates - More detail

NTS Kay v5.4.1 - Quick Reply button missing

ciklon's Avatar Topic Author
Senior Member Senior Member
  • Posts: 63
  • Thanks: 11

NTS Kay v5.4.1 - Quick Reply button missing

5 years 3 months ago - 5 years 3 months ago
#16056
Bug: Missing Quick Reply button when select "Template NTS Kay / Advanced / Type Quickreply : Modal or Always visible" option in the administration. Тhis bug still exists from several versions without being fixed ... Reference: 9themestore.com/index.php/forum/nts-kay/...kay-5-2-x-bugs#13728


Solution (from Crypsisb3 template)
Changes in /components/com_kunena/template/nts_kay/layouts/message/item/actions/default.php

rows 24 to 26
Code:
<?php if ($this->quickreply && $quick == 0) : ?> <a data-related="kreply<?php echo $this->message->displayField('id'); ?>_form" role="button" class="btn btn-default Kreplyclick" rel="nofollow"><i class="glyphicon glyphicon-share-alt"></i> <?php echo JText::_('COM_KUNENA_MESSAGE_ACTIONS_LABEL_QUICK_REPLY'); ?> <?php echo KunenaIcons::undo() . ' ' . JText::_('COM_KUNENA_MESSAGE_ACTIONS_LABEL_QUICK_REPLY'); ?>

Replace with
Code:
<?php if ($this->quickreply && $quick != 2) : ?> <a id="btn_qreply" href="#kreply<?php echo $this->message->displayField('id'); ?>_form" role="button" class="btn btn-default Kreplyclick" data-toggle="modal" data-target="#kreply<?php echo $this->message->displayField('id'); ?>_form" rel="nofollow"> <?php echo KunenaIcons::undo() . ' ' . Text::_('COM_KUNENA_MESSAGE_ACTIONS_LABEL_QUICK_REPLY'); ?>


rows 69 to 71 (after the changes above)
Code:
<?php if ($this->quickreply && $quick == 0) : ?> <a data-related="kreply<?php echo $this->message->displayField('id'); ?>_form" role="button" class="btn btn-default Kreplyclick" rel="nofollow"> <?php echo KunenaIcons::undo() . ' ' . JText::_('COM_KUNENA_MESSAGE_ACTIONS_LABEL_QUICK_REPLY'); ?>

Replace with
Code:
<?php if ($this->quickreply && $quick != 2) : ?> <a href="#kreply<?php echo $this->message->displayField('id'); ?>_form" role="button" class="btn btn-default Kreplyclick" data-toggle="modal" rel="nofollow"> <?php echo KunenaIcons::undo() . ' ' . Text::_('COM_KUNENA_MESSAGE_ACTIONS_LABEL_QUICK_REPLY'); ?>
"I know that I know nothing" - Socrates

Attachments:

Last edit: 5 years 3 months ago by ciklon.

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

ntstore's Avatar
Administrator Administrator
  • Posts: 1213
  • Thanks: 240

Re: NTS Kay v5.4.1 - Quick Reply button missing

5 years 3 months ago
#16067
Hi ciklon,

Thank you very much about your solution. I applied your solution for the new version of the NTS Kay template. Please download the latest version and reinstall on your website.

Best regards,
Hung Pham
Email: 9themestore@gmail.com
Twitter: @9themestore
The following user(s) said Thank You: ciklon

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

ciklon's Avatar Topic Author
Senior Member Senior Member
  • Posts: 63
  • Thanks: 11

Re: NTS Kay v5.4.1 - Quick Reply button missing

5 years 3 months ago
#16068
Thank you @ntstore, the issue is solved.
"I know that I know nothing" - Socrates

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

Time to create page: 0.218 seconds