- Posts: 10
- Thank you received: 1
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.
Question MYSQL Database Insertion
What I want is for a user to fill out a form, and have it inserted into the database. This is for a world of warcraft applicant. Ironically, the code works fine. The tables get inserted, the times are correct, even the thread subject shows up on the kunena category display...
but when I view the category, no topic. What's going on? Here's some snippets from my code:
edit: In addition, I've heard about the Kunena 1.6 api supposedly making this whole process easier, but after looking at the rather limited documentation and fishing around the lib-class files for hours, I didn't find what I was looking for. Hopefully someone can help
Please Log in or Create an account to join the conversation.
In 2.0 creating a new topic will be even easier.
Please Log in or Create an account to join the conversation.
Yes of course, except I really don't know much about how you handle the queries or exactly what your doing here. This just sends me on a wild goose chase to /lib/kunena.posting.class.php, which sends me on another goose chase to some other script. I honestly don't care how Kunena handles its data. It all goes back to the database right? So, I'm querying kunena_categories, kunena_messages and kunena_messages_text. Please take 30 seconds and read my script and tell me what I'm missing rather than sending me off to find the holy grail.
Unless kunena hardcodes it's messages somehow - I don't see a reason why it's not adding the topic to the category.
Please Log in or Create an account to join the conversation.
Even in Kunena 1.6 you need to update other tables to make the topic to show up everywhere.
Your hack:
Do not use $threadid to guess which will be the next id.. Leave thread empty and get the real ID from the database + update message with the right value. And no, not like you're doing now -- there's a PHP function which returns you the last inserted ID.
2) You can do category update by SET numTopics=numTopics+1, numPosts=numPosts+1
3) You need to set also last post information into category table
4) You should also update kunena_users entry: posts=posts+1
Nothing magical in there.. Until you install K2.0, where posting a message will be almost impossible without using our API.
Please Log in or Create an account to join the conversation.
Regardless, the actual issue was that the NEW message id has to MIRROR the new topic id, meaning if you have 4 topics, but 20 messages, the new topic id must be 21 to match the message id.
Anyway - that solved it. Thanks for taking the time anyway.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.