Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] 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

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Trigger OnPrepareContent

More
16 years 3 months ago #36436 by swisstard
Hi,

I need a keyword to trigger an event for forum posts.
I want to change forum posts before displaying them.

It should basically be OnPrepareContent. Does that exist?

Thanks in advance!

Swisstard

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

More
16 years 3 months ago #36448 by xillibit
Hello,

What do you want do exactly ?

I don't provide support by PM, because this can be useful for someone else.

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

More
16 years 3 months ago #36475 by swisstard
Hi xillibit,

I would like to write a plug in who changes forum posts before they are displayed. I am using a plugin for normal content and in pseudo code it looks like this:

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
$mainframe->registerEvent( 'onPrepareContent', 'pluginName' );

function pluginName( &$row, &$params )
{
$row->text = ChangeText($row->text);
return true;
}

function ChangeText($text)
{
//manipulate text and return modified text
}

So what I would need to know is if there is an event trigger keyword like onPrepareContent for kunena?
What I also need to know is how to access forum posts in the parameters passed to the plugin function? Is it still $row->text or maybe $row->post?

Thanks

Swisstard

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

More
16 years 3 months ago - 16 years 3 months ago #36951 by Matias
Replied by Matias on topic Re:Trigger OnPrepareContent
I cannot check the configuration option right now, but you can enable joomla plugins from the backend.. I think it was "Enable mambots support" or something similar.. And currently it uses(?) the same fields as com_content.
Last edit: 16 years 3 months ago by Matias.

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

More
16 years 3 months ago #37174 by swisstard
Thanks,

yeah that did the trick.

I was also using an older version of kunena on top of not having the option turned on. :)

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

Time to create page: 0.245 seconds