Increase Length Of Username And Custom Title

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

Sem autorização para baixar
Compatibilidade com XF
  1. 2.2.x
Descrição curta
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
Visualizações
603
Primeiro lançamento
Última atualização
Avaliações 0,00 estrelas 0 avaliações
Link quebrado? Enviar mensagem para a equipe NP que vamos ajudá-lo rapidamente!
Apoie o desenvolvedor Se você está satisfeito com o teste ou seu projeto gerou lucro, clique no botão “Mais informações” para apoiar o desenvolvedor comprando.

Mais recursos de axtona

Auto Fechar + Nota de Tread A
Notificação de Fechar Tópico Auto ajuda a manter discussões anteriores organizadas sem surpreender seus membros.
Visualizações
72
Atualizado
[XenSupport] Spotlight A
on one outstanding member every day, week or month — picked automatically from posts & reactions.
Visualizações
2
Atualizado
[XenSupport] Staff A
Staff set their weekly office hours, and a live online / away / offline
Visualizações
3
Atualizado

Recursos similares

Custom User Post Background A
allow you to add an image to the background of all posts by a given user
Voltar
Top