Jump to content

Нижние кнопки в портале


Mistik
 Share

Recommended Posts

По правилам вашего ресурса решил создать еще одну тему на счет своего IPB портала. Так вот, хочу изменить вид кнопок которые находятся в основном блоке новостей. То есть у меня сейчас вот так:

post-56360-0-22616500-1411022392_thumb.png

 

А хотелось что бы вот так:

post-56360-0-13441000-1411022400_thumb.png

 

Если кто знает как переделать, прошу помощи.

Link to comment
Share on other sites

Статистика

                <span class='right'>
               {parse format_number="$topic['views']"} {$this->lang->words['views']} ·
               {parse format_number="$topic['posts']"} {$this->lang->words['replies']}

               <if test="entryHasPosts:|:$topic['posts']">
                   ( {$this->lang->words['last_reply_by']} <if test="entryLastPoster:|:$topic['last_poster_id']"><a href='{parse url="showuser={$topic['last_poster_id']}" template="showuser" seotitle="{$topic['seo_last_name']}" base="public"}'>{$topic['last_poster_name']}</a><else />{$this->settings['guest_name_pre']}{$topic['last_poster_name']}{$this->settings['guest_name_suf']}</if> )
               </if>
               </span>

 

заменить на

                <span class='right'>
               <span class='portal_stat'>{parse format_number="$topic['views']"} {$this->lang->words['views']}</span>
               <span class='portal_stat'>{parse format_number="$topic['posts']"} {$this->lang->words['replies']}</span>

               <if test="entryHasPosts:|:$topic['posts']">
                   <span class='portal_stat'><if test="entryLastPoster:|:$topic['last_poster_id']"><a href='{parse url="showuser={$topic['last_poster_id']}" template="showuser" seotitle="{$topic['seo_last_name']}" base="public"}'>{$topic['last_poster_name']}</a><else />{$this->settings['guest_name_pre']}{$topic['last_poster_name']}{$this->settings['guest_name_suf']}</if></span>
                   <span class='portal_stat'>{parse date="$topic['last_post']" format="DATE"}</span>
               </if>
               </span>

 

В css-файл Портала добавить

.portal_stat {
   border-left: 1px solid #000000;
   padding: 0 10px;
}

 

Дополнительные св-ва добавите сами по желанию.

  • Upvote 1
Link to comment
Share on other sites

Статистика

                <span class='right'>
               {parse format_number="$topic['views']"} {$this->lang->words['views']} ·
               {parse format_number="$topic['posts']"} {$this->lang->words['replies']}

               <if test="entryHasPosts:|:$topic['posts']">
                   ( {$this->lang->words['last_reply_by']} <if test="entryLastPoster:|:$topic['last_poster_id']"><a href='{parse url="showuser={$topic['last_poster_id']}" template="showuser" seotitle="{$topic['seo_last_name']}" base="public"}'>{$topic['last_poster_name']}</a><else />{$this->settings['guest_name_pre']}{$topic['last_poster_name']}{$this->settings['guest_name_suf']}</if> )
               </if>
               </span>

 

заменить на

                <span class='right'>
               <span class='portal_stat'>{parse format_number="$topic['views']"} {$this->lang->words['views']}</span>
               <span class='portal_stat'>{parse format_number="$topic['posts']"} {$this->lang->words['replies']}</span>

               <if test="entryHasPosts:|:$topic['posts']">
                   <span class='portal_stat'><if test="entryLastPoster:|:$topic['last_poster_id']"><a href='{parse url="showuser={$topic['last_poster_id']}" template="showuser" seotitle="{$topic['seo_last_name']}" base="public"}'>{$topic['last_poster_name']}</a><else />{$this->settings['guest_name_pre']}{$topic['last_poster_name']}{$this->settings['guest_name_suf']}</if></span>
                   <span class='portal_stat'>{parse date="$topic['last_post']" format="DATE"}</span>
               </if>
               </span>

 

В css-файл Портала добавить

.portal_stat {
   border-left: 1px solid #000000;
   padding: 0 10px;
}

 

Дополнительные св-ва добавите сами по желанию.

 

Получилось так как я хотел но не пойму как сделать что бы кнопка ответы и там где дата были нажимаемые что бы кидало на последнее сообщение в теме

post-56360-0-17127300-1411052439_thumb.jpg

 

Link to comment
Share on other sites

Пол дня роюсь и не пойму где там вообще ссылки.
Нет "там" ссылок. Сами добавьте.

 

Кол-во ответов

{parse format_number="$topic['posts']"} {$this->lang->words['replies']}

Меняйте на

<a href='{parse url="showtopic={$topic['tid']}&view=getlastpost" base="public" seotitle="{$topic['title_seo']}" template="showtopic"}'>{parse format_number="$topic['posts']"} {$this->lang->words['replies']}</a>

 

Дата последнего поста

{parse date="$topic['last_post']" format="DATE"}

Меняйте на

<a href='{parse url="showtopic={$topic['tid']}&view=getlastpost" base="public" seotitle="{$topic['title_seo']}" template="showtopic"}'>{parse date="$topic['last_post']" format="DATE"}</a>

  • Upvote 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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