Kunena 7.0.6 & Kunena 6.4.12 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.6 [K 7.0.6] 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 twelfth 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 Kunena 1.5.12 Minimum number of characters in post ?

More
15 years 8 months ago #62049 by sozzled

C0n wrote: I was kind of supprised nobody mentioned it before its one of those things that you would expect to be there to stop short pointless post's.

I'm not in the least bit surprised that this request hasn't come up before. For some discussion forums posting short, "pointless" messages is considered normal behaviour; in some of these places this behaviour is not only tolerated by the community, it's sometimes encouraged because because this high-volume activity generates a higher Google rating (perhaps). Sites that are ratings-driven are often (not always) a bit like a narcotic - they don't do much for you except give you that feel-good "hit". There are rarely complaints from members of those communities where such high-volume, low-quality messages are normal, because that's the kind of behaviour that the community expects.

In other sites, either the short "pointless" posting behaviour is not practised or it is not "normal". In any event, those communities seem to regulate themselves fairly well and there are rarely complaints there either.

It all really comes back to one of my pet subjects: trying to modify human behaviour via technology. I don't think you can win here: human beings do not like to be told what to do by a computer system and they'll behave any damn way they like. Rather than trying to control "bad" human behaviour with "smarter" technology, I think you'll have a quicker win if you show people that there's a better way to behave instead of criticising the behaviour they now exhibit.

Just my opinions, of course, and I don't know if my opinions have any place in this very technical discussion.

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

  • C0n
  • C0n's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Only the strongest will survive
More
15 years 8 months ago #62276 by C0n
Well what i dont understand about this is the fact it was achived with the forum search bar, With a minimum of 3 characters to be able to search so I wounder how you could apply the same concept to the post text field.

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

More
15 years 8 months ago #62311 by sozzled
Yes, the same concept can be extended. It's a simple matter of Javascript.

Here's an example (that has nothing to do with Kunena). Suppose you have a form with a Submit button but you don't want the Submit button to become usable until a user has entered 15 characters (or more) into a text box. So your form consists of the following HTML statements:
Code:
<form> <intput type="text" id="txtInput" name="txtInput"> <input type="submit" value="Submit" name="btnSubmit" id="btnSubmit" disabled> </form>
This basic form will generate an input box and a disabled Submit button. Then next trick is to figure out how to enable the Submit button when the user has typed 15 characters or more. To do this, you need to write a Javascript function.
Code:
function enableSubmit() { var el = document.getElementById('txtInput'); var sb = document.getElementById('btnSubmit'); if (el.value.length > 14) { sb.disabled = false; } else { sb.disabled = true; } }
Now you have to tie the two things together, like this:
Code:
<form> <intput type="text" id="txtInput" name="txtInput" onkeypress="enableSubmit();"> <input type="submit" value="Submit" name="btnSubmit" id="btnSubmit" disabled> </form> <script type="text/javasript"> function enableSubmit() { var el = document.getElementById('txtInput'); var sb = document.getElementById('btnSubmit'); if (el.value.length > 14) { sb.disabled = false; } else { sb.disabled = true; } } </script>
It's actually quite easy if you understand how to leverage the DOM in Javascript. This was just an example, of course. All you need to do now is to find out what are the data elements in the form that's used by Kunena and plug the appropriate code into the PHP module and your done. B)

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

  • C0n
  • C0n's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Only the strongest will survive
More
15 years 8 months ago #62326 by C0n
Thanks for the example sozzled :D thats usefull i think i could apply this if i could only find the submit button in the kunena template code :/

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

Time to create page: 0.252 seconds