Chủ đề: [Topic] Hỗ trợ, giải đáp lập trình Wap/Web
![]() | ![]() ![]() ![]() ![]() 18:33 / 11.09.2016 |

Anh @LeYTi làm giúp em đc hk anh y như forum của anh ý có tag nữa
<link rel="stylesheet" href="http://fontawesome.io/assets/font-awesome/css/font-awesome.css">
Xong vào _xtgem_templates/action/view_thread.js xóa hết và thay bằng code
{% block view_thread %}
{% set view = 'thread' %}
{% set board = category.boards|first %}
{% set thread = board.threads|first %}
{{block('menu')}}
{{block('breadcrumbs')}}
{% if thread %}
{{block('messages')}}
{% if thread.is_closed %}
<div class="rmenu"><i class="fa fa-ban"></i> Chủ đề đã bị đóng cửa

{% endif %}
{% if settings.allow_anonymous_posting or profile %}
{% elseif account %}
<div class="topmenu">Bạn phải <a href="{{ join_link }}" title="Tham gia diễn đàn"><button>Tham Gia Diễn đàn</button></a> để có thể bình luận!</div>
{% else %}
<div class="topmenu"><i class="fa fa-warning"></i> Bạn phải <a href="{{ login_link }}" title="Đăng nhập" rel="nofollow"><button>Đăng nhập</button></a> để {% if view == 'board' %}Tạo chủ đề mới{% else %}Bình luận{% endif %}</div>
{% endif %}
<div class="list1"><form style="display:inline;" method="post" action="/follow.php"><input type="hidden" name="url" value="{{thread.link}}" /><input type="hidden" name="title" value="{{thread.title}}" /><input type="image" src="/img/icon/marker.png" /> Theo dõi chủ đề</form></div>
<div class="topmenu"><h1>{{thread.title}}</h1></div>
<div class="phdr"><i class="fa fa-group"></i> Diễn đàn {{block('site')}} {% if reversed_sort %}
{% if not profile or profile.settings.reply_sorting == 1 %}
<a href="?reversed=0" title="Sắp xếp" style="float:right;"><i class="fa fa-sort"></i></a>
{% else %}
<a href="?reversed=0" title="Sắp xếp" style="float:right;"><i class="fa fa-sort"></i></a>
{% endif %}
{% else %}
{% if not profile or profile.settings.reply_sorting == 1 %}
<a href="?reversed=1" title="Sắp xếp" style="float:right;"><i class="fa fa-sort"></i></a>
{% else %}
<a href="?reversed=1" title="Sắp xếp" style="float:right;"><i class="fa fa-sort"></i></a>
{% endif %}
{% endif %}</div>
{% import _self as script %}
{% for key, post in thread.posts %}
{{block('post_view')}}
{% endfor %}
{{block('pagination')}}
<div class="rmenu"><i class="fa fa-bar-chart"></i> Tổng số {{thread.replies}} bình luận và <script language="javascript" src="http://aichat.wap.sh/xtcat.js?id={{thread.link|replace({'http://':''})|split('/__xt/')|first|split('/')|first}}&key={{thread.id}}"></script> lượt xem</div>
{% if settings.allow_anonymous_posting or profile %}
{% if not thread.is_closed %}
{% if not user_silenced and profile %}
<div class="phdr"><i class="fa fa-comments"></i> Bình luận</div>
<div class="list1"> <form action="{{ thread.reply_to_link }}" method="post"{% if settings.allow_attachments %} enctype="multipart/form-data"{% endif %}>
<textarea name="message">{{ input.message }}</textarea>
{% if settings.allow_attachments %} <br /> <input type="file" name="file[]" /><br />
<input type="file" name="file[]" /><br />
<input type="file" name="file[]" />
{% endif %}
</div>
<div class="topmenu" style="text-align: center;"> <input type="submit" value="Gửi" /> <input type="submit" name="__preview" value="Xem trước" />
</form></div>
{% endif %}
{% endif %}
{% endif %}
{% if profile %}
<div class="phdr"><i class="fa fa-cogs"></i> Công cụ bài viết</div>
<div class="topmenu"><select name="url" onchange="window.open(this.options[this.selectedIndex].value,'_top')">
<option value="#" selected>{{block('beautiful_site')}}</option>
{% if profile.can_delete %}
<option value="{{ thread.delete_thread_link }}">Xoá chủ đề</option>
{% endif %}
{% if profile.can_pin %}
{% if thread.is_pinned %}
<option value="{{ thread.link }}?act=unpin">Bỏ Stick chủ đề</option>
{% else %}
<option value="{{ thread.link }}?act=pin">Stick chủ đề</option>
{% endif %}
{% endif %}
{% if profile.can_close %}
{% if thread.is_closed %}
<option value="{{ thread.link }}?act=open">Mở cửa chủ đề</option>
{% else %}
<option value="{{ thread.link }}?act=close">Đóng cửa chủ đề</option>
{% endif %}
{% endif %}
{% if thread.owner or profile.can_edit_thread %}
<option value="{{ thread.edit_thread_link}}">Đổi tên chủ đề</option>
{% endif %}
<option value="{{ thread.reply_to_link }}">Gửi bình luận</option>
</select>
</div>
{% elseif not profile %}
{% if settings.allow_anonymous_posting %}
<div class="phdr"><i class="fa fa-cogs"></i> Công cụ bài viết</div>
<div class="topmenu"><select name="url" onchange="window.open(this.options[this.selectedIndex].value,'_top')">
<option value="#" selected>{{block('beautiful_site')}}</option>
<option value="{{ thread.reply_to_link }}">Gửi bình luận</option></select>
</div>
{% endif %}
{% endif %}<div class="phdr"><i class="fa fa-share-alt"></i><span style="float: right;"><a href="https://www.facebook.com/sharer/sharer.php?u={{thread.link}}" rel="nofollow" target="_blank" title="Chia sẻ lên Facebook"><img src="/img/fb.png" alt="Facebook"/></a> <a href="https://plus.google.com/share?url={{thread.link}}" rel="nofollow" target="_blank" title="Chia sẻ lên Google+"><img src="/img/gg.png" alt="Google"/></a> <a href="http://link.apps.zing.vn/pro/view/conn/share?u={{thread.link}}" rel="nofollow" target="_blank" title="Zing"><img src="/img/zm.png" alt="Zing"/></a> <a href="https://twitter.com/home?status={{thread.link}}" rel="nofollow" target="_blank" title="Twitter"><img src="/img/tw.png" alt="Twitter"/></a></span><script language="javascript" src="/share.js"></script>
<div class="phdr"><i class="fa fa-tags"></i> Tags Could: </div><div class="topmenu"><b>Tags Diễn đàn:</b><br/><script language="javascript" src="/tag.js"></script><br/><b>Tags Google:</b><br/><script language="javascript" src="/tags.js"></script><br/></div>
{{block('search')}}
{% endif %}
{{block('online')}}
{% endblock %}
Freelance Design | Zalo 0903.159.717