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.

Вкладка 'Новые Публикации' теперь активна

Всем известно, что по-умолчанию в IP.Board вкладка меню "Новые публикации" не подсвечивается активной, если перейти на эту страницу. Это сделано потому, что данная вкладка не принадлежит общему способу генерации меню в IP.Board, то есть она всегда постоянна, поэтому к ней при приписывается класс active.
 
Исправить данное недоразумение никак не получится, кроме как использовать яваскрипт для определения активность вкладки и добавляющего класс active к этой вкладке.
 
Разместить код между тегами head:

<script src='__code.jquery.com/jquery-1.10.1.min.js'></script>
<script>
jQuery(function(){
   if ( window.location.href.indexOf('app=core&module=search&do=viewNewContent&search_app=members') > -1 || window.location.href.indexOf('app=core&module=search&do=viewNewContent&search_app=forums') > -1){
     jQuery('#nav_explore').addClass('active');
jQuery('#nav_app_forums>a').css('background-position', '-1100px -160px')
jQuery('#nav_app_members').css('z-index', '4');
jQuery('#nav_app_members a').css('background', 'none');
   }
   if ( jQuery('#nav_explore').hasClass('active') ){
     jQuery('#colorLine').css('background', '#759e3f');
   }
   if ( jQuery('#nav_app_members').hasClass('active') ){
     jQuery('#colorLine').css('background', '#f68b04');
   }
if( !jQuery('#community_app_menu').hasClass('active') ){
jQuery('#nav_app_forums>a').css('background-position', '-1100px -160px')
}

if ( jQuery('#ipbwrapper').height() <= jQuery( window).height() ){
jQuery('#backtotop').css('display', 'none');
}
jQuery('input[type=radio]').after('<span class="rlabel"></span>');
jQuery('input[type=checkbox]').after('<span class="clabel"></span>');
});
</script>

 

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.