[SLOVED]How To Remove the "Last Post" Column?
[SLOVED]How To Remove the "Last Post" Column?
11 years 8 months ago - 11 years 8 months ago
Hello everyone.
Some time ago I purchased a developer copy of NTS Kinfinite (Amazing theme btw), and I'm trying to remove the "Last Post' Column in the forum.
I've tried doing this before and ended up bringing down the forum entirely for the 30 minutes it took me to back track.
Anyone have any ideas on how to do this? I just want to keep it from displaying. It's handy, but relatively pointless for our forum.
Thanks,
Sam
Some time ago I purchased a developer copy of NTS Kinfinite (Amazing theme btw), and I'm trying to remove the "Last Post' Column in the forum.
I've tried doing this before and ended up bringing down the forum entirely for the 30 minutes it took me to back track.
Anyone have any ideas on how to do this? I just want to keep it from displaying. It's handy, but relatively pointless for our forum.
Thanks,
Sam
Last edit: 11 years 8 months ago by ntstore.
Please Log in or Create an account to join the conversation.
Re: How To Remove the "Last Post" Column?
11 years 8 months ago - 11 years 8 months ago
Hi Sam,
The first thank you about used our product, if you want to remove the last post column on your forum you can choose one of two solutions.
- Solution 1: You can use CSS rules to disable this column. Add below CSS rules to the template.css file of your default joomla template.
- Solutions 2: You remove this column from code file of the template. In this case you can follow some below steps to remove the latest post.
+ Open the list_embed.php file in the "[root]/components/com_kunena/template/nts_kinfinite/html/category/" path. Find and remove below code section.
+ Open the user_row.php file in the "[root]/components/com_kunena/template/nts_kinfinite/html/category/" path. Find and remove below code section.
Hope this helps
The first thank you about used our product, if you want to remove the last post column on your forum you can choose one of two solutions.
- Solution 1: You can use CSS rules to disable this column. Add below CSS rules to the template.css file of your default joomla template.
Code:
body #Kunena td.kcol-kcatlastpost {
display: none;
}
- Solutions 2: You remove this column from code file of the template. In this case you can follow some below steps to remove the latest post.
+ Open the list_embed.php file in the "[root]/components/com_kunena/template/nts_kinfinite/html/category/" path. Find and remove below code section.
Code:
<?php $last = $category->getLastTopic();
if ($last->exists()) { ?>
<td class="kcol-mid kcol-kcatlastpost">
<?php if ($this->config->avataroncat > 0) : ?>
<?php
$profile = KunenaFactory::getUser((int)$last->last_post_userid);
$useravatar = $profile->getAvatarImage('klist-avatar', 'list');
if ($useravatar) : ?>
<span class="klatest-avatar hidden-phone"> <?php echo $last->getLastPostAuthor()->getLink( $useravatar ); ?></span>
<?php endif; ?>
<?php endif; ?>
<div class="klatest-subject ks">
<?php echo JText::_('COM_KUNENA_GEN_LAST_POST') . ': '. $this->getLastPostLink($category) ?>
</div>
<div class="klatest-subject-by ks hidden-phone">
<?php
echo JText::_('COM_KUNENA_BY') . ' ';
echo $last->getLastPostAuthor()->getLink();
echo '<br /><span class="nowrap" title="' . KunenaDate::getInstance($last->last_post_time)->toKunena('config_post_dateformat_hover') . '">' . KunenaDate::getInstance($last->last_post_time)->toKunena('config_post_dateformat') . '</span>';
?>
</div>
</td>
<?php } else { ?>
<td class="kcol-mid kcol-knoposts"><?php echo JText::_('COM_KUNENA_NO_POSTS'); ?></td>
<?php } ?>
+ Open the user_row.php file in the "[root]/components/com_kunena/template/nts_kinfinite/html/category/" path. Find and remove below code section.
Code:
<?php
$last = $this->category->getLastTopic();
if ($last->exists()) { ?>
<td class="kcol-mid kcol-kcatlastpost">
<?php if ($this->config->avataroncat > 0) : ?>
<!-- Avatar -->
<?php
$profile = KunenaFactory::getUser((int)$last->last_post_userid);
$useravatar = $profile->getAvatarImage('klist-avatar', 'list');
if ($useravatar) : ?>
<span class="klatest-avatar"> <?php echo $last->getLastPostAuthor()->getLink( $useravatar ); ?></span>
<?php endif; ?>
<!-- /Avatar -->
<?php endif; ?>
<div class="klatest-subject ks">
<?php echo JText::_('COM_KUNENA_GEN_LAST_POST') . ': '. $this->getTopicLink($last, 'last', KunenaHtmlParser::parseText($last->subject, 30)) ?>
</div>
<div class="klatest-subject-by ks">
<?php
echo JText::_('COM_KUNENA_BY') . ' ';
echo $last->getLastPostAuthor()->getLink();
echo '<br /><span class="nowrap" title="' . KunenaDate::getInstance($last->last_post_time)->toKunena('config_post_dateformat_hover') . '">' . KunenaDate::getInstance($last->last_post_time)->toKunena('config_post_dateformat') . '</span>';
?>
</div>
</td>
<?php } else { ?>
<td class="kcol-mid kcol-knoposts"><?php echo JText::_('COM_KUNENA_NO_POSTS'); ?></td>
<?php } ?>
Hope this helps
Hung Pham
Email: 9themestore@gmail.com
Twitter: @9themestore
Email: 9themestore@gmail.com
Twitter: @9themestore
Last edit: 11 years 8 months ago by ntstore.
The following user(s) said Thank You: GreatGeak
Please Log in or Create an account to join the conversation.
Re: How To Remove the "Last Post" Column?
11 years 8 months ago
The CSS version didn't work all that well, but I wrapped the recommended code in PHP comments and it worked like a dream. Thanks!
I've got another question as well, but since it's completely off topic, I'll make a separate thread.
Thanks so much for your time and help!
I've got another question as well, but since it's completely off topic, I'll make a separate thread.
Thanks so much for your time and help!
Please Log in or Create an account to join the conversation.
Time to create page: 0.247 seconds