1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

textboxunit with >1 rows

Discussion in 'XenForo Development Discussions' started by Robbo, Nov 7, 2011.

  1. Robbo

    Robbo Well-Known Member

    Is there any reason that textboxunits that are compiled into a textarea don't allow the use of maxlength?

    if (!empty($controlOptions['rows']) && $type == 'text')
    $cols = (!empty($controlOptions['size']) ? $controlOptions['size'] : 60);
    $wrap = (!empty($controlOptions['code']) ? ' wrap="off"' '');
    "<textarea name=\"{$name}\" rows=\"{$controlOptions['rows']}\" cols=\"{$cols}\"{$title}{$placeholder}{$autofocus}{$wrap}{$dir} class=\"textCtrl{$inputClass}\"{$dataAttributes} id=\"{$id}\">{$value}</textarea>$after";
    "<input type=\"{$type}\" name=\"{$name}\" value=\"{$value}\"{$size}{$maxlength}{$title}{$placeholder}{$autofocus}{$autocomplete}{$dir}{$step}{$min}{$max}{$results} class=\"textCtrl{$inputClass}\"{$dataAttributes} id=\"{$id}\" />$after";
  2. Mike

    Mike XenForo Developer Staff Member

  3. Robbo

    Robbo Well-Known Member

    I'm a little surprised Opera doesn't support it.

    I agree. This was just for a public section that is limited for the public user but editable in the ACP. I was going to say like user status updates but I just checked the ACP and admins can't modify them?

    Edit: or can they moderate them where they show as a profile post?
    Edit2: nevermind just answered my own question.

Share This Page