Increase Length Of Username And Custom Title

Increase Length Of Username And Custom Title 2022-05-25

No tiene permiso para descargar
Compatibilidad con XF
  1. 2.2.x
Descripción breve
Enhance user profiles by increasing username maxLength to 100 and custom_title maxLength to 100 for better character flexibility.
library/XenForo/DataWriter/User.php

---

Search for 'maxLength' => 50

PHP:
'username'
=> array('type' => self::TYPE_STRING, 'required' => true, 'maxLength' => 50, 'verification' => array('$this', '_verifyUsername'), 'requiredError' => 'please_enter_valid_name'),


Change to 'maxLength' => 100
PHP:
'username'
=> array('type' => self::TYPE_STRING, 'required' => true, 'maxLength' => 100, 'verification' => array('$this', '_verifyUsername'), 'requiredError' => 'please_enter_valid_name'),

---

Search for 'maxLength' => 50
PHP:
'custom_title'
=> array('type' => self::TYPE_STRING, 'maxLength' => 50, 'default' => '', 'verification' => array('$this', '_verifyCustomTitle')),
Change to 'maxLength' => 100
PHP:
'custom_title'
=> array('type' => self::TYPE_STRING, 'maxLength' => 100, 'default' => '', 'verification' => array('$this', '_verifyCustomTitle')),
---

You can now use 100 characters in the Username, and the Custom Title as well.
Autor
axtona
Vistas
560
Primer lanzamiento
Última actualización
Valoraciones 0,00 estrella(s) 0 valoraciones
¿Enlace roto? Enviar mensaje al equipo NP y te ayudaremos rápidamente!
Apoia al desarrollador i estás satisfecho con la prueba o tu proyecto te ha generado ganancias, haz clic en el botón «Más información» para apoyar al desarrollador comprando.

Más recursos de axtona

 ALTACHA CAPTCHA A
Un addon de XenForo que integra el sistema de verificación humana ALTCHA
Nodos Multilingües y Descripción A
Un simple AddOn que cree para mí mismo para tener Nodos y Descripciones en múltiples idiomas.
 Iconos de fuente awesome de nodo A
Iconos de nodos paraforúnicos y opcionalmente
Superior