Skip to content

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

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

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

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

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

IPB 3.4

ShoutBox 1.4.1

Featured Replies

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

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

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 ) );
	}

  • Author

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

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 );
	}

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

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

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

Create an account or sign in to comment

Account

Navigation

Search

Search

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.