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.

2 изображения

По умолчанию в ips4 если вы предупреждаете пользователей или баните, то сообщение с варном видно только Администраторам или Модераторам. Данный плагин снимает это ограничение и делает видимым предупреждения всем без исключения.

 

Чтобы плагин заработал идем в

core-front-profile

 

Находим:

 
{{if \IPS\Settings::i()->warn_on and !$member->inGroup( explode( ',', \IPS\Settings::i()->warn_protected ) ) and ( \IPS\Member::loggedIn()->modPermission('mod_see_warn') or ( \IPS\Settings::i()->warn_show_own and \IPS\Member::loggedIn()->member_id == $member->member_id ) )}}

 

Заменяем на

 
{{if \IPS\Settings::i()->warn_on and !$member->inGroup( explode( ',', \IPS\Settings::i()->warn_protected ) ) and ( \IPS\Member::loggedIn()->modPermission('mod_see_warn') or ( \IPS\Settings::i()->warn_show_own ) )}}

 

Может кому то еще пригодится это:

Если вы предупредили или забанили пользователя с самой темы, то это предупреждение видно только Администраторам или модераторам, что бы сделать варны видимыми всем, идем в

 
forums-front-topics-post

 

Находим строчку:

 
{{if member.modPermission('mod_see_warn') and $comment->warning}}

 

Заменяем на:

 
{{if $comment->warning}}

 

В моем случае понадобилось еще разрешить тотально тут:

 
\applications\forums\sources\Topic\Topic.php

 

Находим:

 
public function comments( $limit=NULL, $offset=NULL, $order='date', $orderDirection='asc', $member=NULL, $includeHiddenComments=NULL, $cutoff=NULL, $extraWhereClause=NULL, $bypassCache=FALSE, $includeDeleted=FALSE, $canViewWarn=NULL )

 

Меняем на:

 
public function comments( $limit=NULL, $offset=NULL, $order='date', $orderDirection='asc', $member=NULL, $includeHiddenComments=NULL, $cutoff=NULL, $extraWhereClause=NULL, $bypassCache=FALSE, $includeDeleted=FALSE, $canViewWarn=TRUE )

 

Хук в свое время был заказан у By_ix, делюсь им теперь безвозмездно тут.

Edited by aLEX49566

User Feedback

Вы сможете оставить отзыв только после скачивания файла.

Отзывов пока нет

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.