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

Question Plugin developer documentation?

More
15 years 6 days ago #93130 by xillibit

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
14 years 11 months ago - 14 years 11 months ago #94073 by Jacquesvw

xillibit wrote: You can found some docs here : docs.kunena.org/index.php/How_to_use_Kunena_1.6_API and docs.kunena.org/index.php/Kunena_1.6_API


Thanks, have seen those. I have no idea how kunena's plugins work though and was hoping someone had some sample code I can look at.

I was also wondering how will I be able to detect when a new message has been posted? I would like to make a badword filter and when a post has been made some function needs to be triggered so that the text in the post can be cleaned of bad words in an array or whatever.
Last edit: 14 years 11 months ago by Jacquesvw.

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

More
14 years 11 months ago #94111 by sozzled
Kunena software is all "open source". If you want "sample code" then you can examine the code in the existing software (e.g. the Kunena Discuss plug-in, as one example).

To be honest with you, I don't know how to detect when a new message has been posted and I don't know how knowing this will help. Maybe one of the members of the development team can explain it to you.

I suppose the "bad words" filtering could be applied either when the message was submitted or when the message was displayed. The choice is yours. I would do the filtering at the time when you're displaying the message, not at the time when the message was posted. Tough one to call. :unsure:

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

More
14 years 11 months ago #94135 by Jacquesvw
Hi sozzled,

My plugin is now able to determine when the user is submitting a message, so I'm on the right track.

My idea is to retrieve the message id the moment the user posts something. Then look (select) for that message in the database and filter out all the words and replace with something like ******. After the changes has been made place back (update) into the database.

The reason I'm not doing this during the viewing of messages is because I want the plugin not to waste resources, because if this was done during viewing the filtering part of the plugin will be executed for every user that visits that topic and since the word has been permanently removed there is no point.


Another route is for the plugin to make no changes to data and only to hide the badword from the user... this will require execution on every visit.


My needs are for removing the word permanently from the database, but I would like to know the opinions and ideas of others... maybe I should start a topic just for this?

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

Time to create page: 0.252 seconds