Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка 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.

Отключение добавления тегов к bbc img

Featured Replies

Posted

Добрый день. Столкнулся с такой проблемой. При автоматическом добавление поста на форум к img добавляется <span rel="lightbox">. Не могу найти где отключить. Причем include_ligthbox <php>$this->settings['do_include_lightbox_real'] = 0;</php> Думал что это отключается тут, а нет. Есть идеи?

Не могу найти где отключить.

Нигде не отключить. Нужен код для того, чтобы выделить изображение и показывать его в сплывающем окне, если включен lightbox.

Если код не нужен, можно отредактировать файл admin/sources/classes/text/parser/html.php

		/* Add lightbox rel tag. Emoticons should be code at this point */
		if ( ! parent::$Perms['parseHtml'] )
		{
			$html = preg_replace( "/(?!<span rel='lightbox'>)<img(?!.*sharedmedia_screenshot)([^>]+?)>/i", "<span rel='lightbox'><img class='bbc_img'1></span>", $html );
			$html = preg_replace( "/<img class='bbc_img'([^>]+?)class='bbc_img'([^>]+?)>/i", "<img class='bbc_img'12>", $html );
		}

Тут обрамляются изображения указанным выше кодом.

  • Author

Нигде не отключить. Нужен код для того, чтобы выделить изображение и показывать его в сплывающем окне, если включен lightbox.

Если код не нужен, можно отредактировать файл admin/sources/classes/text/parser/html.php

		/* Add lightbox rel tag. Emoticons should be code at this point */
		if ( ! parent::$Perms['parseHtml'] )
		{
			$html = preg_replace( "/(?!<span rel='lightbox'>)<img(?!.*sharedmedia_screenshot)([^>]+?)>/i", "<span rel='lightbox'><img class='bbc_img'1></span>", $html );
			$html = preg_replace( "/<img class='bbc_img'([^>]+?)class='bbc_img'([^>]+?)>/i", "<img class='bbc_img'12>", $html );
		}

Тут обрамляются изображения указанным выше кодом.

огромное спасибо, помогло

Guest
This topic is now closed to further replies.

Последние посетители 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.