- Posts: 14
- Thank you received: 1
Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released
The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.
The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 1.7, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.
Question How Write code : $user_origine_id= "USER ID of MESSAGE SOURCE"
I started on the API Kunena and Joomla
How to write this code.
$id_user_of_post = 'The ID of the user of the message spirit moderate')
I want to remove points AlphaUserPoints to the "ID of Origin POST" (the user origni) when the moderator delete a message in the forum
I write this, but is dont' work ::
$user_origine_id = $this-> get ('user ID off thread')
Can you corrige me ????!
Very thinks for your good help !!!
Please Log in or Create an account to join the conversation.
1°) You need ot check if the user which is removing the message is a moderator, there is a function in Kunena to check if an user is a moderator
2°) Then, you can remove points to the user in AUP
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.
I know the fonction to test if modérator :
<?php if (CKunenaTools::isModerator($this->my->id)) : ?>
but I don't know this fonction in PHP :
$user_origine_id = "USER ID of MESSAGE"
Can you help me ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Is possible whith this :
$user_post_origine_id = KunenaFactory::getPOST ($userid);
Can you indicate the good formule ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.