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.

Отключить preview для тем

Featured Replies

Posted

Здравствуйте. На форуме установлен плагин скрытия контента Hide with conditions 1.0.0, в нем есть баг.

Если скрыть контент в первом сообщение топика, то в самой теме контент скрыт. Но если перейти к списку тем и навести на наименование темы курсор мышки и подержать 1.5 секунды, то для темы вылезет всплывающее окошко с содержимым темы в котором скрытый контент уже перестанет быть скрытым.  

Подскажите пожалуйста как отключить превью для тем? 

Как вариант можно вырезать из шаблона темы (forums->front->forums->topicRow) код отвечающий за превью. Но это не решит самой проблемы, так как в браузере в редакторе исходного кода их можно вставить в ручную и посмотреть превью темы)

<a href='{$row->url()}' class='' title='{{if $row->mapped('title')}}{$row->mapped('title')}{{else}}{lang="content_deleted"}{{endif}} {{if $row->canEdit()}}{lang="click_hold_edit"}{{endif}}' {{if $row->tableHoverUrl and $row->canView()}} data-ipsHover data-ipsHover-target='{$row->url()->setQueryString('preview', 1)}' data-ipsHover-timeout='1.5'{{endif}}{{if $row->canEdit()}} data-role="editableTitle"{{endif}}>
  
  //Вырезать эти строки
data-ipsHover data-ipsHover-target='{$row->url()->setQueryString('preview', 1)}' data-ipsHover-timeout='1.5'

В общем как отключить полностью превью для тем, на уровне системы?

1 час назад, Налик сказал:

В общем как отключить полностью превью для тем, на уровне системы? 

\applications\forums\modules\front\forums\topic.php

	protected function manage()
	{

Добавить

		if ( \IPS\Request::i()->isAjax() and \IPS\Request::i()->preview )
		{
			return;
		}

 

  • Author

Сделал проверку находится ли в первом или последнем сообщении скрытый контент и в соответствии с этим либо запрещаю превью, либо разрешаю)

hide.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

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