Thêm nút gửi bài mới ở Showthread template
New Thread Button in Showthread
Chức năng: Thêm nút gửi bài mới bên cạnh nút trả lời bài viết khi vào xem bài viết
Ở SHOWTHREAD Template
1. Tìm:
<div id="above_postlist" class="above_postlist"> <vb:if condition="$show['largereplybutton']"> <a href="newreply.code?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&noquote=1" class="newcontent_textcontrol" id="newreplylink_top"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>
Thêm vào liền sau nó đoạn code sau:
<!-- New Thread Button - kenhdaihoc.com --><a href="newthread.code?{vb:raw session.sessionurl}do=newthread&f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:10px;"><span>+</span> {vb:rawphrase post_new_thread}</a> <!-- /New Thread Button - kenhdaihoc.com -->
2. Tìm
<div id="below_postlist" class="below_postlist"> <vb:if condition="$show['largereplybutton']"> <a href="newreply.code?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&noquote=1" class="newcontent_textcontrol" id="newreplylink_bottom" ><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>
Thêm vào liền sau nó đoạn code sau:
<!-- New Thread Button - kenhdaihoc.com --> <a href="newthread.code?{vb:raw session.sessionurl}do=newthread&f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:150px;"><span>+</span> {vb:rawphrase post_new_thread}</a> <!-- /New Thread Button - kenhdaihoc.com-->
Post a Comment