Knowledge Base - How to Remove Powered By Kunena in the Footer

Open: view.php

Located here: public_html/libraries/kunena/

Goto Line: 729

You will see this:

final public function poweredBy()
{
if ($this->inLayout)
{
throw new LogicException(sprintf('HMVC template should not call %s::%s()', __CLASS__, __FUNCTION__));
}

$credits = '<div style="text-align:center">';
$credits .= JHtml::_('kunenaforum.link', 'index.php?option=com_kunena&view=credits', JText::_('COM_KUNENA_POWEREDBY'), '', '', 'follow', array('style'=>'display: inline; visibility: visible; text-decoration: none;'));
$credits .= ' <a href="https://www.kunena.org" rel="follow" target="_blank" style="display: inline; visibility: visible; text-decoration: none;">'.JText::_('COM_KUNENA').'</a>';

if ($this->ktemplate->params->get('templatebyText'))
{
$credits .= ' :: <a href ="'. $this->ktemplate->params->get('templatebyLink').'" rel="follow" target="_blank" style="text-decoration: none;">' . $this->ktemplate->params->get('templatebyText') .' '. $this->ktemplate->params->get('templatebyName') .'</a>';
}

$credits .= '</div>';

echo $credits;
}

 

Delete the LINES below in YELLOW:

final public function poweredBy()
{
if ($this->inLayout)
{
throw new LogicException(sprintf('HMVC template should not call %s::%s()', __CLASS__, __FUNCTION__));
}

$credits = '<div style="text-align:center">';
$credits .= JHtml::_('kunenaforum.link', 'index.php?option=com_kunena&view=credits', JText::_('COM_KUNENA_POWEREDBY'), '', '', 'follow', array('style'=>'display: inline; visibility: visible; text-decoration: none;'));
$credits .= ' <a href="https://www.kunena.org" rel="follow" target="_blank" style="display: inline; visibility: visible; text-decoration: none;">'.JText::_('COM_KUNENA').'</a>';

if ($this->ktemplate->params->get('templatebyText'))
{
$credits .= ' :: <a href ="'. $this->ktemplate->params->get('templatebyLink').'" rel="follow" target="_blank" style="text-decoration: none;">' . $this->ktemplate->params->get('templatebyText') .' '. $this->ktemplate->params->get('templatebyName') .'</a>';
}

$credits .= '</div>';

echo $credits;
}

 

=====================================

We Are Not Done Just Yet!

=====================================

 

Now Open: display.php

Located here: public_html/libraries/kunena/controller/application/

Goto Line: 274

You will see this:

final public function poweredBy()
{
$templateText = (string) $this->template->params->get('templatebyText');
$templateName = (string) $this->template->params->get('templatebyName');
$templateLink = (string) $this->template->params->get('templatebyLink');
$credits = '<div style="text-align:center">';
$credits .= JHtml::_('kunenaforum.link', 'index.php?option=com_kunena&view=credits',
JText::_('COM_KUNENA_POWEREDBY'), '', '', 'follow',
array('style'=>'display: inline; visibility: visible; text-decoration: none;'));
$credits .= ' <a href="https://www.kunena.org" rel="follow"
target="_blank" style="display: inline; visibility: visible; text-decoration: none;">'
. JText::_('COM_KUNENA').'</a>';
if (trim($templateText)) {
$credits .= ' :: <a href ="'. $templateLink. '" rel="follow" target="_blank" style="text-decoration: none;">'
. $templateText .' '. $templateName .'</a>';
}
$credits .= '</div>';

return $credits;
}

 

Delete the LINES below in YELLOW:

final public function poweredBy()
{
$templateText = (string) $this->template->params->get('templatebyText');
$templateName = (string) $this->template->params->get('templatebyName');
$templateLink = (string) $this->template->params->get('templatebyLink');
$credits = '<div style="text-align:center">';
$credits .= JHtml::_('kunenaforum.link', 'index.php?option=com_kunena&view=credits',
JText::_('COM_KUNENA_POWEREDBY'), '', '', 'follow',
array('style'=>'display: inline; visibility: visible; text-decoration: none;'));
$credits .= ' <a href="https://www.kunena.org" rel="follow"
target="_blank" style="display: inline; visibility: visible; text-decoration: none;">'
. JText::_('COM_KUNENA').'</a>';
if (trim($templateText)) {
$credits .= ' :: <a href ="'. $templateLink. '" rel="follow" target="_blank" style="text-decoration: none;">'
. $templateText .' '. $templateName .'</a>';
}
$credits .= '</div>';

return $credits;
}

 

Now SAVE the file!

That's All!

 

Details

Created : 2017-08-04 18:50:23, Last Modified : 2017-08-04 19:17:28

© 1983 - 2018 Fix My Computer, Mark! All rights reserved.