Перейти к публикации
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.

Комментарии к записям в блоге

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

На мобильной версии форума не высвечиваются комментарии к записям. Видим только саму запись. Посмотрел у вас, все полноценно.

 

Спросил у İPS, обьяснили так.

 

The mobile skin is a mobile skin. It's a lighter version, and does not show all content in order to preserve bandwidth. That includes Gallery, because that is a location that is very bandwidth intensive.

 

I believe they will be updating the mobile skin to support more in IPB 3.2, but i'm not sure about the gallery. When you're on a mobile device, most times you have a bandwidth cap, so, we try to send as little as possible to prevent that being used up.

 

 

Какой шаблон и чем подправить, чтобы отображались комментрии?

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

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

Я ничего не делала для того, чтобы комментарии в мобильном скине отображались :(

Мобильный скин вообще не трогала.

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

Я ничего не делала для того, чтобы комментарии в мобильном скине отображались :(

Мобильный скин вообще не трогала.

не понимаю тогда почему врут. :(

 

странно. у них на сайте, в блогах тоже не отображаются комментарии.

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

Может у меня какая-то старая версия мобильного скина? :(

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

Может у меня какая-то старая версия мобильного скина? :(

Не похоже на то. Но отличается это однозначно.

 

У вас даже отображается верхний хук последних изображений в галерее, но нет в правом углу ярлыка для перехода по приложениям, лс, войти, выйти и тп.

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

Хм, на мобильном скине у меня тоже комментарии не отображаються.

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

Чтобы отразились комментарии

открываем в шаблоне commentsList и добавляем

<div class='comment_wrap' id='comment_wrap'>
               <foreach loop="comments:$comments as $id => $r">
               {parse template="comment" group="global_comments" params="$r, $parent, $settings"}
       </foreach>
</div>

 

затем открываем в шаблоене comment и добавляем

{parse striping="comments" classes="row1,row1"}
<a id='comment_{$r['comment']['comment_id']}'></a>
<div class='comment clearfix {parse striping="comments"} <if test="commentQueued:|:!$r['comment']['comment_approved']">moderated</if>' id='comment_id_{$r['comment']['comment_id']}'>
       <if test="commentignored:|:$r['comment']['_ignored'] || $r['comment']['_repignored']">
               <div class='post_ignore'>
                       <if test="userIgnoredLang:|:$r['comment']['_repignored'] == 1">{$this->lang->words['comment_ignored_rep']}<else />{$this->lang->words['ignored_comments_not']}</if> <a href='{parse url="showuser={$r['author']['member_id']}" base="public"}'>{$r['author']['members_display_name']}</a> {parse template="user_popup" group="global" params="$r['author']['member_id'], $r['author']['members_seo_name']"}. <a href='#entry{$r['comment']['comment_id']}' title='{$this->lang->words['ignored_comments_not']}' style='display: none' id='unhide_post_{$r['comment']['comment_id']}'>{$this->lang->words['rep_view_anyway']}</a>
               </div>
       </if>
       <div class='post_wrap topic_reply'>
               <div id='comment_{$r['comment']['comment_id']}' class='comment_content'>
                       {$r['comment']['comment_text']}
               </div>
               <div class='cleft secondary'>
                       <strong>                <img src='{$r['author']['pp_thumb_photo']}' width='16px' height='16px' class='userlinks_photo ' />
                               {$r['author']['comment_author_name']},
                       </strong>
                       <span>
                               <a class='desc' href='{parse url="app=core&module=global&section=comments&do=findComment&comment_id={$comment['comment']['comment_id']}&parentId={$parent['parent_id']}&fromApp={$settings['fromApp']}" base="public"}'>{parse date="$r['comment']['comment_date']" format="long"}</a>
                       </span>
               </div>

       </div>
</div>
<if test="commentinitignored:|:$r['comment']['_ignored'] || $r['comment']['_repignored']">
       <script type='text/javascript'>
               ipb.comments.setCommentHidden( {$r['comment']['comment_id']} );
       </script>
</if>

 

видим комменты но не можем отвечать.

 

решение взял в İPS

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

О получилось. Спасибо.

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

Сейчас на странице 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.