Jump to content

2 проблемы (IP.Content)


Recommended Posts

Здравствуйте, в связи с установкой "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&amp;module=global&amp;section=navigation&amp;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&amp;module=extras&amp;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 by HooLIGUN
Изображения заливаются к нам на сайт!
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...