f1.jpg
Cho mình hỏi code này viết sao dạ
Nếu đây là lần đầu tiên bạn tham gia diễn đàn, xin mời bạn xem phần Hỏi/Ðáp để biết cách dùng diễn đàn. Để có thể tham gia thảo luận bạn phải đăng ký làm thành viên, click vào đây để đăng ký.
f1.jpg
Cho mình hỏi code này viết sao dạ
thay đổi nội dung bởi: Jollibee; 21-03-2011 lúc 08:42 PM Lý do: Thêm dấu vào
Ra ngoài xem code của forum xịn hơn kìa chỉ vào tờ giấy trắng nho nhỏ đó
la sao minh chua hiểu
Đâ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 :
PHP Code:
<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> <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&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> <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&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 :
vàPHP Code:
<p class="lastpostdate">{vb:raw lastpostinfo.lastpostdate}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if>
Thêm vào liền kề ngay phía sau :PHP Code:
<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>
PHP Code:
<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw lastpostinfo.forumid}" rel="nofollow">+Gửi Bài Mới</a>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks