wick Posted March 31, 2015 Share Posted March 31, 2015 Подскажите пожалуйста как разместить баннер так как на втором скриншоте, сейчас баннер добавлен через стандартную настройку "Настройки: Настройки системы рекламы" -> "Код для добавления в шапку" и выглядит как на первом скриншоте, очень надо сделать как на втором, помогитеее )) Link to comment Share on other sites More sharing options...
Атаман Posted March 31, 2015 Share Posted March 31, 2015 Это уже в ручную через шаблон. Ац- внешний вид - глобальные - globalTemplate Найти: breadcrumb top ipsList_inline left Добавить выше, Ваш код баннеров. Link to comment Share on other sites More sharing options...
wick Posted March 31, 2015 Author Share Posted March 31, 2015 может тогда просто изменить расстояние между баннером и крошками, подскажите как это сделать на скриншоте показал как Link to comment Share on other sites More sharing options...
Атаман Posted March 31, 2015 Share Posted March 31, 2015 .breadcrumb.top { в ксс, поменяйте на свое значение. Link to comment Share on other sites More sharing options...
wick Posted March 31, 2015 Author Share Posted March 31, 2015 пытаюсь понять какая часть кода в globalTemplate выводит на главную баннер из системы рекламы, что бы сместить его выше крошек Link to comment Share on other sites More sharing options...
wick Posted March 31, 2015 Author Share Posted March 31, 2015 (edited) .breadcrumb { color: #000; font-size: 13px; } .breadcrumb.top a { color: #222; font-weight:bold; font-size:12px; border-bottom:1px dotted #222} .breadcrumb li .nav_sep { margin: 0 5px 0 0; } .breadcrumb li:first-child{ margin-left: 0; } .breadcrumb.top { margin-bottom: 10px; } .breadcrumb.bottom { margin-top: 10px; width: 100%; color: #000 !important;} /* .breadcrumb.bottom li a (color: #2F3237 !important; text-shadow: #2F3237 0 1px 1px;} */ меняю .breadcrumb.top { margin-bottom: 10px; } с 10 на 2, ни чего не меняется визуально Может можно вообще с главной страницы убрать хлебные крошки? что бы они отображались только тогда когда переходишь на страницы дальше? Edited March 31, 2015 by wick Link to comment Share on other sites More sharing options...
Атаман Posted March 31, 2015 Share Posted March 31, 2015 margin-bottom: 10px; меняйте на margin: 50px; Link to comment Share on other sites More sharing options...
newbie Posted March 31, 2015 Share Posted March 31, 2015 Может можно вообще с главной страницы убрать хлебные крошки? что бы они отображались только тогда когда переходишь на страницы дальше? По идее крошек нет на главной странице http://ipbskins.ru/forum/topic11020.html Link to comment Share on other sites More sharing options...
Атаман Posted March 31, 2015 Share Posted March 31, 2015 В его шаблоне есть) Link to comment Share on other sites More sharing options...
Viktar83 Posted March 31, 2015 Share Posted March 31, 2015 (edited) пытаюсь понять какая часть кода в globalTemplate выводит на главную баннер из системы рекламы, что бы сместить его выше крошекможет это оно?<!-- ::: CONTENT ::: --><if test="hasHeaderAd:|:$items['adHeaderCode']"> <div class='ipsAd'>{$items['adHeaderCode']}</div></if>По крайней мере в стандартном шаблоне так. По поводу отступаменяю .breadcrumb.top { margin-bottom: 10px; } с 10 на 2, ни чего не меняется визуальноПоменяйте на 50px ! - разницу должны заметить )Не понял, Вам уменьшить надо? Edited March 31, 2015 by Viktar83 Link to comment Share on other sites More sharing options...
wick Posted March 31, 2015 Author Share Posted March 31, 2015 Не понял, Вам уменьшить надо?Да, мне надо уменьшить расстояние, что бы пустого пространства ниже и выше баннеров не было Link to comment Share on other sites More sharing options...
Viktar83 Posted March 31, 2015 Share Posted March 31, 2015 Да, мне надо уменьшить расстояние, что бы пустого пространства ниже и выше баннеров не былоТак посмотрите свойства не только "крошек", но блока с рекламой (какие там отступы). Или там между ними могут быть теги <br /> ... Link to comment Share on other sites More sharing options...
wick Posted March 31, 2015 Author Share Posted March 31, 2015 (edited) очень пытаюсь добиться такого результата как на сриншоте или хотя бы вот так сделать как на скрине ниже вот глобал темплейт: <div id='secondary_navigation' class='clearfix'> <center><a href="http://site.ru/forum/" target="_blank"><img src="/baners/risunok.gif" alt="Да, это баннер" border="0"></a></center> <ol class='breadcrumb top ipsList_inline left'> <php>$this->did_first = 0;</php> <if test="switchnavigation:|:!$this->settings['remove_forums_nav'] OR ipsRegistry::$current_application == 'forums'"> <li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a href='{parse url="act=idx" seotitle="false" base="public"}' itemprop="url"> <span itemprop="title">{$this->settings['board_name']}</span> </a> </li> <if test="didfirstnav:|:$this->did_first=1"></if> </if> <foreach loop="navigation:$items['navigation'] as $idx => $data"> <li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <if test="didfirstappnow:|:$this->did_first"><i class='icon-breadnav'></i></if> <if test="navigationlink:|:$data[1]"><a href='{parse url="{$data[1]}" base="$data[4]" seotitle="$data[2]" template="$data[3]"}' title='{$this->lang->words['nav_return_to']} {$data[0]}' itemprop="url"></if><span itemprop="title">{$data[0]}</span><if test="closenavigationlink:|:$data[1]"></a></if> </li> <if test="forsuredidfirstnav:|:$this->did_first=1"></if> </foreach> </ol> </div> <br /> <!-- ::: MAIN CONTENT AREA ::: --> <!-- ::: NAVIGATION BREADCRUMBS ::: --> <noscript> <div class='message error'> <strong>{$this->lang->words['gbl_no_js_title']}</strong> <p>{$this->lang->words['gbl_no_js']}</p> </div> <br /> </noscript> <!-- ::: CONTENT ::: --> <if test="hasHeaderAd:|:$items['adHeaderCode']"> <div class='ipsAd'>{$items['adHeaderCode']}</div> </if> <if test="mainpageContent:|:$html">{$html}</if> <if test="hasFooterAd:|:$items['adFooterCode']"> <div class='ipsAd'>{$items['adFooterCode']}</div> </if> <ol class='breadcrumb bottom ipsList_inline left clearfix clear'> <if test="countnavbottom:|:count( $items['navigation'] )"> <php>$this->did_first_bottom = 0;</php> <if test="switchnavigationbottom:|:!$this->settings['remove_forums_nav'] OR ipsRegistry::$current_application == 'forums'"> <li><a href='{parse url="act=idx" seotitle="false" base="public"}'>{$this->settings['board_name']}</a></li> <if test="didfirstnavbottom:|:$this->did_first_bottom=1"></if> </if> <foreach loop="navigationbottom:$items['navigation'] as $idx => $data"> <li><if test="didfirstappnowbottom:|:$this->did_first_bottom"><i class='icon-breadnav'></i></if> <if test="navigationlink:|:$data[1]"><a href='{parse url="{$data[1]}" base="$data[4]" seotitle="$data[2]" template="$data[3]"}' title='{$this->lang->words['nav_return_to']} {$data[0]}'></if><span>{$data[0]}</span><if test="closenavigationlink:|:$data[1]"></a></if></li> <if test="forsuredidfirstnavbottom:|:$this->did_first_bottom=1"></if> </foreach> <else /> <li> </li> </if> <if test="privvy:|:$this->settings['priv_title']"> <li class='right ipsType_smaller'> <a rel="nofollow" href='{parse url="app=core&module=global§ion=privacy" template="privacy" seotitle="false" base="public"}'>{$this->settings['priv_title']}</a> </li> </if> <if test="siteruleslink:|:$this->settings['gl_show'] and $this->settings['gl_title']"> <li class='right ipsType_smaller'> <a href='<if test="ruleslink:|:$this->settings['gl_link']">{$this->settings['gl_link']}<else />{parse url="app=forums&module=extras§ion=boardrules" base="public"}</if>'><if test="siterulestitle:|:$this->settings['gl_title']">{$this->settings['gl_title']}<else />{$this->lang->words['board_rules']}</if></a><if test="privvyMiddot:|:$this->settings['priv_title']"> · </if> </li> </if> </ol> <br /> <br /> <!-- center> <script async charset="UTF-8" type="text/javascript" src="http://mestmaster.ru/12mn5e8z110xntgnqbyk0u0lfu1q8947rwm"></script> </center --> </div> <!-- ::: FOOTER (Change skin, language, mark as read, etc) ::: --> Edited March 31, 2015 by wick Link to comment Share on other sites More sharing options...
Viktar83 Posted March 31, 2015 Share Posted March 31, 2015 (edited) попробуйте участок кода вверху заменить на: <div id='secondary_navigation' class='clearfix'> <center><a href="http://site.ru/forum/" target="_blank"><img src="/baners/risunok.gif" alt="Да, это баннер" border="0"></a></center> <if test="countnav:|:count( $items['navigation'] )"> <ol class='breadcrumb top ipsList_inline left'> <php>$this->did_first = 0;</php> <if test="switchnavigation:|:!$this->settings['remove_forums_nav'] OR ipsRegistry::$current_application == 'forums'"> <li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a href='{parse url="act=idx" seotitle="false" base="public"}' itemprop="url"> <span itemprop="title">{$this->settings['board_name']}</span> </a> </li> <if test="didfirstnav:|:$this->did_first=1"></if> </if> <foreach loop="navigation:$items['navigation'] as $idx => $data"> <li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <if test="didfirstappnow:|:$this->did_first"><i class='icon-breadnav'></i></if> <if test="navigationlink:|:$data[1]"><a href='{parse url="{$data[1]}" base="$data[4]" seotitle="$data[2]" template="$data[3]"}' title='{$this->lang->words['nav_return_to']} {$data[0]}' itemprop="url"></if><span itemprop="title">{$data[0]}</span><if test="closenavigationlink:|:$data[1]"></a></if> </li> <if test="forsuredidfirstnav:|:$this->did_first=1"></if> </foreach> </ol> </if> </div> <br /> условие <if test="countnav:|:count( $items['navigation'] )"> по идее должно убрать хлебные крошки с главной страницы (код взял из стандартного стиля) Хмм, а баннер должен на всех страницах отображаться? А верхние хлебные крошки? Edited March 31, 2015 by Viktar83 1 Link to comment Share on other sites More sharing options...
wick Posted March 31, 2015 Author Share Posted March 31, 2015 (edited) условие <if test="countnav:|:count( $items['navigation'] )"> по идее должно убрать хлебные крошки с главной страницы (код взял из стандартного стиля) Суппер, заменил код который Вы дали, крошки с главной ушли и пустое место тоже, теперь поднять банер ближе к навигации и всё И разобраться каким кодом выводить баннер из системы рекламы на главную страницу Edited March 31, 2015 by wick Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now