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.
Question Category Subscriptions - Default Subscribed?
now, obviously we dont want this to run every single time a user changes pages on the website (which is what its doing right now with the above code). So I have tried to implement a check on the user's last login seeing as I dont know any other way to check for the user being new.
what I have to attempt this is:
Now, this is stopping it from setting the logged in user subscribed to the category whenever they change pages on the website, in fact its not subscribing at all right now because it is not finding a match for the if statement.... That is where something is wrong, its not catching when the user has a lastvisitDate of 0000-00-00 00:00:00 to which my theory is that this is set to the current time/date the instant you log in, before the "system - kunena plugin" even runs the php file with the above code....
any thoughts?
Please Log in or Create an account to join the conversation.
So you will need to do something like this when user gets created:
That will subscribe user to all selected categories, including those he cannot see. Well, that should be OK as they are not counted if user doesn't have permissions..
Please Log in or Create an account to join the conversation.
WARNING: Never use this for large sites with many users. Sending email is pretty slow and even if you use this for one category, it may make posting messages into it REALLY SLOW.
So this feature may be useful for small sites having maybe up to 50-100 users. Well, maybe we will have better emailing system for the next version.
Please Log in or Create an account to join the conversation.
PS. this subject belongs into hacks category..
Please Log in or Create an account to join the conversation.
I replaced my code with yours but it doesnt seem to be working, my guess is that its a result of the $isNew as this is not defined in the **/plugins/system/kunena.php ??
Sorry about the wrong category, originally I posted asking a question with no intention of going into code editing, my hope was that this was going to be implemented into the final 1.6 version, please move if needed
Oh ya, the site is for a Volunteer Organization and its members, at current the user total should not exceed 100 for the next year or two, so good news there.
Please Log in or Create an account to join the conversation.
I also haven't tested the code, but I just added it (commented out for now) into Kunena 1.7. With configuration option and better email system, this could be pretty cool feature.
Please Log in or Create an account to join the conversation.