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

Условия для масок доступа

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

Доступ определённым группам:

<if test="$this->memberData['member_group_id'] == 1">{показ блока для группы 1}</else></if>

<if test="in_array( $this->memberData['member_group_id'], array( 1, 2 ) )">{показ блока для группы 1 или 2 }</else></if>

 

А как такое же но для масок доступа?

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

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

Read

 

Permissions:

view - Просмотр форума

read - Чтение тем

start

reply

download

upload

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

<if test="IPSMember::checkPermissions('read', ид_форума) === true">Read</if>

 

Permissions:

view - Просмотр форума

read - Чтение тем

start

reply

download

upload

Спасибо большое.

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

<if test="IPSMember::checkPermissions('read', 114) === true">

 

А можно вместо ида форума, ид самой маски доступа?

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

В смысле ид? Это маски доступа, для разных форумов они разные. В данном случае маска является read, а в зависимости от форума она может быть true, либо не быть false.

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

Сейчас на странице 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.