Đa số diễn đàn vbb đều không có nút "thêm bài mới" khi đã vào xem 1 bài viết nào đó, mà chỉ có nút "trả lời bài viết" thật là bất tiện khi đang đọc bài thì có ý tưởng đóng góp thêm bài mới, khi phải click trở về trang ngoài. Nên tốt nhất là có thêm 1 nút "thêm bài mới" kế bên nút trả lời
Sau đây là cách thêm nút "thêm bài mới" cho vbb 4x
- Đăng nhập admincp --> Styles & Templates --> Style Manager --> Edit Templates --> SHOWTHREAD TEMPLATES --> SHOWTHREAD
Bước 1: thêm nút "thêm bài mới" kế bên nút "trả lời" ở trên
- tìm code
thêm vào đằng sau </a> đăng sau đây nhá
Bước 2: Thêm nút "Thêm bài viết" kế bên nút "trả lời bài viết" phía dưới, tiện cho việc, ở đâu cũng thêm được
- tìm code:
- Enter xuống dòng, thêm code
Sau đây là cách thêm nút "thêm bài mới" cho vbb 4x
- Đăng nhập admincp --> Styles & Templates --> Style Manager --> Edit Templates --> SHOWTHREAD TEMPLATES --> SHOWTHREAD
Bước 1: thêm nút "thêm bài mới" kế bên nút "trả lời" ở trên
- tìm code
HTML:
<div id="above_postlist" class="above_postlist"><vb:if condition="$show['largereplybutton']"><a href="newreply.php?{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>
HTML:
<a href="newthread.php?{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>
- tìm code:
PHP:
<div id="below_postlist" class="below_postlist"> <vb:if condition="$show['largereplybutton']"> <a href="newreply.php?{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>
PHP:
<!-- New Thread Button --> <a href="newthread.php?{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 -->