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

Таблица лидеров

  1. newbie

    IPB Skins Team
    2
    Баллы
    4 292
    Публикаций

Популярные публикации

Отображаются публикации с наибольшей репутацией на 26.02.2020 во всех областях

  1. Вы не знаете, какой шаблон отвечает за вывод темы? Не поверю. topicViewTemplate Нашли его в \admin\applications\forums\modules_public\forums\topics.php $template = $this->registry->output->getTemplate('topic')->topicViewTemplate( $this->forum, $this->topic, $post_data, $displayData ); $post_data содержит данные о постах, включая авторов. Получаем ID'шники Вместо foreach( $members as $member ) { $ids[] = $member['member_id']; } Используем foreach( $post_data as $post ) { if ( $post['author']['member_id'] ) { $ids[$post['author']['member_id']] = $post['author']['member_id']; } } Вместо foreach( $members as $name => $member ) { $members[$name]['post_week'] = isset($weekStats[$member['member_id']]) ? $weekStats[$member['member_id']] : 0; } Используем foreach( $post_data as $pid => $post ) { if ($post['author']['member_id']) { $post_data[$pid]['author']['post_week'] = isset($weekStats[$post['author']['member_id']]) ? $weekStats[$post['author']['member_id']] : 0; } } В шаблоне userInfoPane используем <if test="isset($author['post_week'])">{$author['post_week']}</if>
  2. Создайте js-файл в Pages Скопируйте код из \dev\js\admin\mixins\ips.core.table.js Подключите файл к странице

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.