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

XenForo Kalium Theme A
make your site stand out with its numerous features.
Visualizações
10
Atualizado
Keep the XenForo Editor Toolbar Sticky While Scrolling A
With this code, you can keep the editor toolbar fixed at the top of the page as you scroll
Marmaris A
Marmaris 1.0.0
Marmaris Style is a clean and modern dark theme inspired
Visualizações
7
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