PDA

View Full Version : Giúp code gửi bài viết trong vbb



alike
21-03-2011, 10:52 AM
2610

Cho mình hỏi code này viết sao dạ
http://itvnn.net/images/styles/GamerBlue/misc/pencil.png

s0ct0j0c
21-03-2011, 11:09 AM
Ra ngoài xem code của forum xịn hơn kìa chỉ vào tờ giấy trắng nho nhỏ đó :MatCuoi (67):

alike
21-03-2011, 11:41 AM
la sao minh chua hiểu

Tiểu Bá Vương 1404
21-03-2011, 10:45 PM
Đây là code mình viết cho phần Last Post trong FORUMHOME, bạn sử dụng như sau :
Vào Style Manager -> Edit Templates -> Forum Home Templates -> forumhome_lastpostby.
Thay toàn bộ bằng code sau nếu temp này chưa qua chỉnh sửa :


<vb:if condition="$show['lastpostinfo']">
<p class="lastposttitle">
<vb:if condition="$show['icon']"><img src="{vb:raw icon.iconpath}" alt="{vb:raw icon.title}" border="0" /></vb:if>
<vb:if condition="$lastpostinfo['prefix']">{vb:raw lastpostinfo.prefix}</vb:if>
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_newpost}}" class="threadtitle" title="{vb:rawphrase go_first_unread_in_thread_x, {vb:raw lastpostinfo.lastthread}}">{vb:raw lastpostinfo.trimthread}</a>
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_lastpost}}#post{vb:raw lastpostinfo.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
</p>
<div class="lastpostby">
<vb:if condition="$lastpostinfo['lastposterid']">
{vb:rawphrase by_x_memberaction, {vb:raw memberaction_dropdown}}
<vb:else />
{vb:rawphrase by_x_guest, {vb:raw lastpostinfo.lastposter}}
</vb:if>
</div>
<p class="lastpostdate">{vb:raw lastpostinfo.lastpostdate}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if>&nbsp;&nbsp;&nbsp;&nbsp;<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw lastpostinfo.forumid}" rel="nofollow">+Gửi Bài Mới</a></p>
<vb:else />
<span class="lastpostdate">{vb:raw lastpostinfo.lastpostdate} <vb:if condition="!$show['detailedtime']"><span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if></span>
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_lastpost}}#post{vb:raw lastpostinfo.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw lastpostinfo.forumid}" rel="nofollow">+Gửi Bài Mới</a>
</vb:if>

Với trường hợp đã qua chỉnh sửa, tìm vào vị trí code sau :


<p class="lastpostdate">{vb:raw lastpostinfo.lastpostdate}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if>




<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_lastpost}}#post{vb:raw lastpostinfo.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>

Thêm vào liền kề ngay phía sau :


&nbsp;&nbsp;&nbsp;&nbsp;<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw lastpostinfo.forumid}" rel="nofollow">+Gửi Bài Mới</a>