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.

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 SQL to insert new message into existing topic

More
14 years 7 months ago - 14 years 1 month ago #108498 by mikefriendly
I would like to allow my members to make a quick post to a specific topic using a link to a modal overlay with a text box and a submit button. This part I have working.
What I am lacking is the SQL to do the insert into the tables jos_kunena_messages and jos_kunena_messages_text.
I have the user id and all the details of the original topic.
Could anybody please help?
Last edit: 14 years 1 month ago by sozzled. Reason: Change topic icon
The topic has been locked.
More
14 years 7 months ago #108524 by xillibit
Hello,

You don't need to use directly a SQL query, you can look in /components/com_kunena/lib/kunena.posting.class.php, you need to use canPost() and use after the function post()

You can look into /components/com_kunena/funcs/post.php , the post() function to have an example

I don't provide support by PM, because this can be useful for someone else.
The topic has been locked.
Time to create page: 0.224 seconds