Перейти к публикации
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.

Внешние ссылки в чате 3.4

Опубликовано:

Здравствуйте.

При публикации внешних ссылок в чате на главной странице - они перестают быть активными.

При редактировании сообщения или публикации ссылки через отдельное окно чата - ссылки публикуются нормально.

В чем может быть проблема?

IPB 3.4

ShoutBox 1.4.1

Рекомендованные сообщения

Опубликовано:

В чем может быть проблема?

В первом случае используется обычное текстовое поле, во втором - полноценный редактор.

admin/applications_addon/other/shoutbox/modules_public/ajax/coreAjax.php

		/* If in the global shoutbox, we don't need to have the editor process this */
	if ( !$this->request['global'] )
	{
		$shout = $this->library->editor->process( $shout );
	}
	else
	{
		$shout = nl2br( IPSText::htmlspecialchars( $shout ) );
	}

Опубликовано:
  • Автор

В первом случае используется обычное текстовое поле, во втором - полноценный редактор.

admin/applications_addon/other/shoutbox/modules_public/ajax/coreAjax.php

		/* If in the global shoutbox, we don't need to have the editor process this */
	if ( !$this->request['global'] )
	{
		$shout = $this->library->editor->process( $shout );
	}
	else
	{
		$shout = nl2br( IPSText::htmlspecialchars( $shout ) );
	}

Так это "по умолчанию" такой баг?

Сделал вот так

		if ( !$this->request['global'] )
	{
		$shout = $this->library->editor->process( $shout );
	}
	else
	{
		//$shout = nl2br( IPSText::htmlspecialchars( $shout ) );
			$shout = $this->library->editor->process( $shout );
	}

Никаких последствий не будет?

Опубликовано:

Никаких последствий не будет?

Контент будет обрабатываться как будто его отправили через редактор.

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

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.