Перейти к публикации
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Опубликовано:

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

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

 

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

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

 

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

Рекомендованные сообщения

Опубликовано:

Статистика

                <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;
}

 

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

Опубликовано:
  • Автор

Статистика

                <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

 

Опубликовано:

Добавить к ссылке &view=getlastpost

Опубликовано:
  • Автор

Добавить к ссылке &view=getlastpost

 

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

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

 

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

{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>

Опубликовано:
  • Автор

Спасибо Вам огромное, как всегда все получилось

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.