[MOD] Max Characters - Config field (text/textarea)

Modules, Add-ons and custom code that's more than just a quick hack or Mod.
Post Reply
Martin
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK
Contact:

[MOD] Max Characters - Config field (text/textarea)

Post by Martin »

Title: Max Characters MOD.
Author: Martin Smallridge (WebSnail)
License: Commercial (No redistribution)
Cost: £50
Version: 6.0.1
Compatible: 6.0.11-6.1.1
ScreenCast: http://www.snailsolutions.co.uk/_casts/Max_Chars/

Purchasing: Store link (Moved & Updated)

Summary:
This modification provides you with a way to restrict the number of characters a customer can input in a text or text field configurable field.

It does this in two ways...
Front-end
Uses HTML.maxlength (text) or Javascript (textarea) to limit the number of characters input into the field.
It also changes the cols/rows values to a more accurately reflect the amount of text available (see known issues)
Back-end:
Checks the limits and the data input and errors if the character length exceeds the limit (ie: when Javascript has been disabled)


Changelog:
  • Now 6.0.11 - 6.1.1 compatible
  • MaxChar field now hidden unless a text or textarea configurable field are selected
  • Supported installation and self-install options now available
Known Issues:
  • TEXTAREA field ignores row & column HTML settings due to CSS.. (Purely cosmetic irritation)
The Impossible can be on your desk by lunchtime, Miracles will take a little longer
SnailSolution Interspire Mods/Hacks store
Martin
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK
Contact:

Re: [MOD] Max Characters - Config field (text/textarea)

Post by Martin »

I've just added a screen cast of the modification in action so it's a bit clearer as to what and how the mod' works.

http://www.snailsolutions.co.uk/_casts/Max_Chars/

Enjoy! :)
Snooper
Posts: 264
Joined: Sat Jun 26, 2010 9:22 pm

Re: [MOD] Max Characters - Config field (text/textarea)

Post by Snooper »

Once you have made a configurable field.. How can you remove this at a later date ??
ISC 5.5.4 Ultimate : Being used here -- http://www.kdklondon.com
Martin
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK
Contact:

Re: [MOD] Max Characters - Config field (text/textarea)

Post by Martin »

Snooper wrote:Once you have made a configurable field.. How can you remove this at a later date ??
You just empty the field name I think... Not tried as it happens..
Snooper
Posts: 264
Joined: Sat Jun 26, 2010 9:22 pm

Re: [MOD] Max Characters - Config field (text/textarea)

Post by Snooper »

Is what I thought, but every time I try I get asked to enter something *tut*

I hate being php dumb !!
ISC 5.5.4 Ultimate : Being used here -- http://www.kdklondon.com
Martin
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK
Contact:

Re: [MOD] Max Characters - Config field (text/textarea)

Post by Martin »

Given a couple of requests I've updated this mod/hack to be ISC 6.0.11 - 6.1.1 compatible...
DBMAN
Posts: 56
Joined: Sat Dec 25, 2010 1:18 am

Re: [MOD] Max Characters - Config field (text/textarea)

Post by DBMAN »

snailsolutions needs an update!

Your son is perpetually 1 year old....you have to let them grow up Martin!
Post Reply