×
Kunena 5.1.18 Released (30 Jun 2020)

The Kunena team has announce the arrival of Kunena 5.1.18 [K 5.1.18] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1.

× This is for users to help other users, to discuss topics that are related to forum administration in general or problems in running Joomla. This is not the place to ask for Joomla support. If you want assistance with Joomla please ask at forum.joomla.org

Question HTML / PHP Limit's

  • C0n
  • C0n's Avatar Topic Author
  • Offline
  • Premium Member
  • Only the strongest will survive
More
9 years 9 months ago - 9 years 9 months ago #1 by C0n
HTML / PHP Limit's was created by C0n
It's been a long time and I've learnt allot from studying the kunena code, I have a question about minimum and maximum character lengths, I notice kunena uses html to check the ammount of characters entered into a field.

Example : (maxlength="10")

But I'm curious if its possible to set a minimum length onit with php or html ? does anyone have any advice ?

Minimum length in html from my research is.

Example : (minlength="10")
Last edit: 9 years 9 months ago by C0n.
The following user(s) said Thank You: sozzled

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

More
9 years 9 months ago #2 by sozzled
Replied by sozzled on topic Re: HTML / PHP Limit's
Yes, maximum and minimum lengths are normally established via HTML or CSS. :)

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

  • C0n
  • C0n's Avatar Topic Author
  • Offline
  • Premium Member
  • Only the strongest will survive
More
9 years 9 months ago #3 by C0n
Replied by C0n on topic Re: HTML / PHP Limit's
so if i apply (minlength="10") to a input field so when someone submit's information into that field on the forum, If it is less than 10 characters long will it just be blank or how can i make it show a error like. (The text you entered is to short.)

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

More
9 years 9 months ago - 9 years 9 months ago #4 by xillibit
Replied by xillibit on topic Re: HTML / PHP Limit's
Hello,

If you want check that the user has entered the min characters you need to use php or maybe javascript, like that you cna display a message...

I don't provide support by PM, because this can be useful for someone else.
Last edit: 9 years 9 months ago by xillibit.

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

  • C0n
  • C0n's Avatar Topic Author
  • Offline
  • Premium Member
  • Only the strongest will survive
More
9 years 9 months ago #5 by C0n
Replied by C0n on topic Re: HTML / PHP Limit's
Does anyone have a example code or snippet i think ive found the text area location "com_kunena/template/defualt/messedge.php"

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.095 seconds