Onore Posted May 14, 2017 Share Posted May 14, 2017 Есть какой нибудь плагин который добавляет боковой блок на левую сторону сайта? Хочу сделать как у этого сайта(если что он на jooml'e) Quote Link to comment Share on other sites More sharing options...
WOLF Posted May 14, 2017 Share Posted May 14, 2017 а по центру что будет? список форумов? или вы главную хотите сделать? sergey81 1 Quote Link to comment Share on other sites More sharing options...
Onore Posted May 14, 2017 Author Share Posted May 14, 2017 И то создание множества тем вышло нечаянно, у вас тогда форум залагал Да, по центру список форумов Quote Link to comment Share on other sites More sharing options...
Onore Posted May 15, 2017 Author Share Posted May 15, 2017 Не слишком ли долгое молчание? Quote Link to comment Share on other sites More sharing options...
andros0789 Posted May 15, 2017 Share Posted May 15, 2017 32 минуты назад, Onore сказал: Не слишком ли долгое молчание? Ну с помощью конструктора у вас не получится их добавлять. А вот если хотите свои блоки, то можно сделать, я уже писал как. пользуйтесь поиском. Quote Link to comment Share on other sites More sharing options...
WOLF Posted May 15, 2017 Share Posted May 15, 2017 2 часа назад, Onore сказал: Не слишком ли долгое молчание? А что, тут кто-то должен или обязан отвечать? Если молчат то либо не знают решения либо его нет. Quote Link to comment Share on other sites More sharing options...
Silence Posted May 15, 2017 Share Posted May 15, 2017 В 14.05.2017 г. в 15:39, Onore сказал: Есть какой нибудь плагин который добавляет боковой блок на левую сторону сайта? Хочу сделать как у этого сайта(если что он на jooml'e) Чтобы сделать это, откройте Admin CP -> Look & Feel -> Select Template ->Board Index -> boardIndexTemplate Мы находим следующий код: <div id='board_index' class='ipsLayout <if test="sideBarEnabledL:|:$this->templateVars['sidebar_enabled']">ipsLayout_withright</if> ipsLayout_largeright clearfix <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">no_sidebar</if>'> Замените его с этим кодом: <div id='board_index' class='ipsLayout ipsLayout_withleft ipsLayout_largeleft <if test="sideBarEnabledL:|:$this->templateVars['sidebar_enabled']">ipsLayout_withright</if> ipsLayout_largeright clearfix <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">no_sidebar</if>'> Найти: <div id='categories' class='ipsLayout_content clearfix'> Вставьте код выше: <div class='ipsLayout_left clearfix'><div class="ipsSideBlock clearfix"><h3>Название блока</h3><div class='_sbcollapsable'><ul class='ipsList_inline'> <li>Содержание Блоки</li></ul></div></div></div> Вот и все. Код вы можете изменить его в соответствии с вашими пожеланиями. На разрешение экрана, я не сделал едва любые изменения. Только изменилась ширина Форума 1150px 92%. Вот это в моем CSS-а: #wf-container,.wf-width {width:92%;height:auto!important;position:relative;margin: 0 auto;} Вот пример кода: <if test="boardIndexTop:|:true"></if><div id='board_index' class='ipsLayout ipsLayout_withleft ipsLayout_largeleft <if test="sideBarEnabledL:|:$this->templateVars['sidebar_enabled']">ipsLayout_withright</if> ipsLayout_largeright clearfix <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">no_sidebar</if>'><div class="ipsLayout_left clearfix"><div class='ipsSideBlock clearfix'><h3> Онлайн </h3><li<div class='_sbcollapsable'>{$stats['TOTAL']} {$this->lang->words['active_users_text']} <br/><div class='thin'><if test="activeNames:|:count($stats['NAMES'])"><p><span class='name'>{parseexpression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span></p></if></div></div><div class="ipsSideBlock clearfix __xXtwist352statistics"> <h3 id="anonymous_element_36"><a href="#" class="ipsSidebar_trigger ipsType_smaller right desc mod_links">×</a>Статистика</h3> <ul class="ipsList_data sb_statistics clearfix"> <li class="clearfix"> <span class="sl">Mнения:</span> <span class="sr"><b>{$stats['info']['total_posts']}</b></span> </li><li class="clearfix"> <span class="sl">Потребители:</span> <span class="sr"><b>{$stats['info']['mem_count']}</b></span> </li><li class="clearfix"> <span class="sl">Най-нов потребител:</span> <span class="sr"><b>{IPSMember::makeProfileLink( $stats['info']['last_mem_name'], $stats['info']['last_mem_id'], $stats['info']['last_mem_seo'], 'value' )}</b></span> </li> <li class="clearfix" data-tooltip='{$stats['info']['most_time']}' id="anonymous_element_37"> <span class="sl">Най-много онлайн:</span> <span class="sr"><b>{$stats['info']['most_online']}</b></span> </li> </ul></div><h3 class="maintitle" style=""><strong>Приятели</strong></h3><div class="_sbcollapsable"><b><a href="http://www.test/" target="_blank">Test1</a> | <a href="http://test.net/" target="_blank">Без Думи</a> | <a href="http://test.com/" target="_blank">Invisionbg</a> | <a href="http://test.com/" target="_blank">Test</a> | <a href="http://test.bg/" target="_blank">Bglessons</a> | <a href="http://www.testu.net/" target="_blank">Tishu</a> | <a href="http://test.to/" target="_blank">Sharevideo</a> | <a href="http://psbulgaria.com/" target="_blank">PSBulgaria</a> | <a href="http://test.com/" target="_blank">CMS Revue</a></b></div></li></div><div id='categories' class='ipsLayout_content clearfix'> Vask0 and Envy 2 Quote Link to comment Share on other sites More sharing options...
Onore Posted May 16, 2017 Author Share Posted May 16, 2017 18 часов назад, Silence сказал: Чтобы сделать это, откройте Admin CP -> Look & Feel -> Select Template ->Board Index -> boardIndexTemplate Мы находим следующий код: <div id='board_index' class='ipsLayout <if test="sideBarEnabledL:|:$this->templateVars['sidebar_enabled']">ipsLayout_withright</if> ipsLayout_largeright clearfix <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">no_sidebar</if>'> Замените его с этим кодом: <div id='board_index' class='ipsLayout ipsLayout_withleft ipsLayout_largeleft <if test="sideBarEnabledL:|:$this->templateVars['sidebar_enabled']">ipsLayout_withright</if> ipsLayout_largeright clearfix <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">no_sidebar</if>'> Найти: <div id='categories' class='ipsLayout_content clearfix'> Вставьте код выше: <div class='ipsLayout_left clearfix'><div class="ipsSideBlock clearfix"><h3>Название блока</h3><div class='_sbcollapsable'><ul class='ipsList_inline'> <li>Содержание Блоки</li></ul></div></div></div> Вот и все. Код вы можете изменить его в соответствии с вашими пожеланиями. На разрешение экрана, я не сделал едва любые изменения. Только изменилась ширина Форума 1150px 92%. Вот это в моем CSS-а: #wf-container,.wf-width {width:92%;height:auto!important;position:relative;margin: 0 auto;} Вот пример кода: <if test="boardIndexTop:|:true"></if><div id='board_index' class='ipsLayout ipsLayout_withleft ipsLayout_largeleft <if test="sideBarEnabledL:|:$this->templateVars['sidebar_enabled']">ipsLayout_withright</if> ipsLayout_largeright clearfix <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">no_sidebar</if>'><div class="ipsLayout_left clearfix"><div class='ipsSideBlock clearfix'><h3> Онлайн </h3><li<div class='_sbcollapsable'>{$stats['TOTAL']} {$this->lang->words['active_users_text']} <br/><div class='thin'><if test="activeNames:|:count($stats['NAMES'])"><p><span class='name'>{parseexpression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span></p></if></div></div><div class="ipsSideBlock clearfix __xXtwist352statistics"> <h3 id="anonymous_element_36"><a href="#" class="ipsSidebar_trigger ipsType_smaller right desc mod_links">×</a>Статистика</h3> <ul class="ipsList_data sb_statistics clearfix"> <li class="clearfix"> <span class="sl">Mнения:</span> <span class="sr"><b>{$stats['info']['total_posts']}</b></span> </li><li class="clearfix"> <span class="sl">Потребители:</span> <span class="sr"><b>{$stats['info']['mem_count']}</b></span> </li><li class="clearfix"> <span class="sl">Най-нов потребител:</span> <span class="sr"><b>{IPSMember::makeProfileLink( $stats['info']['last_mem_name'], $stats['info']['last_mem_id'], $stats['info']['last_mem_seo'], 'value' )}</b></span> </li> <li class="clearfix" data-tooltip='{$stats['info']['most_time']}' id="anonymous_element_37"> <span class="sl">Най-много онлайн:</span> <span class="sr"><b>{$stats['info']['most_online']}</b></span> </li> </ul></div><h3 class="maintitle" style=""><strong>Приятели</strong></h3><div class="_sbcollapsable"><b><a href="http://www.test/" target="_blank">Test1</a> | <a href="http://test.net/" target="_blank">Без Думи</a> | <a href="http://test.com/" target="_blank">Invisionbg</a> | <a href="http://test.com/" target="_blank">Test</a> | <a href="http://test.bg/" target="_blank">Bglessons</a> | <a href="http://www.testu.net/" target="_blank">Tishu</a> | <a href="http://test.to/" target="_blank">Sharevideo</a> | <a href="http://psbulgaria.com/" target="_blank">PSBulgaria</a> | <a href="http://test.com/" target="_blank">CMS Revue</a></b></div></li></div><div id='categories' class='ipsLayout_content clearfix'> Но у меня IPS 4, никаких Look & Feel нету Quote Link to comment Share on other sites More sharing options...
andros0789 Posted May 16, 2017 Share Posted May 16, 2017 парень. Тебе уже нужно обращатьься лично к кому либо чтобы выполнили твое желание. Тут не просто раз два написал и тебе выкатили код блоков код главной для Pages и тд Quote Link to comment Share on other sites More sharing options...
Onore Posted May 16, 2017 Author Share Posted May 16, 2017 Нет ли варианта скопировать код блоков справа и создать ещё одни блоки, но слева? В общем, скажите где лежит код блоков Quote Link to comment Share on other sites More sharing options...
andros0789 Posted May 16, 2017 Share Posted May 16, 2017 в IPS 4 не предусмотрен шаблон с двумя боковыми блоками. Можно только сделать с помощью правки шаблона GlobalTemplate (добавления в него своего сайдбара). И еще раз напомню телепатов тут нет. Какой шаблон у вас нет описания. Вы опишите людям русским языком. Догадываться тут никто не будет. Quote Link to comment Share on other sites More sharing options...
Onore Posted May 16, 2017 Author Share Posted May 16, 2017 Шаблон animate Quote Link to comment Share on other sites More sharing options...
andros0789 Posted May 16, 2017 Share Posted May 16, 2017 добавь после <div id="ipsLayout_contentWrapper"> это <div id="ipsLayout_sidebar" class="ipsLayout_sidebarleft "> здесь ваше содержимое </div> Onore 1 Quote Link to comment Share on other sites More sharing options...
Onore Posted May 16, 2017 Author Share Posted May 16, 2017 2 минуты назад, andros0789 сказал: добавь после <div id="ipsLayout_contentWrapper"> это <div id="ipsLayout_sidebar" class="ipsLayout_sidebarleft "> здесь ваше содержимое </div> но тогда меняются все страницы Quote Link to comment Share on other sites More sharing options...
andros0789 Posted May 16, 2017 Share Posted May 16, 2017 я вас подтолкнул на мысль. Читайте форум, здесь много чего написано, про отображение блоков на определенных страницах тоже есть. И про второй боковой блок тоже есть. У вас же как и у многих лень матушка... Onore 1 Quote Link to comment Share on other sites More sharing options...
Onore Posted May 16, 2017 Author Share Posted May 16, 2017 я пытался искать - не нашёл Quote Link to comment Share on other sites More sharing options...
andros0789 Posted May 16, 2017 Share Posted May 16, 2017 Onore 1 Quote Link to comment Share on other sites More sharing options...
Onore Posted May 16, 2017 Author Share Posted May 16, 2017 <div id='ipsLayout_contentWrapper'> {template="sidebar" if="theme.sidebar_position == 'left'" app="core" group="global" params="'left'"} <div id='ipsLayout_mainArea'> <a id='elContent'></a> {template="offlineMessage" if="!settings.site_online && \IPS\Member::loggedIn()->group['g_access_offline']" app="core" group="global" params=""} {template="updateWarning" app="core" group="global" params=""} {template="lkeyWarning" app="core" group="global" location="global" params=""} {advertisement="ad_global_header"} {template="acknowledgeWarning" if="\IPS\Member::loggedIn()->members_bitoptions['unacknowledged_warnings']" params="\IPS\Member::loggedIn()->warnings( 1, FALSE )" group="global" app="core"} {template="widgetContainer" group="global" app="core" params="'header', 'horizontal'"} {$html|raw} {template="widgetContainer" group="global" app="core" params="'footer', 'horizontal'"} </div> {template="sidebar" if="theme.sidebar_position == 'right'" app="core" group="global" params="'right'"} </div> Это код сайдбара, если первый left поменять на right он появится и слева, но если отредактировать его то редактируется и правый Можно ли что то добавить/исправить в этом коде что бы левый сайдбар отделился от правого? ----- Попробовал так, всё равно не работает <div id='ipsLayout_contentWrapper'> {template="sidebar" if="theme.sidebar_position == 'left'" app="core" group="global" params="'left'"} {template="sidebar" if="theme.sidebar_position == 'right'" app="core" group="global" params="'left'"} <div id='ipsLayout_mainArea'> <a id='elContent'></a> {template="offlineMessage" if="!settings.site_online && \IPS\Member::loggedIn()->group['g_access_offline']" app="core" group="global" params=""} {template="updateWarning" app="core" group="global" params=""} {template="lkeyWarning" app="core" group="global" location="global" params=""} {advertisement="ad_global_header"} {template="acknowledgeWarning" if="\IPS\Member::loggedIn()->members_bitoptions['unacknowledged_warnings']" params="\IPS\Member::loggedIn()->warnings( 1, FALSE )" group="global" app="core"} {template="widgetContainer" group="global" app="core" params="'header', 'horizontal'"} {$html|raw} {template="widgetContainer" group="global" app="core" params="'footer', 'horizontal'"} </div> {template="sidebar" if="theme.sidebar_position == 'right'" app="core" group="global" params="'right'"} </div> Quote Link to comment Share on other sites More sharing options...
Onore Posted May 16, 2017 Author Share Posted May 16, 2017 <div id='ipsLayout_contentWrapper'> {template="sidebar" if="theme.sidebar_position == 'left'" app="core" group="global" params="'left'"} {template="sidebar_left" if="theme.sidebar_position == 'right'" app="core" group="global" params="'left'"} <div id='ipsLayout_mainArea'> <a id='elContent'></a> {template="offlineMessage" if="!settings.site_online && \IPS\Member::loggedIn()->group['g_access_offline']" app="core" group="global" params=""} {template="updateWarning" app="core" group="global" params=""} {template="lkeyWarning" app="core" group="global" location="global" params=""} {advertisement="ad_global_header"} {template="acknowledgeWarning" if="\IPS\Member::loggedIn()->members_bitoptions['unacknowledged_warnings']" params="\IPS\Member::loggedIn()->warnings( 1, FALSE )" group="global" app="core"} {template="widgetContainer" group="global" app="core" params="'header', 'horizontal'"} {$html|raw} {template="widgetContainer" group="global" app="core" params="'footer', 'horizontal'"} </div> Сделал так, создал новый шаблон в той же категории с названием sidebar_left, скопировал туда код из sidebar, не совсем понял что изменить в том коде что бы он не брал информацию из правого? Я тут посмотрел в общем, форум становится слишком длинным, ну нафиг Quote Link to comment Share on other sites More sharing options...
WOLF Posted May 16, 2017 Share Posted May 16, 2017 Длинный будет форум или не длинный думают перед тем как задают подобные вопросы. Все предварительно взвесив, ибо люди тратят свое время, стараются а в итоге впустую. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.