Kunena 6.4.7 Released

The Kunena team has announce the arrival of Kunena 6.4.7[K 6.4.7] in stable which is now available for download as a native Joomla extension for J! 5.0.x/5.1.x/5.2.x/5.3.x/5.4.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 6.4
Important note: Go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated. This is particularly necessary for major version jumps so that the table changes are adapted.

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
16 years 7 months ago - 16 years 7 months ago #1 by sozzled
The Kunena latest posts module is a great idea but it still has a few teething problems and it's not a core Kunena plugin at this time. As an alternative, you can make use of an RSS feed to deliver almost the same functionality without all the bells and whistles of (or the hassles of installing) the extra module.
  1. Go to your forum's "Recent Discussions" page, click the image and make a note of the URL (it will look something like domain-name/forum?func=fb_rss&no_html=1)
  2. Use the Joomla Module Manager
  3. Add New module of type "Feed Display"
  4. Copy the URL of the feed display from step 1 into the "Feed URL"
  5. Assign the module position, menu assignment, etc., and enable the new module
An example is shown here at www.enduring.com.au/40P_demo/ . I've made one minor change to the standard Kunena RSS display. If you are interested, they are:

../components/com_kunena/lib/kunena.rss.php, change line 145 from:
Code:
echo " <title>" . _GEN_SUBJECT . ": " . stripslashes(htmlspecialchars($row->subject)) . " - " . _GEN_BY . ": " . stripslashes(htmlspecialchars($row->lastpostname)) . "</title>" . "\n";
to
Code:
echo " <title>" . stripslashes(htmlspecialchars($row->subject)) . " &#164; " . date('d M H:i',$row->lastposttime) . " (" . stripslashes(htmlspecialchars($row->lastpostname)) . ")". "</title>" . "\n";
Last edit: 16 years 7 months ago by sozzled.
The following user(s) said Thank You: dglite

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

More
16 years 2 months ago #2 by wvrapscene
Can you make the links in the module open in the same window and not open in a new window?

Thanks,
WVRapScene

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

More
16 years 2 months ago #3 by sozzled
wvrapscene wrote:

Can you make the links in the module open in the same window and not open in a new window?

I'm sorry but that's a feature of the standard Kunena RSS module, but it ought to be possible to modify it so that the links open in the same window, if that is what you want to do. There are many tutorials here at www.kunena.com on how to change the way that links operate.

Thanks for your comments :)

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

More
16 years 2 months ago - 16 years 2 months ago #4 by wvrapscene
I was hoping you would tell me how... :(

I'll take a look at the tutorials, but I dont know much about PHP code.

btw: This is a great alternative to a "latest posts" module! I think it loads the page faster when you use this method compared to using the module. If I can figure out how to make the link open in the same window and not a new window... It would be awesome!

Thanks for the help!

www.wvrapscene.com/website
Last edit: 16 years 2 months ago by wvrapscene.

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

More
16 years 2 months ago #5 by sozzled
This is just a guess:

Edit the file ../components/com_kunena/lib/kunena.link.class.php at about line 56:
From
Code:
function GetRSSLink($name , $rel='follow') { return CKunenaLink::GetSefHrefLink(KUNENA_LIVEURLREL.'&amp;func=fb_rss&amp;no_html=1', $name, '', $rel, '', '', 'target="_blank"'); }
To
Code:
function GetRSSLink($name , $rel='follow') { return CKunenaLink::GetSefHrefLink(KUNENA_LIVEURLREL.'&amp;func=fb_rss&amp;no_html=1', $name, '', $rel, '', '', 'target="_self"'); }
But that is just a guess and I haven't tested it.

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

More
15 years 3 months ago - 15 years 3 months ago #6 by sozzled
There hasn't been any significant change in K 1.6 that has needs much modification to the general principles that I wrote about over a year ago. About the only real change is K 1.6's URL structure.
  1. Go to your forum's "Recent Topics" page, click the image and make a note of the URL. If you are using SEF URLs, the link will look something like http://domain-name/forum/rss; if you are not using SEF URLs, the link will look something like http://domain-name/index.php?option=com_kunena&func=rss&Itemid=2.
  2. Use the Joomla Module Manager
  3. Add New module of type "Feed Display"
  4. Copy the URL of the feed display from step 1 into the "Feed URL"
  5. Assign the module position, menu assignment, etc., and enable the new module
It's not a perfect one-for-one replacement for the latest posts module but, with a a basic understanding of Joomla and with (or without) a few minor adjustments to the file ../components/com_kunena/lib/kunena.rss.php, you can have a very usable, simple "latest posts" display on your site in almost no time.
Last edit: 15 years 3 months ago by sozzled.

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

More
15 years 3 months ago #7 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 3 months ago #8 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 3 months ago #9 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 3 months ago #10 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.269 seconds