Remove Powered by Kunena Forum (Kunena 2.0)
Posted: Sun Jul 01, 2012 8:29 pm
How can I remove the "Powered by Kunena Forum" in Kunena 2.0? Its not the same as it was with 1.7...
Joomla! Community, help and support.
https://forum.joomla.org/
Code: Select all
echo $this->poweredBy();
Code: Select all
// echo $this->poweredBy();
Code: Select all
final public function poweredBy() {
$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="http://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;
}
What does that have to do with this issue?sozzled wrote:For the official response from the Kunena Project, please read Please help me understand the GPL for Kunena
Thank you!kenmcd wrote:.
In file
joomla25_root/administrator/components/com_kunena/libraries/view.php
Find this code at around line 73Change toCode: Select all
echo $this->poweredBy();
In my brief tests that eliminated the nag.Code: Select all
// echo $this->poweredBy();
Should we expect anything less from Sozzled? This is the reason I don't waste my time with the so-called Kunena support.kenmcd wrote:What does that have to do with this issue?sozzled wrote:For the official response from the Kunena Project, please read Please help me understand the GPL for Kunena
.
Code: Select all
if ($this->config->get('credits', 1)) echo $this->poweredBy();
Code: Select all
// if ($this->config->get('credits', 1)) echo $this->poweredBy();
brian wrote:Its no longer line 73 but is now line 82
changetoCode: Select all
if ($this->config->get('credits', 1)) echo $this->poweredBy();
Code: Select all
// if ($this->config->get('credits', 1)) echo $this->poweredBy();
I think I found a better method. You can update the kunenu_configuration table - add a credits = 0 parameter and it will no longer show the item. That way you don't have to hack a component file.brian wrote:Its no longer line 73 but is now line 82
changetoCode: Select all
if ($this->config->get('credits', 1)) echo $this->poweredBy();
Code: Select all
// if ($this->config->get('credits', 1)) echo $this->poweredBy();
Code: Select all
{"credits":"0",
"board_title":"YOUR FORUM NAME",
"email":"",
"board_offline":"0"
... etc etc
Code: Select all
$credits = '<div style="text-align:center">';
Code: Select all
$credits = '<div id="kuncredits">';
Code: Select all
#kuncredits {
display:none;
}
yes it did work,,thanks a lot ,,,amazing jobbrian wrote:Its no longer line 73 but is now line 82
changetoCode: Select all
if ($this->config->get('credits', 1)) echo $this->poweredBy();
Code: Select all
// if ($this->config->get('credits', 1)) echo $this->poweredBy();
kenmcd wrote:.
In file
joomla25_root/administrator/components/com_kunena/libraries/view.php
Find this code at around line 73Change toCode: Select all
echo $this->poweredBy();
In my brief tests that eliminated the nag.Code: Select all
// echo $this->poweredBy();
The actual code is lower down in the same file around line 394Code: Select all
final public function poweredBy() { $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="http://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; }
Code: Select all
if ($this->config->get('credits', 1)) $this->poweredBy();
Code: Select all
final public function poweredBy() {
$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="http://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;
}
mircomgroup wrote: I think I found a better method. You can update the kunenu_configuration table - add a credits = 0 parameter and it will no longer show the item. That way you don't have to hack a component file.
Code: Select all
{"credits":"0", "board_title":"YOUR FORUM NAME", "email":"", "board_offline":"0" ... etc etc
Code: Select all
// if ($this->config->get('credits', 1)) $this->poweredBy();
Code: Select all
// final public function poweredBy() {
// $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="http://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;
// }