mendax Posted March 5, 2015 Share Posted March 5, 2015 Ребят как поменять кнопки местами, была еще одна но от нее избавился Link to comment Share on other sites More sharing options...
Viktar83 Posted March 5, 2015 Share Posted March 5, 2015 АЦ --> Внешний вид --> правка стиля --> шаблоны глобальные --> GlobalTemplate Код, отвечающий за вкладку "форум" сместите выше. Раз удаляли кнопки, должны знать, где что )) Link to comment Share on other sites More sharing options...
siv1987 Posted March 5, 2015 Share Posted March 5, 2015 По моему порядок вкладок меню зависит от порядка модулей в админцентре. В шаблоне они генерируются циклом. Link to comment Share on other sites More sharing options...
mendax Posted March 5, 2015 Author Share Posted March 5, 2015 АЦ --> Внешний вид --> правка стиля --> шаблоны глобальные --> GlobalTemplate Код, отвечающий за вкладку "форум" сместите выше. Раз удаляли кнопки, должны знать, где что )) я не удалял я прописывал в каждой страничке #nav_app_members {display:none;} Link to comment Share on other sites More sharing options...
siv1987 Posted March 5, 2015 Share Posted March 5, 2015 В списке модулей и приложения на вкладке Система поменяйте местами приложения, перетащив вверх вниз в нужном порядке. 1 Link to comment Share on other sites More sharing options...
mendax Posted March 5, 2015 Author Share Posted March 5, 2015 В списке модулей и приложения на вкладке Система поменяйте местами приложения, перетащив вверх вниз в нужном порядке. поменял не изменились, сверху есть надпись обновить кеш приложений может его сделать чтоб тип обновилось на самом сайте или не стоит трогать? Link to comment Share on other sites More sharing options...
Viktar83 Posted March 5, 2015 Share Posted March 5, 2015 (edited) В списке модулей и приложения на вкладке Система поменяйте местами приложения, перетащив вверх вниз в нужном порядке.Так и есть - всё гениально и просто. Как-то и не подумал об этом :-| поменял не изменились, сверху есть надпись обновить кеш приложений может его сделать чтоб тип обновилось на самом сайте или не стоит трогать? Только что проверил - меняется сразу и не надо ничего обновлять, только F5 в браузере )) Edited March 5, 2015 by Viktar83 1 Link to comment Share on other sites More sharing options...
Viktar83 Posted March 5, 2015 Share Posted March 5, 2015 Если не получается - покажите код GlobalTemplate вашего стиля ( может, в нем дело ) На стандартном попробуйте - 100% должно работать. Link to comment Share on other sites More sharing options...
mendax Posted March 5, 2015 Author Share Posted March 5, 2015 <!-- ::: APPLICATION TABS ::: --> <div id='primary_nav' class='clearfix'> <div class='main_width'> <ul class='ipsList_inline' id='community_app_menu'> <if test="showQuickNav:|:! ( ! $this->memberData['member_id'] && $this->settings['force_login'] ) && !($this->settings['board_offline'] && !$this->memberData['g_access_offline'])"> <li class='right'> <a href="{parse url="app=core&module=global§ion=navigation&inapp={parse expression="IPS_APP_COMPONENT"}" base="public"}" rel="quickNavigation" accesskey='9' id='quickNavLaunch' title='{$this->lang->words['launch_quicknav']}'><span> </span></a> </li> </if> <li id='nav_explore' class='right'> <a href='{parse url="app=core&module=search&do=viewNewContent&search_app=<if test="viewnewcontentapp:|:$this->registry->getCurrentApplication() != 'core' AND IPSLib::appIsSearchable( $this->registry->getCurrentApplication() )">{$this->registry->getCurrentApplication()}<else />forums</if>" base="public"}' accesskey='2'>{$this->lang->words['view_new_posts']}</a> </li> <if test="showhomeurl:|:$this->settings['home_url']"> <li id='nav_home' class='left'><a href='{$this->settings['home_url']}' title='{$this->lang->words['homepage_title']}' rel="home">{$this->settings['home_name']}</a></li> </if> {parse variable="forumActive" default="" oncondition="IPS_APP_COMPONENT == 'forums'" value="active"} {parse variable="membersActive" default="" oncondition="IPS_APP_COMPONENT == 'members'" value="active"} {parse variable="helpActive" default="" oncondition="IPS_APP_COMPONENT == 'core' AND $this->request['module'] == 'help'" value="active"} <if test="!ipsRegistry::$applications['members']['app_hide_tab'] && !count(ipsRegistry::$applications['members']['app_tab_groups']) && !IPSMember::isInGroup( $this->memberData, ipsRegistry::$applications['members']['app_tab_groups'] )"><li id='nav_members' class='left {parse variable="membersActive"}'><a href='{parse url="app=members&module=list" base="public" template="members_list" seotitle="false"}' title='{$this->lang->words['go_to_memberlist']}'>{IPSLib::getAppTitle( 'members' )}</a></li></if> <if test="applicationsloop:|:is_array($header_items['applications']) AND count($header_items['applications'])"> <foreach loop="applications:$header_items['applications'] as $data"> <if test="showingapp:|:$data['app_show']"> {parse variable="appActive" default="" oncondition="$data['app_active']" value="active"} <li id='nav_app_{$data['app_dir']}' class="left {parse variable="appActive"}"><a href='{parse url="{$data['app_link']}" seotitle="false" base="public"}' title='{parse expression="sprintf( $this->lang->words['go_to_prefix'], IPSLib::getAppTitle($data['app_dir']) )"}'>{IPSLib::getAppTitle($data['app_dir'])}</a></li> </if> </foreach> </if> <li id='nav_other_apps' style='display: none'> <a href='#' class='ipbmenu' id='more_apps'>{$this->lang->words['more_apps']} <img src='{$this->settings['img_url']}/useropts_arrow.png' /></a> </li> </ul> </div> <script type='text/javascript'> if( $('primary_nav') ){ ipb.global.activateMainMenu(); } </script> </div> это он Link to comment Share on other sites More sharing options...
Viktar83 Posted March 5, 2015 Share Posted March 5, 2015 (edited) Чуть ниже строки<!-- ::: APPLICATION TABS ::: -->прямо под{parse variable="forumActive" default="" oncondition="IPS_APP_COMPONENT == 'forums'" value="active"} {parse variable="membersActive" default="" oncondition="IPS_APP_COMPONENT == 'members'" value="active"} {parse variable="helpActive" default="" oncondition="IPS_APP_COMPONENT == 'core' AND $this->request['module'] == 'help'" value="active"}найдите и удалите<if test="!ipsRegistry::$applications['members']['app_hide_tab'] && !count(ipsRegistry::$applications['members']['app_tab_groups']) && !IPSMember::isInGroup( $this->memberData, ipsRegistry::$applications['members']['app_tab_groups'] )"><li id='nav_members' class='left {parse variable="membersActive"}'><a href='{parse url="app=members&module=list" base="public" template="members_list" seotitle="false"}' title='{$this->lang->words['go_to_memberlist']}'>{IPSLib::getAppTitle( 'members' )}</a></li></if> И верните на место то что вы делали #nav_app_members {display:none;} - если хотите, чтоб пользователи появились справа от форума Edited March 5, 2015 by Viktar83 Link to comment Share on other sites More sharing options...
Viktar83 Posted March 5, 2015 Share Posted March 5, 2015 (edited) Из-за той строки у вас была такая картина: Edited March 5, 2015 by Viktar83 Link to comment Share on other sites More sharing options...
mendax Posted March 5, 2015 Author Share Posted March 5, 2015 все сделал появилось но теперь как только захожу в пользователи или вообще куда нибудь то кнопка исчезает просто вообще Link to comment Share on other sites More sharing options...
Viktar83 Posted March 5, 2015 Share Posted March 5, 2015 все сделал появилось но теперь как только захожу в пользователи или вообще куда нибудь то кнопка исчезает просто вообще Я так понимаю, наверное, из-за этого:я не удалял я прописывал в каждой страничке #nav_app_members {display:none;} Link to comment Share on other sites More sharing options...
mendax Posted March 5, 2015 Author Share Posted March 5, 2015 Я так понимаю, наверное, из-за этого: Я сначала взял и прописал это на каждый страничке а сейчас удалил и вот теперь такая фигня Link to comment Share on other sites More sharing options...
Viktar83 Posted March 5, 2015 Share Posted March 5, 2015 (edited) Как второй вариант, вернуть на место #nav_app_members {display:none;} и вернуть удаленную строку: но вставить ее не на место, а ниже (после цикла вывода приложений), чтобы вместо: <if test="!ipsRegistry::$applications['members']['app_hide_tab'] && !count(ipsRegistry::$applications['members']['app_tab_groups']) && !IPSMember::isInGroup( $this->memberData, ipsRegistry::$applications['members']['app_tab_groups'] )"><li id='nav_members' class='left {parse variable="membersActive"}'><a href='{parse url="app=members&module=list" base="public" template="members_list" seotitle="false"}' title='{$this->lang->words['go_to_memberlist']}'>{IPSLib::getAppTitle( 'members' )}</a></li></if> <if test="applicationsloop:|:is_array($header_items['applications']) AND count($header_items['applications'])"> <foreach loop="applications:$header_items['applications'] as $data"> <if test="showingapp:|:$data['app_show']"> {parse variable="appActive" default="" oncondition="$data['app_active']" value="active"} <li id='nav_app_{$data['app_dir']}' class="left {parse variable="appActive"}"><a href='{parse url="{$data['app_link']}" seotitle="false" base="public"}' title='{parse expression="sprintf( $this->lang->words['go_to_prefix'], IPSLib::getAppTitle($data['app_dir']) )"}'>{IPSLib::getAppTitle($data['app_dir'])}</a></li> </if> </foreach> </if>получилось: <if test="applicationsloop:|:is_array($header_items['applications']) AND count($header_items['applications'])"> <foreach loop="applications:$header_items['applications'] as $data"> <if test="showingapp:|:$data['app_show']"> {parse variable="appActive" default="" oncondition="$data['app_active']" value="active"} <li id='nav_app_{$data['app_dir']}' class="left {parse variable="appActive"}"><a href='{parse url="{$data['app_link']}" seotitle="false" base="public"}' title='{parse expression="sprintf( $this->lang->words['go_to_prefix'], IPSLib::getAppTitle($data['app_dir']) )"}'>{IPSLib::getAppTitle($data['app_dir'])}</a></li> </if> </foreach> </if> <if test="!ipsRegistry::$applications['members']['app_hide_tab'] && !count(ipsRegistry::$applications['members']['app_tab_groups']) && !IPSMember::isInGroup( $this->memberData, ipsRegistry::$applications['members']['app_tab_groups'] )"><li id='nav_members' class='left {parse variable="membersActive"}'><a href='{parse url="app=members&module=list" base="public" template="members_list" seotitle="false"}' title='{$this->lang->words['go_to_memberlist']}'>{IPSLib::getAppTitle( 'members' )}</a></li></if> Получается вот так: "пользователи" будет выводиться в самом конце справа Edited March 5, 2015 by Viktar83 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