Перейти к содержанию

Elvis DeShulez

Пользователи
  • Постов

    66
  • Зарегистрирован

  • Посещение

Сообщения, опубликованные Elvis DeShulez

  1. 4 минуты назад, WoLFr4ge сказал:

    Найдите в HTML > forums > topics > postContainer тег <article> и замените эту строку на 

    
    <article {{if $comment->author()->hasHighlightedReplies()}}data-memberGroup="{$comment->author()->member_group_id}" {{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if ( settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight and settings.reputation_enabled ) OR $comment->isFeatured()}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->author()->hasHighlightedReplies()}}ipsComment_highlighted{{endif}}{{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden() OR $item->hidden() === -2}}ipsModerated{{endif}}'>

     

    Теперь тема вообще не открываеться, и выбивает оибки

  2. 1 минуту назад, WoLFr4ge сказал:

     

    попробуйте

    
    .ipsComment_highlighted.ipsBox:not(.ipsBox_transparent):not(.ipsModerated):not(.ipsComment_selected):not(.ipsComment_popular ),
    .ipsComment_highlighted:not(.ipsBox_transparent):not(.ipsModerated):not(.ipsComment_selected):not(.ipsComment_popular ) .ipsAreaBackground_reset {
    	background-color: {theme="post_highlight"};
    }
    .ipsComment_highlighted:not(.ipsBox_transparent):not(.ipsModerated):not(.ipsComment_selected):not(.ipsComment_popular ) {
    	background-color: {theme="post_highlight"};
    	border: 1px solid {theme="post_highlight_border"};
    	box-shadow: 0px 2px 10px {hextorgb="post_highlight_border" opacity="0.4"};	
    }
    
    .ipsComment_highlighted.ipsComment:not( .ipsModerated ) .ipsComment_header {
    	background-color: {hextorgb="post_highlight_border" opacity="0.1"};
    	border-top: 0;
    }

     

    Это в custom или куда?

  3. Доброго времени суток. Не выделяется сообщения от определённой группы, в настройках группы указал подсветку сообщений, но не могу найти настройку цвета подсветки в настройках шаблона, перепробывал порядком 10 цветовых ячеек, но так и не подобрал, не могли бы вы подсказать какая ячейка ответает за фон сообщения?

  4. 13 минут назад, Envy сказал:

    найти в globaltemplate  <div class="ipsLayout_container ipsClearfix">...</div> и вынести за пределы этого дива <div id="navBar">...</div>

     

    + заменить то что я дал выше в global.css на

    div#navBar.ipsClearfix.fixed {
    1. position: fixed;
    2. padding: 0px;
    3. top: 0;
    4. left: 0;
    5. background: url(http://pangorarp-forum.ru/uploads/monthly_2017_05/591ecac4170fb_.png.d9627375e646b23e5c2bf0e6681799fd.png);
    6. width: 100%;
    7. z-index: 5100;
    }

    2017-05-20 15_28_08-Категории и разделы - Pangora Role Play.png

    2017-05-20 15_28_03-Steam.png

    Спойлер

     

     <div class='ipsLayout_container ipsClearfix'>
                    <header id='header' class='ipsClearfix'>{{if theme.ipsf_fixedHeader}}<div class='ipsLayout_container forceWidth ipsClearfix'>{{endif}}
                        {template="logo" app="core" group="global" params=""}
                        {{if !in_array('ipsLayout_minimal', \IPS\Output::i()->bodyClasses )}}{template="userBar" app="core" group="global" params=""}{{endif}}
                    {{if theme.ipsf_fixedHeader}}</div>{{endif}}</header>

                <div  class='ipsClearfix'>
                        {template="navBar" app="core" group="global" params=""}
                        {template="searchBar" app="core" group="global" params=""}
                    </div>
                </div>


                 <div id='navBar'>
            </div> 

     

    Вынести это типо сделать так? 

     <div class='ipsLayout_container ipsClearfix'>
                    <header id='header' class='ipsClearfix'>{{if theme.ipsf_fixedHeader}}<div class='ipsLayout_container forceWidth ipsClearfix'>{{endif}}
                        {template="logo" app="core" group="global" params=""}
                        {{if !in_array('ipsLayout_minimal', \IPS\Output::i()->bodyClasses )}}{template="userBar" app="core" group="global" params=""}{{endif}}
                    {{if theme.ipsf_fixedHeader}}</div>{{endif}}</header>

                    <div id='navBar' class='ipsClearfix'>
                        {template="navBar" app="core" group="global" params=""}
                        {template="searchBar" app="core" group="global" params=""}
                    </div>
                </div>
                
            </div> 

     

     

    Вот исходный без выноса: 

  5. 4 минуты назад, Envy сказал:

    добавьте тот же код и 

     

    добавьте тот код выше что дал Axeland и в global.css вставьте 

    div#navBar.ipsClearfix.fixed {
    1. position: fixed;
    2. padding: 0px;
    3. top: 0;
    4. left: 0;
    5. width: 100%;
    6. z-index: 5100;
    }

    Почти, только очень забагано получаеться. Можешь подсказать как настроить как на этом форуме http://forum.diamondrp.ru

  6. 8 минут назад, Axeland сказал:

    Нужно, чтобы NavBar прикреплялся к верху, когда проматываешь? Если да, то в includeJS (шаблон) вставляем скрипт:

    
    <script>
        jQuery(function($) {
    	        $(window).scroll(function(){
    	            if($(this).scrollTop()>254){ // Высота шапки, на которой меню присваивается фиксед - высота меню, т.е. NavBar
    	                $('#navBar').addClass('fixed');
    	            }
    	            else if ($(this).scrollTop()<254){ // Высота шапки, на которой убирается фиксед
    	                $('#navBar').removeClass('fixed');
    	            }
    	        });
    	    });
    </script>

     

    p.s. код для форума и дизайна http://pangorarp-forum.ru/

    Не помогло, так же как и было просто проматывается

     

  7. 6 минут назад, Envy сказал:

    так у тебя уже стоит этот шаблон, ищи в настройках значит, на всех форумах где видел ips focus, везде навбар идет за пользователем, значит у тебя эта функция отключена по всей видимости

    Вот нашёл, так она вроде как и не отключена: нашёл.PNG

  8. 8 минут назад, Envy сказал:

    ставь тему ips focus.

    либо ковыряйся в этом скрипте, чтобы настроить под себя, но там придется и стили импортировать и еще кучу всего сделать, не думаю, что осилишь

    
    
    
            $("html").addClass('ipsfocus_bg1');
    
     
    $(document).ready(function(){
    
    
    function debounce(func, wait, immediate) {
    	var timeout;
    	return function() {
    		var context = this, args = arguments;
    		var later = function() {
    			timeout = null;
    			if (!immediate) func.apply(context, args);
    		};
    		var callNow = immediate && !timeout;
    		clearTimeout(timeout);
    		timeout = setTimeout(later, wait);
    		if (callNow) func.apply(context, args);
    	};
    };
    	
    		
    
    // Firefox calculates width differently due to scrollbar on Windows
    if( navigator.userAgent.toLowerCase().indexOf('firefox') > -1 ){
        var browserResponsiveWidth = 963;
    }else{
        var browserResponsiveWidth = 980;
    }
    
    
    
    // Relocate search bar
    var relocateSearch = function(){
    		
    	var currentBrowserWidth = $(window).width();
        
        if(currentBrowserWidth > browserResponsiveWidth){
    		$("#elSearch").prependTo("#searchWrap");
    	} else {
    		$("#elSearch").prependTo("#respSearch");
    	}
    	
    }
    
    relocateSearch();
    		
    
    		
    var resizeWindow = function(){
    
        var currentBrowserWidth = $(window).width();
    
        if(currentBrowserWidth > browserResponsiveWidth){
    
        // Desktops
    
            $("#elSearch").prependTo("#searchWrap");
            $("body").addClass("ipsfocus_desktop");
    
    
        } else {
    
        // Tablets and mobiles
    
            $("#elSearch").prependTo("#respSearch");
            $("body").removeClass("ipsfocus_desktop");
    
        }
    
    }
    
    resizeWindow();
    
    
    
    
    // Bug fix: The resize event is triggered when tablets and mobiles are scrolled, breaking the search bar in Android and Chrome
    var cachedWidth = $(window).width();
    
    // Run width functions after 100ms pause
    $(window).resize(debounce(function(){
    	
    	var newWidth = $(window).width();
        if(newWidth !== cachedWidth){
            
            resizeWindow();
            relocateSearch();
            
            cachedWidth = newWidth;
        }
    	
    }, 100));
    		
    
    
    // Hide post controls as a guest to prevent empty bar
    $(".cPost .ipsComment_controls li.ipsHide:only-child").parent().hide();
    
    // Hide gallery descriptions if they don't exist
    if ($('.galleryDescription .ipsType_richText').is(':empty')){
        $(".galleryDescription").hide();
    }
    
    // Hide empty divs in ipsPageHeader to prevent unnecessary margins
    $('.ipsPageHeader .ipsSpacer_top').each(function(){
        if(!/[\S]/.test($(this).html())) { 
            $(this).hide();
        }
    }); 
    
    
    /* Navigation */            
    function ipsfocusNavigation() {
    	
    	var navwidth = 0;
    	var morewidth = $('.ipsNavBar_primary .focusNav_more').outerWidth(true);
    	$('.ipsNavBar_primary > ul > li:not(.focusNav_more)').each(function() {
    		navwidth += $(this).outerWidth( true );
    	});
    	var availablespace = $('.ipsNavBar_primary').outerWidth(true) - morewidth;
    	if (availablespace > 0 && navwidth > availablespace) {
    		var lastItem = $('.ipsNavBar_primary > ul > li:not(.focusNav_more)').last();
    		lastItem.attr('data-width', lastItem.outerWidth(true));
    		lastItem.prependTo($('.ipsNavBar_primary .focusNav_more > ul'));
    		ipsfocusNavigation();
    	} else {
    		var firstMoreElement = $('.ipsNavBar_primary li.focusNav_more li').first();
    		if (navwidth + firstMoreElement.data('width') < availablespace) {
    			firstMoreElement.insertBefore($('.ipsNavBar_primary .focusNav_more'));
    		}
    	}
    	
    	if ($('.focusNav_more li').length > 0) {
    		$('.focusNav_more').css('display','inline-block');
    	} else {
    		$('.focusNav_more').css('display','none');
    	}
    	
    }
    
    $(window).on('load',function(){
    	$(".navAlign").removeClass("hiddenLinks");
      	ipsfocusNavigation();
    });
     
    $(window).on('resize',function(){
    	ipsfocusNavigation();
    });
    
    // Make hover navigation work with touch devices
    
    // http://osvaldas.info/drop-down-navigation-responsive-and-touch-friendly
    ;(function(e,t,n,r){e.fn.doubleTapToGo=function(r){if(!("ontouchstart"in t)&&!navigator.msMaxTouchPoints&&!navigator.userAgent.toLowerCase().match(/windows phone os 7/i))return false;this.each(function(){var t=false;e(this).on("click",function(n){var r=e(this);if(r[0]!=t[0]){n.preventDefault();t=r}});e(n).on("click touchstart MSPointerDown",function(n){var r=true,i=e(n.target).parents();for(var s=0;s<i.length;s++)if(i[s]==t[0])r=false;if(r)t=false})});return this}})(jQuery,window,document);
    
    $('.ipsNavBar_primary > ul > li:has(ul)').doubleTapToGo();
      
    
    
    
    
     
    
    
        var browserResponsiveWidth = 980;
        var defaultBrowserWidth = $(window).width();
    
    	var headerHeight = $("#header").height();
        var headerWrap = $(".headerWrap");
        var headerBackgrounds = $(".headerBackgrounds");
        var headerBlur = $(".headerBlur");
        var blurEnd = 110;
    
    	var headerEffects = function(){
    		
    			var amountScrolled = $(window).scrollTop();
    	
    	        // Make navigation fixed
    	        if( amountScrolled >= headerHeight ){
    	            headerWrap.addClass("fixedBlur");
    	        } else {
    	            headerWrap.removeClass("fixedBlur");
    	        }
    			
    	      	// Blur header
    			if( (amountScrolled <= blurEnd) ){
    	            headerWrap.removeClass("blurred");
    	        } else {
    	            headerWrap.addClass("blurred");
    	        }
    			
    	      	// Parallax effect
    	        var translateHeader = amountScrolled / 2;
    	      
    	        if( amountScrolled <= headerHeight ){
    	            headerBackgrounds.css( "margin-top", translateHeader + "px" );
    	        } else {
    	            headerBackgrounds.css( "margin-top", (headerHeight / 2) + "px" );
    	        }
    		
    	}
    
    
        if( $('body').hasClass('ipsfocus_desktop') ){
            
          $(window).scroll(function(){
    
                headerEffects();
    
            });
    
        };
    
    
      
    });

     

    В какой из них?!focus.PNG

  9. Доброго времени суток. Не могли бы вы подсказать как сделать что ты при проматывании форума NavBar оставался в верху, а не со скролом странички пропадал.

    вот две картинки ДО промотки:до.PNG

     

    И после промотки:  после.PNG

  10. Доброго времени суток. Подскажите пожалст как сделать что бы сообщения от правленые группой "Администратор"  выделялись отдельными Линиями как на картинке. Там Типо ободки жёлтой, как это сделать только для одно конкретной группы

    Админ.PNG

     

  11. 6 минут назад, Sipsb сказал:

    Elvis DeShulez, Я вам написал в ЛС, нужен доступ в ACP! что Вы ещё хотите? o.O

    Всё уже разобрался, вы дали толчок, посидел поискал, всё же нашёл) Спасибо всем) Всем лойсики))))123123123.PNG

×
×
  • Создать...