Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author AntoineH

    (@antoineh)

    There is no setting to change this. So, you’ll have to do some coding. I see two options:

    1. jQuery: Use jQuery to change the maxlength param for these inputs.
    2. PHP: Overwrite the template with the filter that is in the code (see help page or first post in this forum for examples).
    Thread Starter fanman1948

    (@fanman1948)

    Hi,
    I found a solution.

    File: class-football-pool-matches.php
    Line:

    public function show_pool_input( $name, $value, $ts ) {
    		if ( $this->match_is_editable( $ts ) ) {
    			if ( $this->matches_are_editable ) {
    				if ( $this->use_spin_controls ) {
    					$control = 'type="number" min="0" max="99"';
    				} else {
    					$control = 'type="text" maxlength="2"';
    				}
    Plugin Author AntoineH

    (@antoineh)

    Please beware that when you upgrade the plugin, you will have to redo your change in the code.

    Using filters is a safer solution.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Number of characters’ is closed to new replies.