Jump to content
Дизайн и модификация Invision Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Buskopan

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

Recommended Posts

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

 

Спросил у İ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.

 

 

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

Share this post


Link to post

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

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

Share this post


Link to post

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

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

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

 

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

Share this post


Link to post

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

Share this post


Link to post

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

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

 

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

Share this post


Link to post

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

Share this post


Link to post

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

открываем в шаблоне 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

  • Upvote 1

Share this post


Link to post

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

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...