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

Feature request: New Topic - Button

A Topic Author
New Member New Member
  • Posts: 1
  • Thanks: 0

Feature request: New Topic - Button

5 years 4 months ago - 5 years 4 months ago
#15939
Due to the template tab menu being so high especially when you have an advert implemented between the tab/welcome section and the main body. It would be great if you can implement a "New Topic" button on the recent topics, unread and my topics.

Or just implement the category layout on the recent topics, unread and my topics pages
Last edit: 5 years 4 months ago by adriaanbuys.

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

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

Re: Feature request: New Topic - Button

5 years 4 months ago
#15946
Hi adriaanbuys,

Sorry about delay. Please follow some below steps to add the "Add new topic" button for the "Recent Topics" and "Unread" page.

- Open the "components/com_kunena/template/nts_ktrend/layouts/topic/list/default.php" file.
- Replace the below code:
Code:
<div class="nts-pagination"> <?php echo $this->subLayout('Widget/Pagination/List') ->set('pagination', $this->pagination->setDisplayedPages(5)) ->set('display', true); ?> </div>
by
Code:
<div class="nts-pagination"> <?php echo $this->subLayout('Widget/Pagination/List') ->set('pagination', $this->pagination->setDisplayedPages(5)) ->set('display', true); ?> <?php if(!JFactory::getUser()->guest) { ?> <a href="index.php?option=com_kunena&view=topic&layout=create" title="<?php echo Text::_('COM_KUNENA_NEW_TOPIC') ?>" class="kbutton btn-newtopic" style="display: inline-block; float: right;"><?php echo Text::_('COM_KUNENA_NEW_TOPIC') ?></a> <?php } ?> </div>

Save and reload your forum.

Best regards,
Hung Pham
Email: 9themestore@gmail.com
Twitter: @9themestore

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

Time to create page: 0.385 seconds