Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.

Solved How to change canonical link on forum main page?

More
11 years 2 months ago #168568 by romagromov
Still have problem...

2 canonical links on page is inadmissible

<link href="/master/forum" rel="canonical" />
<link href="/master/forum/recent" rel="canonical" />


Download Free Software for Windows absolutly free.

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

More
11 years 2 weeks ago - 11 years 2 weeks ago #170161 by romagromov
Ok, I made little hack for file

/libraries/kunena/view.php

1. Find code (line 105)
Code:
if (JFactory::getApplication()->isAdmin())

add above this code
Code:
$juricurrent = JURI::current();

Then, after code
Code:
{ $this->displayLayout(); }

add

Code:
elseif ($juricurrent == 'http://yoursite/forum'){ $this->document->addHeadLink( $juricurrent, 'canonical', 'rel', '' ); include JPATH_SITE .'/'. $this->ktemplate->getFile('html/display.php'); }

where http://yoursite/forum is your url on forum main page

So, public function displayAll code should looks like:

Code:
public function displayAll() { if ($this->inLayout) { throw new LogicException(sprintf('HMVC template should not call %s::%s()', __CLASS__, __FUNCTION__)); } if ($this->me->isAdmin()) { if ($this->config->board_offline) { $this->app->enqueueMessage ( JText::_('COM_KUNENA_FORUM_IS_OFFLINE'), 'notice'); } if ($this->config->debug) { $this->app->enqueueMessage ( JText::_('COM_KUNENA_WARNING_DEBUG'), 'notice'); } } if ($this->me->isBanned()) { $banned = KunenaUserBan::getInstanceByUserid($this->me->userid, true); if (!$banned->isLifetime()) { $this->app->enqueueMessage ( JText::sprintf ( 'COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS_EXPIRY', KunenaDate::getInstance($banned->expiration)->toKunena('date_today')), 'notice'); } else { $this->app->enqueueMessage ( JText::_ ( 'COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS' ), 'notice'); } } $this->state = $this->get ( 'State' ); $this->ktemplate->initialize(); $juricurrent = JURI::current(); if (JFactory::getApplication()->isAdmin()) { $this->displayLayout(); } elseif ($juricurrent == 'http://yoursite/forum'){ $this->document->addHeadLink( $juricurrent, 'canonical', 'rel', '' ); include JPATH_SITE .'/'. $this->ktemplate->getFile('html/display.php'); } else { $this->document->addHeadLink( KunenaRoute::_(), 'canonical', 'rel', '' ); include JPATH_SITE .'/'. $this->ktemplate->getFile('html/display.php'); if ($this->config->get('credits', 1)) { $this->poweredBy(); } } }

Of course, this hack will lost after update.

I can't understand, why Kunena developers can't fix this major BUG.

Download Free Software for Windows absolutly free.
Last edit: 11 years 2 weeks ago by romagromov.

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

More
11 years 2 weeks ago #170183 by 810
The following user(s) said Thank You: romagromov

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

Time to create page: 0.114 seconds