2rage Posted August 9, 2014 Report Share Posted August 9, 2014 (edited) Здравствуйте, в связи с установкой "Ip content", столкнулся с 2 проблемами. 1. [РЕШЕНО] Некорректно переходит по ссылке последнего сообщения в разделе. Фикс: Решил изменением в файле admin/applications/forums/modules_public/forums/topics.php $this->registry->output->silentRedirect( $this->settings['base_url']."showtopic=".$topicData['tid'].$stUrlParam.$pid, $topicData['title_seo'], 302, 'showtopic' );вместо $stUrlParam.$pidвставляем $stUrlParam."#entry".$post['pid'], '', 2. Никак не могу подогнать secondary navigation следующим образом: Чтобы при переходе на test1.ru было: "Главная", при переходе, например на статьи "Главная > Статьи". И чтобы при переходе на test1.ru/forum было: "Форум", при переходе, например в раздел "Форум > Раздел". Код secondary navigation: <div id='secondary_navigation' class='clearfix'> <ol class='breadcrumb top ipsList_inline left' id='breadcrumb'> <php>$this->did_first = 0;</php> <if test="switchnavigation:|:!$this->settings['remove_forums_nav'] OR ipsRegistry::$current_application == 'forums'"> <li itemscope itemtype="__data-vocabulary.org/Breadcrumb" <if test="!$this->did_first">class='first'</if>> <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> <foreach loop="navigation:$items['navigation'] as $idx => $data"> <li itemscope itemtype="__data-vocabulary.org/Breadcrumb" <if test="!$this->did_first">class='first'</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> <ul class='secondary_links ipsList_inline right' style='margin-right:0px;'> <li><a href="{parse url="app=core&module=global&section=navigation&inapp={parse expression="IPS_APP_COMPONENT"}" base="public"}" rel="quickNavigation" accesskey='9' id='quickNavLaunch' title='' data-tooltip="{$this->lang->words['launch_quicknav']}"><img src="{style_images_url}/icon_quicknav.png" alt="" /></a></li> <a href='<if test="ruleslink:|:$this->settings['gl_link']">{$this->settings['gl_link']}<else />{parse url="app=forums&module=extras&section=boardrules" base="public"}</if>'><img src="{style_images_url}/nav_rules.png" alt="" /></a></li></if> <if test="showQuickNav:|:! ( ! $this->memberData['member_id'] && $this->settings['force_login'] ) && !($this->settings['board_offline'] && !$this->memberData['g_access_offline'])"></if></ul></div> Edited August 9, 2014 by HooLIGUN Изображения заливаются к нам на сайт! Quote Link to comment Share on other sites More sharing options...
2rage Posted August 10, 2014 Author Report Share Posted August 10, 2014 Актуально. Quote Link to comment Share on other sites More sharing options...
2rage Posted August 10, 2014 Author Report Share Posted August 10, 2014 Скину 50 рублей за решение 2 вопроса. Quote Link to comment Share on other sites More sharing options...
2rage Posted August 11, 2014 Author Report Share Posted August 11, 2014 Актуально. Quote Link to comment Share on other sites More sharing options...
Respected Posted August 11, 2014 Report Share Posted August 11, 2014 По второму: всё делается стандартными манипуляциями в админке, код править не нужно 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.