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 A simple alternative to the "latest posts module"

More
15 years 9 months ago #54820 by snk
Hello sozzled,

your method doesn't work anymore, at least on last version of 1.5 Apparently it doesnt work even on your demo page.

Is there any solution?

Thank you in advance.

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

More
15 years 9 months ago #54891 by sozzled

sozzled wrote: My method does work at my demo site. The reason that you may not have seen any "latest forum posts" at my demo site is that I haven't posted any messages at my forum for the past month (and I only use the last month's forum data for the RSS feed). My site is for demonstration purposes; it's not something I need to keep posting messages at just to demonstrate whether things keep working or not.

However, for your sake, I posted a message at my demo site; there's now something in the "latest forum posts" display. :P

This same general approach, to create an alternative "latest posts" display using the Kunena RSS feed, most definitely works in K 1.6, too! I'm just not prepared to post the details of any of my other sites (where I can show you) in this forum. B)

If people cannot create a news feed module from the Kunena display (using the general instructions that I've posted in A simple alternative to the "latest posts module" , what are they doing and what conditions are they experiencing? As long as your Kunena RSS feed can display your latest forum messages then all you have to do is this: get the URL of your Kunena feed, plug it into your Joomla "news feed" module and publish this module wherever you want to. B)

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

More
15 years 9 months ago #55110 by sozzled
There has been a lot of discussion about a "latest posts" module for K 1.6. At this time, the work on this module has halted because of the priority given to get a stable public release of K 1.6. However, this doesn't mean that users can't try to adapt the principles I've shown earlier in this thread as a workaround or as an alternative to a module whose sole purpose is to display a list of latest forum messages on the front page of their websites.

If users are prepared to accept the display generated by the K 1.6 RSS feed, they don't have to do anything. But, if they would like to experiment with the display or "pretty it up" in the same way as I have used it on my sites, they are free to do this as they like ... as long as they realise that any changes they make will be lost when they upgrade later to a newer version of Kunena.

If you want to change the way that the output appears, you need to look at the file ../components/com_kunena/funcs/rss.php

Look at the following area of that file (about lines 168-199) - and please remember, I'm basing this on an early internal development release:
Code:
switch ($type) { case 'thread': $tmp['title'] = $data->subject; $tmp['text'] = $data->message; $tmp['date'] = $data->time; $tmp['email'] = $data->email; $tmp['name'] = $data->name; $tmp['cat_name'] = $data->category_name; if ($old_titles) $tmp['title'] = JText::_('COM_KUNENA_GEN_SUBJECT') .': '. $data->subject .' - '. JText::_('COM_KUNENA_GEN_BY') .': '. $data->name; break; case 'post': $tmp['title'] = $data->lastpost_subject; $tmp['text'] = $data->lastpost_message; $tmp['date'] = $data->lastpost_time; $tmp['email'] = $data->lastpost_email; $tmp['name'] = $data->lastpost_name; $tmp['cat_name'] = $data->category_name; if ($old_titles) $tmp['title'] = JText::_('COM_KUNENA_GEN_SUBJECT') .': '. $data->lastpost_subject .' - '. JText::_('COM_KUNENA_GEN_BY') .': '. $data->lastpost_name; break; case 'recent': default: $tmp['title'] = $data->subject; $tmp['text'] = $data->lastpost_message; $tmp['date'] = $data->lastpost_time; $tmp['email'] = $data->lastpost_email; $tmp['name'] = $data->lastpost_name; $tmp['cat_name'] = $data->category_name; if ($old_titles) $tmp['title'] = JText::_('COM_KUNENA_GEN_SUBJECT') .': '. $data->subject .' - '. JText::_('COM_KUNENA_GEN_BY') .': '. $data->name; }

You might consider replacing these lines with my hack as shown below:
Code:
switch ($type) { case 'thread': $tmp['title'] = $data->subject; $tmp['text'] = $data->message; $tmp['date'] = $data->time; $tmp['email'] = $data->email; $tmp['name'] = $data->name; $tmp['cat_name'] = $data->category_name; if ($old_titles) $tmp['title'] = JText::_('COM_KUNENA_GEN_SUBJECT') .': '. $data->subject . ' ¤ '. date('d M H:i',$tmp['date']) . ' ('. $tmp['name'] .')'; break; case 'post': $tmp['title'] = $data->lastpost_subject; $tmp['text'] = $data->lastpost_message; $tmp['date'] = $data->lastpost_time; $tmp['email'] = $data->lastpost_email; $tmp['name'] = $data->lastpost_name; $tmp['cat_name'] = $data->category_name; if ($old_titles) $tmp['title'] = JText::_('COM_KUNENA_GEN_SUBJECT') .': '. $data->lastpost_subject . ' ¤ '. date('d M H:i',$tmp['date']) . ' ('. $data->lastpost_name . ')'; break; case 'recent': default: $tmp['title'] = $data->subject; $tmp['text'] = $data->lastpost_message; $tmp['date'] = $data->lastpost_time; $tmp['email'] = $data->lastpost_email; $tmp['name'] = $data->lastpost_name; $tmp['cat_name'] = $data->category_name; if ($old_titles) $tmp['title'] = JText::_('COM_KUNENA_GEN_SUBJECT') .': '. $data->subject . ' ¤ '. date('d M H:i',$tmp['date']) . ' ('. $tmp['name'] . ')'; }

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

More
15 years 9 months ago #55112 by leslamarch
Thank You very much, this post has all the info I needed, I really like the rss feed almost better then the latest posts module.

Thank you once again sozzled its very much appreciated...

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

Time to create page: 0.242 seconds