Thêm lượt trả lời lượt xem dưới tiêu đề bài viết

  • Thread starter Thread starter PVS
  • Ngày gửi Ngày gửi

PVS

Super Moderator
Thành viên BQT
Thêm lượt trả lời lượt xem dưới tiêu đề bài viết

Bài viết này sẽ hướng dẫn các bạn thêm lượt trả lời, lượt xem dưới tiêu đề bài viết

demo.jpg

Vào template thread_view tìm và thay đoạn
Mã:
<xen:description>
    {xen:phrase discussion_in_x_started_by_y_date_z,
        'forum=<a href="{xen:link forums, $forum}">{$forum.title}</a>',
        'name={xen:helper username, $thread}',
        'date=<a href="{xen:link threads, $thread}">{xen:datetime $thread.post_date, html}</a>'}
</xen:description>

thành
Mã:
<xen:description>
    {xen:phrase discussion_in_x_started_by_y_date_z,
        'forum=<a href="{xen:link forums, $forum}">{$forum.title}</a>',
        'name={xen:helper username, $thread}',
        'date=<a href="{xen:link threads, $thread}">{xen:datetime $thread.post_date, html}</a>'}
    {xen:phrase replies}: {xen:number $thread.reply_count}, {xen:phrase view}: {xen:number $thread.view_count}.
</xen:description>

Chúc các bạn thành công.


Nguồn: skinxf.net​
 
Back
Top