Jump to content
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Пробел в нике

Здравствуйте! Как можно запретить использовать специальный символ пробела в конце ника при регистрации на форуме?

 

Пример:

newbie 

 

WuPtE0a.jpg

Featured Replies

ник+alt+255 делает имя доступным :)

  • Author

Не проходит

 

Видимо при отправке сообщения форум заменяет этот символ на простой пробел. HooLIGUN сказал как правильно можно сделать.

специальный символ пробела в конце ника

\admin\sources\classes\member\memberFunctions.php

 

Найти

		//-----------------------------------------
	// Trim after above ops
	//-----------------------------------------

Выше добавить

		$name = rtrim($name,chr(0xC2).chr(0xA0));

 

\admin\applications\core\modules_public\ajax\register.php

 

    		$name = trim( rawurldecode( $_POST['name'] ) );

заменить на

    		$name = rtrim($_POST['name'],chr(0xC2).chr(0xA0));
		$name = trim( rawurldecode( $name ) );

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.