View Full Version : Cho em hỏi
vuatangai
12-01-2011, 08:51 AM
http://i67.photobucket.com/albums/h295/vuatangai/help1.jpg
Cho em hỏi là sao cái nút "Viết bài mới" nó nằm liền với nút "Trả lời bài viết" em không biết cách nào cho nó nằm cách ra.
Vần đề thứ 2 là sao em làm đúng như bài "Hướng dẫn đóng khung thông tin chi tiết cho VBB 4.x" của anh HTT.itvn (http://itvnn.net/member.php?2889-HTT.itvn) mà sao không được các anh coi dùm em
File XML (http://www.mediafire.com/?nwzh1sbhmw86vsf)
Tiểu Bá Vương 1404
12-01-2011, 12:45 PM
Thứ nhất: Cái nút bạn chỉ cần thực hiện như sau:
Tìm code mà bạn chèn nút như sau (có thể khác đôi chút):
-Trên bài viết:
<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}<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top"><span>+</span> {vb:rawphrase post_new_thread}</a><vb:else />{vb:rawphrase closed_thread}</vb:if></a>
<img style="display:none" id="progress_newreplylink_top" src="{vb:stylevar imgdir_misc}/progress.gif" alt="" />
</vb:if>
=>Thay bằng:
<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 href="newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw foruminfo.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:15px;"><span>+</span> {vb:rawphrase post_new_thread}</a></a>
<img style="display:none" id="progress_newreplylink_top" src="{vb:stylevar imgdir_misc}/progress.gif" alt="" />
</vb:if>
-Dưới bài viết:
<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>
</vb:if>
=>Thay bằng:
<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 href="newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw foruminfo.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:150px;"><span>+</span> {vb:rawphrase post_new_thread}</a></a>
</vb:if>
Thứ hai: cái đóng khung bạn cần phải chèn code vào css rồi mới thực hiện đóng khung. Bạn có thể làm như sau:
-Vào Edit Template (của style bạn sử dụng) -> CSS Templates -> additional.css, bạn chèn code sau vào:
/*-- Đóng khung bởi TieuBaVuong1404 $ ITVNN.NET --*/
.profile {
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
background: #f8f8f8;
color: #546c7e;
border: 1px solid #434343;
padding: 1px 1px 1px 1px;
margin-top: 5px;
text-align:left;
}
.profile strong {
color: #fe6500;
}
.profile dt {
color: #d60000;
font-weight:700;
}
.profile dd {
color: #000;
font-weight:bold;
}
/*-- Kết thúc đóng khung $ ITVNN.NET --*/
-Sau đó, cũng trong Edit Template -> Postbit Templates -> postbit_legacy, tại đây bạn cũng đóng khung như đã làm nhưng thay với code sau:
<div class="profile"> ... và kết thúc bằng ... </div>
vuatangai
12-01-2011, 03:51 PM
Thank anh nhìu :MatCuoi (38):
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.