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.

Делаем зафиксированное в IPS4 при помощи jquery плагина stickUp. Нам потребуются руки и архив с нужными файлами.

 file.zip

Для начала заливаем содержимое скачанного архива в корень форума, чтобы получилось так: форум.ru/stick_header/*файлы папки*.

Затем переходим в АЦ > Внешний вид > Стили и шаблоны > Ваш стиль и создаем там html шаблон с такими данными:

 

Далее в созданный шаблон добавляем это:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="{setting="base_url"}stick_header/stickUp_modified.js"></script>
<script type="text/javascript">
  jQuery(function($) {
    $(document).ready( function() {
      $('#elSearchNavContainer').stickUp();
    });
  });
</script>
<link rel="stylesheet" href="{setting="base_url"}stick_header/animate.css" />

Сохраняем шаблон и переходим в globalTemplate и  после:

<title>{expression="output.getTitle( $title )"}</title>

добавляем этот код:

{template="stickMenu" app="core" group="global" params=""}

Сохраняем. Переходим в шаблон navBar и после:

<ul id='ipsLayout_mainNav' class='ipsPos_left'>

добавляем это:

<li data-role='navItem' class='stuck_logo' style='display: none;'>
    <a href='{setting="base_url"}'>IPS</a>
</li>

Код внутри тегов меняете на название своего форума.

Там же находим:

<div class='ipsClearfix' id='elSearchNavContainer' data-controller='core.front.core.navBar'>

и после добавляем:

<div class="sticker">

В конце шаблона находим:

 </div>
</nav>

И за этим кодом добавляем

</div>

И напоследок переходим в custom.css добавляем эти стили:

#elSearchNavContainer {
    z-index: 5001;
}
 
.stuckMenu {
    left: 0;
    width: 100%;
}
 
.stuck_logo > a {
    font-size: 18px !important;
    opacity: 1 !important;
}
 
.stuck_logo > a > i.fa {
    font-size: 20px;
}

В результате получим

User Feedback

Recommended Comments

Комментариев пока нет

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
Добавить комментарий...

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.