Jump to content

Последние сообщения администрации


Recommended Posts

Приветствую.

Собственно имеется код.

<div class='ipsSideBlock'>
<h3>Последние сообщения администрации</h3>
        <div class='_sbcollapsable'>
  <ul class="ipsList_withminiphoto">
   <foreach loop="posts:$recentPosts as $post">
        <li class="clearfix">
         <a href="__site.ru/index.php?/user/{$post['last_poster_id']}-{$post['last_poster_name']}" class="ipsUserPhotoLink left">      
          {IPSMember::buildProfilePhoto($post['last_poster_id'], mini)}
         </a>
         <div class="list_content">
 <a href='{parse url="showtopic={$post['tid']}&amp;view=findpost" base="public" seotitle="{$post['title_seo']}" template="showtopicunread"}' class="ipsType_small">{$post['title']}</a> 
 <a href='{parse url="showtopic={$post['tid']}&amp;view=findpost" base="public" template="showtopic" seotitle="{$post['title_seo']}"}' title='{$this->lang->words['view_last_post']}'>{parse replacement="f_lastpost"}</a>
          <br/>
          <if test="forum:|:$this->settings['hsc_rp_showforum'] == 1">
           {$this->lang->words['forum']}: <a href='{parse url="showforum={$post['forum_id']}" base="public" seotitle="{$post['forum_name_seo']}" template="showforum"}'>{$post['forum_name']}</a>
           <br/>
          </if>
          <if test="starterInfo:|:$this->settings['hsc_rp_start'] == 1">
           {$this->lang->words['started_by']}: {IPSMember::makeProfileLink($post['starter_name'], $post['starter_id'], $post['seo_first_name'])}&nbsp;<span class='date'>- {parse date="$post['start_date']" format="SHORT"}</span>
          <br/>
          </if>
          <if test="firstPost:|:$this->settings['hsc_rp_post'] == 'F'">
           {$post['post']}
          <br/>
          </if>
          <if test="views:|:$this->settings['hsc_rp_views'] == 1">
           {$this->lang->words['views']}: {parse format_number="$post['views']"} &nbsp; {$this->lang->words['replies']}: {parse format_number="$post['posts']"}
          <br/>
          </if>
           <if test="lastPost:|:$this->settings['hsc_rp_post'] == 'L' and $post['post']">
           <span class="ipsType_small">{$post['post']}</span>
          </if>
          <if test="lastPostInfo:|:$this->settings['hsc_rp_last'] == 1">
           <p class="desc ipsType_smaller">
           {IPSMember::makeProfileLink($post['last_poster_name'], $post['last_poster_id'], $post['seo_last_name'])}&nbsp;<span class='date'>- {parse date="$post['last_post']" format="SHORT"}</span>
           </p>
          </if>
         </div>
</li>
   </foreach>
  </ul>
   </div>
</div> 

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

При переходе по ссылке, что бы переходилось непосредственно к посту в теме оставленному администратором, без разници последний это пост в теме или нет.

И желательно что бы была возможность вывода нескольких сообщений из 1 темы.

То есть, например блок из 10 сообщений в нем, по аналогии стандартного вывода последних тем все на вид, но это ссылки на последние ответы администраторов в темах.

Крутил и так и эдак уже, не выходит что то.

З.Ы. основано на  hsc recentposts sidebar 2.2.3

Edited by Frienemy
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...