Kunena 7.0.5 & Kunena 6.4.11 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.5 [K 7.0.5] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0.

The Kunena team is also pleased to announce the eleventh version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.

This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.

The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, these ideas in these topics will not work with later versions and, for that reason, the topics are locked.

Question ItemIDs not respected, resulting in loss of module. Now with Steps posted to Confirm bug

More
17 years 1 month ago #10835 by fxstein
Sorry I don't really understand the issue either. You clearly have at least one outdated menu entry with an incorrect itemid on your site. I believe your hack is masking the problem.

Whenever you reinstall a component or upgrade it you MUST re-save the menu items that link to it for Joomla to update the itemids. In your case you have two independent menus one one the home page and a second one on the page the link you shared.

At least one of the two is incorrect or outdated.

To fix that go to your menu manger, select that particular menu item and hit the save button on its details screen.

That will update the joomla itemid stored internally.

Hope this helps!

fxstein

We love stars on the Joomla Extension Directory . :-)

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

More
17 years 1 month ago #10855 by rogerdavis
Fxstein,

Thanks for your work on Kunena. Awesome work!

I do, however, believe that this is a bug. You can reproduce it easy enough. Here's what I did:

Step 1. Install Kunena on a fresh install of Joomla.

Step 2. Create a Menu Link to Kunena.

Step 3. Note the Itemid in the menu link.

Step 4. Create a Category of Forums in Kunena. Set it viewable to everybody, of course.

Step 5. Create a couple of Forums in the Category, again viewable to everybody.

Step 6. View the Kunena Forum by clicking the link you created in Step 2.

Step 7. Mouse over the Category link, right click, select properties and copy the link.

Step 8. Create a new menu item as an external link.

Step 9. Paste in the Category link as the external link.

Step 10. Click Apply.

Step 11. Replace the Itemid in the link with this menu id, so that you can have your own modules at this menu item.

Step 12. Click your new menu link and go to the Categories.

Step 13. Look at the Itemid of any link inside Kunena. You will see that the Itemid does not reflect the category link...its the link you noted in Step 3.


But...when I edit class.kunena.php to be:
Code:
//Kunena $Itemid = intval(mosGetParam($_REQUEST, 'Itemid')); //check if we have all the itemid sets. if so, then no need for DB call if ($Itemid) { define("KUNENA_COMPONENT_ITEMID", (int)$Itemid); define("KUNENA_COMPONENT_ITEMID_SUFFIX", "&Itemid=" . KUNENA_COMPONENT_ITEMID); } global $fbConfig; if (!defined("KUNENA_COMPONENT_ITEMID")) {

then the links internal to Kunena reflect the ItemId of my menu item, and I get to keep my modules for that menu item. Otherwise, without this change, I'm forced to browse back to the forum link I first created in Step 2, because every link has the ItemId created in step 2. My modules disappear.

I hope this helps. I don't know what this "fix" does to anything else in Kunena. I am sure you will.

The problem is that bug prevents people from creating little portals to particular categories of forums, because you can't keep your modules. You can't have a news module about cats next to a category of forums about cats and a news module about dogs next to a category of forums about dogs.

Perhaps the 1.5 native version of Kunena needs a "category view" in accordance with the MVC architecture. I don't know.

Roger

PS. By the way, since I have your attention :):):) when you guys integrate with Jomsocial, I want to be able to set either a forum or a category of forums to appear for each Jomsocial group. Makes for a much richer user experience, since groups may have sufficient breadth to justify a whole category of forums. A group on Traavel to Europe might have a category of forums, where each forum is a country, for example.

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

More
17 years 1 month ago #11363 by rogerdavis
Should I create a fresh install of joomla and a demo site?

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

More
16 years 11 months ago #17923 by Ducati
I have different templates and different menu items for Kunena. I am running into the same problem and this fix doesn't seem to work. If the user enters from a specific template, I want that template to remain in place. However, when an item is click on in kunena, the template jumps to the same one every time. I want the itemID to remain the one that is assigned to it by the menu item that was selected to get to the component.

Thanks,

C.J.

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

More
16 years 2 months ago - 16 years 2 months ago #42966 by Amrit
I have a similar problem.

I have a website with 5 subsites, each with it's own sets of menus and modules and Forums.

www.eskilstunagf.se/index.php

I have a menu in Gympozz -> Forum -> För Gympozzmedlemmar.
I also have menus in TeamGym -> Elitgrupper -> and on each of the subitems here I have a Forum-link.

Since Kunena don't support linking directly to categories, I created a weblink for each menu item and linked them to each category in the form of:
Code:
index.php?option=com_kunena&Itemid=162&func=listcat&catid=5
The above code is för TeamGym.

As you can see the Itemid is being attached as it is suppose too.

Te following code is for Gympozz -> Gympozzmedlemmar:
Code:
index.php?option=com_kunena&Itemid=163&func=listcat&catid=13

Again, the Item id is attached as it should.

As you can see there are two different Itemids.
Each menuitem has different modules assigned to them.
And this is respected throughout the whole site, except for with Kunena.

When changing a subsite, via the upper right menu, pagetitle and menu is changed as they should.

But when clicking on Gympozz - För Gympozzmedlemmar I get sent to the the Elitgrupper Forum.

I manage to test out that the LOWEST Itemid is getting priority.
At first I had Gympozz as the lowest Itemid, so then everything was styled for Gympozz no matter what I clicked. Then I changed so that TeamGym was the lowest Itemid, and then TeamGym took precedence.

Since this behaviour is only occuring in Kunena on a fresh Joomla install with a fresh Kunena, I can only reason that there is something wrong with Kunena...

Any suggestions?

Cheers
Amrit
Last edit: 16 years 2 months ago by Amrit. Reason: I found that rogerdavis fix functions correctly

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

More
16 years 2 months ago #42993 by Matias
Kunena 1.5 always uses lowest itemid. It was never supposed to be used with many menu items. :( K1.6 will be first step to fix this.

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

Time to create page: 0.271 seconds