Nói chung code đó chỉ để bạn tham khảo còn chủ yếu do bạn tự tùy chỉnh theo ý mình thôi
Printable View
Nói chung code đó chỉ để bạn tham khảo còn chủ yếu do bạn tự tùy chỉnh theo ý mình thôi
Bạn chú ý lỗi này :
Không thể khai báo 2 lớp class trong 1 thẻ . IE thì nó không hiểu là sử dụng lớp nào , còn Chrome thì nó hiểu lớp class đầu tiên . Bạn xóa 1 class đi nhé ( class in đậm )Trích:
<dl class="user_rep" class="bppostbit">
Bạn cho mình hình ảnh minh họa lỗi của bạn nhé . Mình dùng IE9 nên không thấy vỡ khung ở đâu cả . Bạn chú ý là VBB4 nếu xem bằng IE7 trở xuống thì sẽ vỡ giao diện .
@Tiểu Bá Vương : Em không nên tự hạ thấp bản thân mình khi mà fix cho người khác lại dùng từ ngữ như trên . Ban đầu em học VBB cũng có rất nhiều lỗ hổng về VBB đấy thôi .
Nếu em không thực hiện đóng khung mà chỉ dùng avatar mặc định thì làm theo cách sau :
Vào AdminCP >> Styles & Templates >> Style Manager >> Chọn style >> Edit Templates >> Postbit Templates >> Postbit_legacy , tìm code sau :
Thay thế thành :Trích:
<vb:if condition="$show['avatar']">
<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</vb:if>
Trích:
<center>
<table>
<tr>
<td>
<vb:if condition="$show['avatar']">
<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</vb:if>
</td>
</tr>
</table>
</center>
Em làm được roài, cảm ơn anh...hjhj...:MatCuoi (3):
Vẫn còn 1 lỗi nhỏ nữa anh ơi, giúp em...
http://cB1.upanh.com/22.572.29577060.TNv0/capture.gif
Postbit_galecy của em nè
PHP Code:
{vb:raw template_hook.postbit_start}
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
<!-- see bottom of postbit.css for .userinfo .popupmenu styles -->
<div class="posthead">
<vb:if condition="$show['inlinemod']"><label for="post_imod_checkbox_{vb:raw post.postid}"></vb:if>
<span class="postdate {vb:raw post.statusicon}">
<vb:if condition="$show['announcement']">
<span class="date">{vb:rawphrase x_until_y, {vb:raw post.startdate}, {vb:raw post.enddate}}</span>
<vb:else />
<span class="date">{vb:raw post.postdate}<vb:if condition="!$show['detailedtime']"> <span class="time">{vb:raw post.posttime}</span></vb:if></span>
</vb:if>
</span>
<span class="nodecontrols">
<vb:if condition="$post['postid'] AND $post['threadid'] AND !$show['moderated']">
<a name="post{vb:raw post.postid}" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}" class="<vb:if condition="$show['inlinemod']">ie</vb:if>postcounter">#{vb:raw post.postcount}</a><a id="postcount{vb:raw post.postid}" name="{vb:raw post.postcount}"></a>
</vb:if>
<vb:if condition="$show['moderated']">{vb:rawphrase moderated_post}</vb:if>
<vb:if condition="$show['inlinemod']">
<input class="postimod" type="checkbox" id="post_imod_checkbox_{vb:raw post.postid}" name="plist[{vb:raw post.postid}]" value="{vb:raw post.checkbox_value}" />
</vb:if>
</span>
<vb:if condition="$show['inlinemod']"></label></vb:if>
</div>
<div class="postdetails">
<div class="userinfo">
<div class="username_container">
<center><vb:if condition="$post['userid']">
{vb:raw memberaction_dropdown}
<!--{vb:raw post.onlinestatus}-->
<vb:else />
<span class="username guest">{vb:raw post.musername}</span>
</vb:if>
</center>
</div>
<span class="usertitle">
<center>{vb:raw post.usertitle}</center>
</span>
<vb:if condition="$post['rank']">
<span class="rank">{vb:raw post.rank}</span>
</vb:if>
{vb:raw template_hook.postbit_userinfo_left}
<vb:if condition="$show['reputation']">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
</vb:if>
<!--Avatar chuẩn-->
<center>
<table>
<tr>
<td>
<vb:if condition="$show['avatar']">
<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</vb:if>
</td>
</tr>
</table>
</center>
<!--Avatar chuẩn-->
<vb:if condition="$post['userid']">
<hr />
<dl class="userinfo_extra">
<vb:if condition="$post['userid']"><div class="bppostbit"><dt>Thành viên thứ</dt> <dd>{vb:raw post.userid}</dd></div></vb:if>
<vb:if condition="$post['joindate']"><div class="bppostbit"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></div></vb:if>
<vb:if condition="$post['field12']"><div class="bppostbit"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field12}</dd></div></vb:if>
<vb:if condition="$post['field11']"><div class="bppostbit"><dt>Số điện thoại</dt> <dd>{vb:raw post.field11}</dd></div></vb:if>
<vb:if condition="$post['age']"><div class="bppostbit"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></div></vb:if>
<div class="bppostbit"><dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd> </div>
{vb:raw template_hook.postbit_userinfo_right_after_posts}
</dl>
<vb:if condition="$show['infraction'] OR $show['reppower']">
<dl class="user_rep">
<vb:if condition="$show['infraction']">
<div class="bppostbit"><dt>{vb:rawphrase infractions}</dt>
<dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd></div>
</vb:if>
<vb:if condition="$show['reputation']">
<vb:if condition="$show['reppower']">
<div class="bppostbit"><dt>{vb:rawphrase reppower}</dt>
<dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd></div>
</vb:if>
</vb:if>
</dl>
</vb:if>
<!--ngan luong--><center>
<vb:if condition="$post['field8']">
<div class="bppostbit">
<a target="_blank" href="https://www.nganluong.vn/send_order.php?&email={vb:raw post.field8}">
<img src="https://www.nganluong.vn/data/images/merchant/button/btn-paynow-125.png" border="0" alt="Thanh toán an toàn tuyệt đối với Ngân Lượng !"></a>
</div>
</vb:if>
<!--ngan luong--></center>
<!--baokim--><center>
<vb:if condition="$post['field9']">
<div class="bppostbit">
<a target="_blank" href="https://www.baokim.vn/payment/deal_payment/product?receiver={vb:raw post.field9}">
<img src="https://www.baokim.vn/application/uploads/buttons/btn_safety_payment_3.png" alt="Thanh toán an toàn tuyệt đối với Bảo Kim !" border="0" ></a>
</div>
</vb:if>
<!--endbaokim--></center>
<!--bieu tuong yahoo lon--><center>
<vb:if condition="$post['field6']"> <div class="bppostbit"><a href="ymsgr:sendIM?{vb:raw post.field6}" target="_blank"><img src="http://opi.yahoo.com/online?u={vb:raw post.field6}&m=g&t=2" alt="Liên hệ bằng Chat Yahoo !" border="0" /></a></div></vb:if>
<!--bieu tuong yahoo lon--></center>
{vb:raw template_hook.postbit_userinfo_right}
<!--bieu tuong yahoo nho
<div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
bieu tuong yahoo nhỏ-->
</vb:if>
</div>
<div class="postbody">
<div class="postrow<vb:if condition="$show['postedited'] || $post['signature']"> has_after_content</vb:if>">
{vb:raw template_hook.postbit_messagearea_start}
<vb:if condition="$post['title'] OR $show['messageicon']">
<h2 class="title icon">
<vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /> </vb:if>{vb:raw post.title}
</h2>
</vb:if>
<vb:if condition="$post['isfirstshown']">
{vb:raw ad_location.ad_showthread_firstpost_start}
{vb:raw ad_location.thread_first_post_content}
</vb:if>
<vb:if condition="$post['islastshown']">
{vb:raw ad_location.thread_last_post_content}
</vb:if>
<div class="content<vb:if condition="$show['first_ad'] OR $show['last_ad']"> hasad</vb:if>">
<center>
<!-- $Id: Đóng khung Thông Tin bài trên $ --> <vb:if condition="!$GLOBALS['FIRSTPOSTID']">
<div>
<table cellSpacing="0" cellPadding="0" border="0" style="width:100%">
<tr>
<td style="padding: 0px"><img src="images/info/nnt1.png"></td>
<td style="padding: 0px" background="images/info/nnt2.png"></td>
<td style="padding: 0px"><img src="images/info/nnt3.png"></td>
</tr>
<tr>
<td valign="top" style="padding: 0px" background="images/info/nnt4.png"></td>
<td style="padding: 0px; background-color: #ffffff" bgColor="#ffffff">
<!-- $Id: images Đóng khung Thông Tin bài trên $ -->
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td>
{vb:raw template_hook.postbit_messagearea_start}
<vb:if condition="$post['title'] OR $show['messageicon']">
<h2 class="title icon" align="center">
Chủ Đề: <vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /> </vb:if>
<font color="#000080">{vb:raw post.title}</font>
</h2></vb:if>
</td>
</tr>
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="35%" align="left">►Lượt Xem: <b>{vb:raw thread.views}</b></td>
<td width="25%" align="left">►Trả Lời: <b>{vb:raw thread.replycount}</td>
<td align="left">
<div>
<!-- $Id: Share $ -->
►Chia Sẽ:
<a title="Gửi bài này cho bạn bè qua yahoo" href="ymsgr:im?+&msg=Đây là bài viết hay: {vb:raw post.title} --> http://forum.t8mclub.com/{vb:raw relpath} Hãy chia sẻ với mọi người bạn nhé"><img border="0" src="images/share/yahoo.gif"></a>
<a title="Ðăng lên FaceBook" target="_blank" href="http://www.facebook.com/share.php?u=http://forum.t8mclub.com/{vb:raw relpath}"><img border="0" src="images/share/facebook.png"></a>
<a title="Ðăng lên ZingMe" target="_blank" href="http://link.apps.zing.vn/pro/view/conn/share?u=http://forum.t8mclub.com/{vb:raw relpath}&t={vb:raw post.title}&desc=Nếu bạn thích, bạn có thể ghé qua Diễn Đàn của chúng tôi ^^!"><img border="0" src="images/share/zing.gif"></a>
<a title="Ðăng lên Google" target="_blank" href="https://www.google.com.vn/bookmarks/mark?op=add&bkmk=http://forum.t8mclub.com/{vb:raw relpath}&title={vb:raw post.title}&annotation="><img border="0" src="images/share/google.png"></a>
<a title="Ðăng lên TangVn" target="_blank" href="http://www.tagvn.com/submit?url=http://forum.t8mclub.com/{vb:raw relpath}"><img border="0" src="images/share/tagvn.gif"></a>
<a title="Bookmark lại bài này" href="javascript:bookmarksite('{vb:raw post.title}', 'http://forum.t8mclub.com/{vb:raw relpath}')"><img border="0" src="images/share/favorites.png"></a>
<a title="In trang này" href="javascript:window.print()"><img border="0" src="images/share/print.gif"></a>
<!-- $Id: Share $ -->
</div>
</td>
</tr>
<tr>
<td width="35%" align="left">►Ngày Gửi: <b>{vb:raw post.postdate}</b></td>
<td width="25%" align="left">►Đánh Giá: <b>{vb:raw thread.rating}Sao</b></td>
<td align="left">
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- $Id: Đóng khung Thông Tin bài dưới $ -->
</td>
<td style="padding: 0px" background="images/info/nnt6.png"></td>
</tr>
<tr>
<td style="padding: 0px"><img src="images/info/nnt7.png"></td>
<td style="padding: 0px" background="images/info/nnt8.png"></td>
<td style="padding: 0px"><img src="images/info/nnt9.png"></td>
</tr>
</table>
<!-- $Id: Đóng khung Thông Tin bài dưới $ --></div></vb:if>
</center>
<br/>
<!--dong khung bai viet chuan-->
<div id="post_message_{vb:raw post.postid}">
<blockquote class="postcontent restore ">
{vb:raw post.message}
</blockquote>
<!--ket thuc dong khung bai viet chuan-->
</div>
<vb:if condition="$show['attachments']">
<div class="attachments">
<vb:if condition="$show['thumbnailattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_thumbnails}" /> {vb:rawphrase attached_thumbnails}</legend>
{vb:raw post.thumbnailattachments}
</fieldset>
</vb:if>
<vb:if condition="$show['imageattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_images}</legend>
{vb:raw post.imageattachments}
</fieldset>
</vb:if>
<vb:if condition="$show['imageattachmentlink']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_images}</legend>
<ul>
{vb:raw post.imageattachmentlinks}
</ul>
</fieldset>
</vb:if>
<vb:if condition="$show['otherattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_files}</legend>
<ul>
{vb:raw post.otherattachments}
</ul>
</fieldset>
</vb:if>
<vb:if condition="$show['moderatedattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attachments_pending_approval}</legend>
<ul>
{vb:raw post.moderatedattachments}
</ul>
</fieldset>
</vb:if>
</div>
<!-- / attachments -->
</vb:if>
</div>
</div>
<vb:if condition="$show['postedited'] || $post['signature']">
<div class="after_content">
<vb:if condition="$show['postedited']">
<!-- edit note -->
<blockquote class="postcontent lastedited">
<!-- <img src="{vb:stylevar imgdir_button}/edit_40b.png" class="inlineimg" alt="" /> -->
<vb:if condition="$show['postedithistory']">
{vb:rawphrase last_edited_link_by_x_on_y_at_z_postid, {vb:raw post.edit_username}, {vb:raw post.edit_date},
{vb:raw post.edit_time}, {vb:raw post.historyurl}}
<vb:else />
{vb:rawphrase last_edited_by_x_on_y_at_z, {vb:raw post.edit_username}, {vb:raw post.edit_date}, {vb:raw post.edit_time}}
</vb:if>
<vb:if condition="$post['edit_reason']">
<span class="reason">{vb:rawphrase reason}:</span> {vb:raw post.edit_reason}
</vb:if>
</blockquote>
<!-- / edit note -->
</vb:if>
{vb:raw template_hook.postbit_signature_start}
{vb:raw ad_location.ad_showthread_firstpost_sig}
<!-- $Id: NNT Giới Thiệu Qua Y!M $ -->
<vb:if condition="!$GLOBALS['FIRSTPOSTID']">
<br />
<div class="smallfont" align="center" style="width: 515; height: 19">
<font color="black">--------</font><font color="black"><b>Đây là link nhanh của bài viết này </b></font><font color="black">--------</font>
</div>
<div align="center">
<table>
<TR><TD>
<p align="center"><font color="red"><b>Khi trích dẫn, bạn vui lòng ghi rõ nguồn là: "Theo T8mClub.Com"!</b></font><br>
<textarea style="width: 500; height: 25" rows="1" name="embedhtml" cols="100" readonly="readonly" align="center" onclick="this.select()" id="embedhtml">
http://t8mclub.com/forum/{vb:raw relpath}
</textarea>
</TD></TR>
</table></div>
</vb:if>
<!-- $Id: NNT Giới Thiệu Qua Y!M $ -->
<vb:if condition="$post['signature']">
<blockquote class="signature restore"><div class="signaturecontainer">{vb:raw post.signature}</div></blockquote>
</vb:if>
{vb:raw template_hook.postbit_signature_end}
</div>
</vb:if>
<div class="cleardiv"></div>
</div>
</div>
<div class="postfoot">
<!-- <div class="postfoot_container"> -->
<div class="textcontrols floatcontainer">
<span class="postcontrols">
<img style="display:none" id="progress_{vb:raw post.postid}" src="{vb:stylevar imgdir_misc}/progress.gif" alt="{vb:rawphrase loading_editor_please_wait}" />
<vb:if condition="$post['editlink']">
<a class="editpost" href="{vb:raw post.editlink}" name="vB::QuickEdit::{vb:raw post.postid}"><img src="{vb:raw vboptions.cleargifurl}" id="editimg_{vb:raw post.postid}" alt="{vb:rawphrase edit_delete_message}" /> {vb:rawphrase edit_post}</a>
<span class="seperator"> </span>
</vb:if>
<vb:if condition="$show['quickreply'] AND !$show['threadedmode']">
<a id="qr_{vb:raw post.postid}" class='quickreply' href="{vb:raw post.replylink}" rel="nofollow"><img id="replyimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase quick_reply_to_this_message}" /> {vb:rawphrase reply}</a>
<span class="seperator"> </span>
</vb:if>
<vb:if condition="$post['replylink']">
<a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow"><img id="quoteimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" /> <vb:if condition="$post['forwardlink']">{vb:rawphrase reply_to_private_message}<vb:else />{vb:rawphrase reply_with_quote}</vb:if></a>
<vb:if condition="$show['multiquote_post']"><span class="seperator"> </span></vb:if>
</vb:if>
<vb:if condition="$show['multiquote_post']">
<a class="multiquote" href="{vb:raw post.replylink}" rel="nofollow" onclick="return false;" id="mq_{vb:raw post.postid}"><img id="mq_image_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase multi_quote_this_message}" /> </a>
</vb:if>
</span>
<span class="postlinking">
<vb:if condition="!$post['forwardlink'] && THIS_SCRIPT != 'usernote' && THIS_SCRIPT != 'announcement'">
<vb:if condition="$promote_sectionid AND $promote_sectionid != -1">
<a href="{vb:raw promote_url}" class="promotecms">{vb:rawphrase promote_to_article}</a>
<span class="seperator"> </span>
</vb:if>
</vb:if>
{vb:raw template_hook.postbit_controls}
{vb:raw post.iplogged}
<vb:if condition="$post['forwardlink']">
<a class="forwardpost" href="{vb:raw post.forwardlink}" rel="nofollow"><img src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase forward_message}" /> {vb:rawphrase forward}</a>
<vb:if condition="$show['reputationlink'] OR $show['infractionlink'] OR $show['moderated'] OR $show['spam'] OR $show['deletedpost'] OR $show['redcard'] OR $show['yellowcard']"><span class="seperator"> </span></vb:if>
</vb:if>
<vb:if condition="$show['reputationlink']">
<span class="reputationpopupmenu popupmenu popupcustom" title="{vb:raw post.postid}"><a class="popupctrl reputation" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&p={vb:raw post.postid}" title="{vb:rawphrase add_reputation}" rel="nofollow" id="reputation_{vb:raw post.postid}"><!--<img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase add_reputation}" /> --> </a></span>
</vb:if>
<vb:if condition="$show['infractionlink']">
<a class="infraction" href="infraction.php?{vb:raw session.sessionurl}do=report&p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase add_infraction_for_x, {vb:raw post.username}}"><!-- <img src="{vb:stylevar imgdir_button}/add-infraction_sm.png" alt="{vb:rawphrase add_infraction_for_x, {vb:raw post.username}}" /> --> </a>
</vb:if>
<vb:if condition="$show['reportlink']">
<a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> --> </a>
</vb:if>
<vb:if condition="$show['moderated']">
<img class="moderated" src="{vb:stylevar imgdir_misc}/moderated_sm.png" alt="{vb:rawphrase moderated_post}" />
</vb:if>
<vb:if condition="$show['spam']">
<img class="spam" src="{vb:stylevar imgdir_misc}/spam_detected.png" alt="{vb:rawphrase spam_post}" />
</vb:if>
<vb:if condition="$show['deletedpost']">
<vb:if condition="$show['managepost']">
<a class="deleted" href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=managepost&p={vb:raw post.postid}" title="{vb:rawphrase manage}"> </a>
<vb:else />
<img class="deleted_nolink" class="inlineimage" src="{vb:stylevar imgdir_button}/deleted_sm.png" alt="{vb:rawphrase deleted_post}" />
</vb:if>
</vb:if>
<vb:if condition="$show['redcard']">
<a class="redcard" href="infraction.php?{vb:raw session.sessionurl}do=view&p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase received_infraction}"><!-- <img src="{vb:stylevar imgdir_button}/red-card_sm.png" alt="{vb:rawphrase received_infraction}" /> --> </a>
<vb:elseif condition="$show['yellowcard']" />
<a class="yellowcard" href="infraction.php?{vb:raw session.sessionurl}do=view&p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase received_warning}"><!--<img src="{vb:stylevar imgdir_button}/yellow-card_sm.png" alt="{vb:rawphrase received_warning}" /> --> </a>
</vb:if>
</span>
<!-- </div> -->
</div>
</div>
<hr />
</li>
{vb:raw template_hook.postbit_end}
Cho anh xem đoạn CSS đóng khung của em .
Cái postbit.css của em nà
Còn đây là đóng khung Thank của emPHP Code:
@charset "UTF-8";
/* CSS Document */
/* last edited notice */
.lastedited {
font-style:italic;
padding-top: 1em;
color: {vb:stylevar body_color};
font-size: {vb:stylevar small_fontSize};
/* clear:both; */
}
.lastedited a {
color: {vb:stylevar body_color};
}
/* reputation image */
.postbit_reputation {
padding:0 0 0 3px;
clear:both;
display:block;
}
img.repimg {
padding:0;
margin:0 0 0 -3px;
display:inline;
}
.quickedit {
border-top: {vb:stylevar tabslight_border};
}
/*signature */
.signature {
padding-top: 1em;
border-top: {vb:stylevar signature_border};
margin-top: 2em;
}
/*post bit*/
.postbit, .postbitlegacy, .eventbit {
margin-bottom: {vb:stylevar padding};
display:block;
width: 100%;
clear:both;
position: relative;
float: {vb:stylevar left};
color: {vb:stylevar body_color};
border: {vb:stylevar postbit_border};
}
.postbit object {
clear:both;
}
.postbit .postdetails {
width: 100%;
display:block;
float: {vb:stylevar left};
}
.postrow {
overflow: auto;
}
.postbit .posthead, .postbitlegacy .posthead, .eventbit .eventhead {
background: {vb:stylevar postbithead_background};
_background-image: none;
border: {vb:stylevar postbithead_border};
clear:both;
display:block;
float: {vb:stylevar left};
width: 100%;
color: {vb:stylevar postbithead_color};
margin: -{vb:stylevar postbithead_border.borderWidth}{vb:stylevar postbithead_border.units} -{vb:stylevar postbithead_border.borderWidth}{vb:stylevar postbithead_border.units} 0;
font: {vb:stylevar postbithead_font};
padding: 4px 0;
}
.postbit .posthead .postdate, .postbitlegacy .posthead .postdate {
display:block;
float:{vb:stylevar left};
clear:{vb:stylevar right};
width: 49%;
margin-{vb:stylevar left}: 10px;
font: {vb:stylevar postbithead_font};
padding-{vb:stylevar left}: 15px;
}
.postbit .posthead .postdate.old, .postbitlegacy .posthead .postdate.old {
background:transparent url({vb:stylevar imgdir_statusicon}/post_old.png) no-repeat center {vb:stylevar left};
}
.postbit .posthead .postdate.new, .postbitlegacy .posthead .postdate.new {
background:transparent url({vb:stylevar imgdir_statusicon}/post_new.png) no-repeat center {vb:stylevar left};
}
.postbit .postdate .time {
color: {vb:stylevar postbithead_color};
margin-{vb:stylevar left}: {vb:stylevar padding};
}
.postbithead .postdate .time {
color: {vb:stylevar body_color};
}
.postbit .userinfo .contact, .postbit .userinfo_noavatar .contact {
position: relative;
float: {vb:stylevar left};
clear: {vb:stylevar right};
width: 50%;
display:block;
}
.postbit .postuseravatarlink {
display:block;
text-align: center;
position: relative;
top: 0;
margin-{vb:stylevar left}: {vb:math {vb:stylevar padding}+5};
float: {vb:stylevar left};
clear: {vb:stylevar right};
}
.postbit .postuseravatarlink img {
}
.postbit .nodecontrols .postimod{
top: 0;
position:relative;
margin-{vb:stylevar left}: {vb:stylevar padding};
}
.postbit .userinfo, .postbit .userinfo_noavatar {
background: {vb:stylevar postbit_userinfo_background};
_background-image: none;
clear:both;
min-height: {vb:math {vb:stylevar postbit_avatar_maxSize}+1-{vb:math {vb:math {vb:math {vb:stylevar font.fontSize}-1}*1.230}+{vb:stylevar padding}}};
height: auto !important;
border-bottom:{vb:stylevar postbit_border};
padding: 0.5em 0;
width: 100%;
float: {vb:stylevar left};
}
.postbit .userinfo .contact, .userinfo .userinfo_extra, .postbit .userinfo_noavatar .contact {
display:inline-block;
min-height: {vb:math {vb:stylevar postbit_avatar_maxSize}+1-{vb:math {vb:math {vb:math {vb:stylevar font.fontSize}-1}*1.230}+{vb:stylevar padding}}};
height: auto !important;
height: {vb:math {vb:stylevar postbit_avatar_maxSize}+1-{vb:math {vb:math {vb:math {vb:stylevar font.fontSize}-1}*1.230}+{vb:stylevar padding}}};
}
.postbit .username_container {
float: {vb:stylevar left};
clear: {vb:stylevar right};
display:block;
margin-{vb:stylevar left}: {vb:stylevar padding};
}
.postbit .userinfo .username_container .memberaction, .postbit .userinfo_noavatar .username_container .memberaction {
display: inline;
}
.postbit .postdetails_noavatar .posthead, .postbit .postdetails_noavatar .userinfo .contact {
margin-{vb:stylevar left}: 0;
}
/*
.postbit .userinfo .postbit_reputation {
margin-{vb:stylevar left}: {vb:math {vb:stylevar postbit_avatar_maxSize} + {vb:stylevar padding} + 5px};
}
*/
.postbit .userinfo .username, .postbit .userinfo_noavatar .username {
font-size: {vb:stylevar font.fontSize}{vb:stylevar font.units};
font-weight: bold;
}
.postbit .userinfo_noavatar .imlinks img {
display:inline;
}
.postbit .userinfo .username.guest, .postbit .userinfo_noavatar .username.guest {
font-weight:normal;
}
.postbit .userinfo_noavatar .usertitle, .postbit .userinfo .usertitle, .postbit .userinfo_noavatar .rank, .postbit .userinfo .rank {
font-size: {vb:stylevar small_fontSize};
font-weight: bold;
display:block;
clear:both;
}
.postbit .userinfo .userinfo_extra, .postbit .userinfo_noavatar .userinfo_extra {
text-align: {vb:stylevar right};
width: 300px;
float: {vb:stylevar right};
font-size: {vb:stylevar small_fontSize};
}
.postbit .userinfo .userinfo_extra dl, .postbit .userinfo_noavatar .userinfo_extra dl {
margin-{vb:stylevar right}: {vb:stylevar padding};
float: {vb:stylevar right};
width: 150px;
}
.postbit .userinfo_extra dl dt {
float:{vb:stylevar left};
display:block;
margin-{vb:stylevar right}: {vb:math {vb:stylevar padding}/2};
}
.postbit .userinfo_extra dl dt:after {
content:":";
}
.postbit .userinfo_extra dl dt.blank:after {
content:none;
}
.postbit .userinfo_extra dl dd {
display:block;
}
.postbit .userinfo .moreinfo, .postbit .userinfo_noavatar .moreinfo {
float: {vb:stylevar left};
display: inline;
}
.postbit .userinfo .popupmenu a.popupctrl, .postbit .userinfo_noavatar .popupmenu a.popupctrl {
font-size: {vb:stylevar mid_fontSize};
background: transparent;
padding: 0;
display:inline-block;
}
.postbit .userinfo .popupmenu a.popupctrl:hover, .postbit .userinfo_noavatar .popupmenu a.popupctrl:hover {
color: {vb:stylevar link_color};
text-decoration: {vb:stylevar linkhover_hoverDecoration};
}
.postbit .postbody {
clear: both;
color: {vb:stylevar postbit_color};
}
.postbit .postrow {
font-family: {vb:stylevar forum_msg_font.fontFamily};
}
.postbit .postrow {
padding: {vb:math {vb:stylevar padding}/2} {vb:stylevar padding} 3em;
font: {vb:stylevar forum_msg_font};
}
.postbit hr {
display:none;
}
.postcontent {
word-wrap: break-word;
}
.postbit .posttitle {
display:block;
padding: {vb:stylevar padding};
font-weight:bold;
font: {vb:stylevar post_title_font};
margin: 0;
}
.postbit .content img, .postbitlegacy .content img, .postbitdeleted .content img, .postbitignored .content img, .eventbit .content img {
max-width: {vb:stylevar image_medium_max};
}
/*postbit legacy*/
.postbitlegacy hr, .eventbit hr {
display: none;
}
.postbitlegacy .postdetails, .eventbit .eventdetails {
float: {vb:stylevar left};
width: 100%;
background: {vb:stylevar postbit_userinfo_background};
_background-image: none;
}
.postbitlegacy .posthead .time {
font: {vb:stylevar postbithead_font};
color: {vb:stylevar postbithead_color};
}
.postbit .posthead .nodecontrols, .postbitlegacy .posthead .nodecontrols, .eventbit .eventhead .nodecontrols {
position: absolute;
color: {vb:stylevar postbithead_color};
{vb:stylevar right}: 0;
top: 0;
width: 50% ;
padding: 4px {vb:stylevar padding} 0;
text-align: {vb:stylevar right};
font: {vb:stylevar postbithead_font};
vertical-align: middle;
}
.postbit .posthead .nodecontrols a, .postbitlegacy .posthead .nodecontrols a, .eventbit .eventhead .nodecontrols a {
color: {vb:stylevar postbithead_color};
top: -2px;
position:relative;
}
.postbitlegacy .posthead .nodecontrols img, .eventbit .eventhead .nodecontrols img {
position: relative;
top: 2px;
padding: 0;
}
.postbitlegacy .posthead .nodecontrols .postimod, .eventbit .eventhead .nodecontrols .postimod {
top: 0px;
position:relative;
margin-{vb:stylevar left}: 5px;
}
.postbitlegacy .postbody, .eventbit .eventdetails .eventbody {
margin-{vb:stylevar left}: {vb:stylevar postbitlegacy_userinfo_width};
border-{vb:stylevar left}: {vb:stylevar postbit_userinfo_border};
background: {vb:stylevar postbit_background};
_background-image: none;
padding-bottom: 1em;
}
.postbitlegacy .postrow, .eventbit .eventrow, .postbitdeleted .postrow, .postbitignored .postrow {
padding: {vb:math {vb:stylevar padding}/2} {vb:stylevar padding} {vb:stylevar padding};
font: {vb:stylevar forum_msg_font};
color: {vb:stylevar postbit_color};
}
.postbitlegacy .userinfo {
float:{vb:stylevar left};
position: relative;
width:{vb:math {vb:stylevar postbitlegacy_userinfo_width}-{vb:math {vb:stylevar padding}*2}};
padding: 2px {vb:stylevar padding} {vb:math {vb:stylevar padding}/2};
font-size: {vb:stylevar small_fontSize};
display:block;
background: {vb:stylevar postbit_userinfo_background};
clear:both;
}
.postbitlegacy .userinfo .rank, .postbitlegacy .userinfo .usertitle {
font-size: {vb:stylevar small_fontSize};
display:block;
clear:both;
}
.postbitlegacy .userinfo .username_container {
margin-bottom: 8px;
}
.postbitlegacy .userinfo .username_container .memberaction {
display: inline;
}
.postbitlegacy .userinfo .postuseravatar, .eventbit .userinfo .eventuseravatar {
display:block;
margin:{vb:math {vb:stylevar padding}/3} auto 0;
text-align:{vb:stylevar left};
width: auto;
float: {vb:stylevar left};
clear: both;
}
.postbitlegacy .userinfo .postuseravatar img, .eventbit .userinfo .eventuseravatar img {
border: {vb:stylevar postbitlegacy_avatar_border};
outline: {vb:stylevar postbitlegacy_avatar_outline};
max-width: {vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2}- {vb:math {vb:stylevar postbitlegacy_avatar_outline.borderWidth}*2} - {vb:math {vb:stylevar postbitlegacy_avatar_border.borderWidth}*2}};
}
.postbitlegacy .userinfo a.username, .eventbit .userinfo a.username {
clear:{vb:stylevar right};
font-size:{vb:stylevar font.fontSize}{vb:stylevar font.units};
font-weight:bold;
width: auto;
max-width:{vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2} - 20px};
word-wrap:break-word;
}
.postbitlegacy .userinfo .guest.username, .eventbit .userinfo .guest.username {
padding-top: {vb:math {vb:stylevar padding}/2};
display:block;
font-size: {vb:stylevar font.fontSize}{vb:stylevar font.units};
}
.postbitlegacy dl.userinfo_extra, .postbitlegacy dl.user_rep {
margin: {vb:math {vb:stylevar padding}/2} 0;
display:block;
float: {vb:stylevar left};
width: {vb:math {vb:stylevar postbitlegacy_userinfo_width}-{vb:math {vb:stylevar padding}*2}};
}
.postbitlegacy dl.userinfo_extra dt, .postbitlegacy dl.user_rep dt {
float: {vb:stylevar left};
text-align: {vb:stylevar left};
/*color: {vb:stylevar shade_color};*/
margin-{vb:stylevar right}: {vb:stylevar padding};
margin-{vb:stylevar left}: 0;
min-width:60px;
width:auto !important;
width:60px;
}
.postbitlegacy dl.userinfo_extra dt:after, .postbitlegacy dl.user_rep dt:after {
content: ":";
}
.postbitlegacy dl.user_rep dt.blank:after {
content: none;
}
.postbitlegacy dl.userinfo_extra dd, .postbitlegacy dl.userinfo_extra dd a, .postbitlegacy dl.user_rep dd {
padding-bottom: 3px;
}
.postbitlegacy dl.user_rep img {
margin-top: {vb:stylevar padding};
}
.postbitlegacy .imlinks {
width: 100%;
float: {vb:stylevar left};
}
.postbitlegacy .imlinks img {
display:inline;
}
.postbitlegacy .title, .eventbit .title {
display:block;
padding: {vb:stylevar padding};
padding-{vb:stylevar left}: 0;
font: {vb:stylevar post_title_font};
}
.postbit .postfoot, .postbitlegacy .postfoot, .eventbit .eventfoot {
display:block;
position: relative;
{vb:stylevar right}: 0;
float: {vb:stylevar left};
clear:both;
/*vertical-align: bottom;*/
background: transparent;
/*height: {vb:math 16px + {vb:math 5px * 2}};*/
font: {vb:stylevar postbit_control_font};
width: 100%;
}
.postbitlegacy .postrow.has_after_content {
padding-bottom: 4em;
}
.postbitlegacy .after_content {
position: relative;
width: 100%;
clear:both;
}
.postbitlegacy .signature, .postbitlegacy .lastedited {
margin-top: 1em;
padding: 1em {vb:stylevar padding} 0;
}
.postbit .postfoot .textcontrols, .postbitlegacy .postfoot .textcontrols, .eventbit .eventfoot .eventcontrols {
padding: 6px 0 4px;
display:block;
background: {vb:stylevar postbit_foot_background};
_background-image: none;
font: {vb:stylevar postbit_control_font};
width: 100%;
margin-{vb:stylevar right}: 10px;
}
.postbitlegacy .postfoot .postcontrols, .postbit .postfoot .postcontrols {
float:{vb:stylevar right};
padding-{vb:stylevar right}:{vb:stylevar padding};
text-align:{vb:stylevar right};
width:50%;
}
.postbitlegacy .postfoot .postlinking, .postbit .postfoot .postlinking {
padding-{vb:stylevar left}:{vb:stylevar padding};
}
.postbitlegacy .postfoot .textcontrols img.inline, .postbit .postfoot .textcontrols img.inline {
position: absolute;
top: 2px;
{vb:stylevar left}: -1px;
margin-{vb:stylevar right}: 1px;
}
.postbitlegacy .postfoot .textcontrols span.seperator, .postbit .postfoot .textcontrols span.seperator {
border-right:{vb:stylevar postfoot_separator_width} solid {vb:stylevar postfoot_separator_color};
display: inline;
width: {vb:stylevar postfoot_separator_width};
margin: 0 5px;
}
.postbitlegacy .postfoot .textcontrols a, .postbit .postfoot .textcontrols a, .eventbit .eventfoot .eventcontrols a {
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;
padding: 0;
padding-{vb:stylevar left}: {vb:math 3px+20px};
border: {vb:stylevar postbit_control_border};
background: {vb:stylevar postbit_control_background};
_background-image: none;
color: {vb:stylevar postbit_control_color};
font: {vb:stylevar postbit_control_font};
display:inline-block;
/* margin needs to be left invariant of the text direction (LTR-RTL) */
margin-left: 5px;
}
/* Text button hover images */
.postbitlegacy .postfoot .textcontrols img.spam, .postbit .postfoot .textcontrols img.spam {
padding-top: 2px;
}
.postbitlegacy .postfoot .textcontrols img.moderated, .postbit .postfoot .textcontrols img.moderated, .postbitlegacy .postfoot .textcontrols img.spam, .postbit .postfoot .textcontrols img.spam, .postbitlegacy .postfoot .textcontrols img.deleted_nolink, .postbit .postfoot .textcontrols img.deleted_nolink {
padding-top: 2px;
}
.postbitlegacy .postfoot .textcontrols a.editpost, .postbit .postfoot .textcontrols a.editpost, .eventbit .eventfoot .textcontrols a.editevent {
background: url({vb:stylevar imgdir_button}/edit_40b.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left} ;
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .postfoot .textcontrols a.editpost:hover, .postbit .postfoot .textcontrols a.editpost:hover, .eventbit .eventfoot .textcontrols a.editevent:hover {
background: url({vb:stylevar imgdir_button}/edit_40b-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_hover_border};
}
.postbitlegacy .postfoot .textcontrols a.quickreply, .postbit .postfoot .textcontrols a.quickreply, .postbitlegacy .postfoot .textcontrols a.forwardpost, .postbit .postfoot .textcontrols a.forwardpost {
background: url({vb:stylevar imgdir_button}/reply_40b.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .postfoot .textcontrols a.quickreply:hover, .postbit .postfoot .textcontrols a.quickreply:hover, .postbitlegacy .postfoot .textcontrols a.forwardpost:hover, .postbit .postfoot .textcontrols a.forwardpost:hover {
background: url({vb:stylevar imgdir_button}/reply_40b-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_hover_border};
}
.postbitlegacy .postfoot .textcontrols a.newreply, .postbit .postfoot .textcontrols a.newreply {
background: url({vb:stylevar imgdir_button}/quote_40b.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .postfoot .textcontrols a.newreply:hover, .postbit .postfoot .textcontrols a.newreply:hover {
background: url({vb:stylevar imgdir_button}/quote_40b-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_hover_border};
}
.postbitlegacy .postfoot .textcontrols a.multiquote, .postbit .postfoot .textcontrols a.multiquote {
background: url({vb:stylevar imgdir_button}/multiquote-back_40b.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
padding-bottom:1px;
border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .postfoot .textcontrols a.multiquote:hover, .postbit .postfoot .textcontrols a.multiquote:hover {
background: url({vb:stylevar imgdir_button}/multiquote_40b-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};
}
.postbitlegacy .postfoot .textcontrols a.promotecms, .postbit .postfoot .textcontrols a.promotecms {
background: url({vb:stylevar imgdir_cms}/promote_small.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .postfoot .textcontrols a.promotecms:hover, .postbit .postfoot .textcontrols a.promotecms:hover {
background: url({vb:stylevar imgdir_cms}/promote_small-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_hover_border};
}
.postbitlegacy .postfoot .textcontrols a.infraction, .postbit .postfoot .textcontrols a.infraction {
background: url({vb:stylevar imgdir_button}/add-infraction_sm.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .postfoot .textcontrols a.infraction:hover, .postbit .postfoot .textcontrols a.infraction:hover {
background: url({vb:stylevar imgdir_button}/add-infraction_sm-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_hover_border};
}
.postbitlegacy .postfoot .textcontrols a.report, .postbit .postfoot .textcontrols a.report {
background: url({vb:stylevar imgdir_button}/report-40b.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .postfoot .textcontrols a.report:hover, .postbit .postfoot .textcontrols a.report:hover {
background: url({vb:stylevar imgdir_button}/report-40b-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_hover_border};
}
.postbitlegacy .postfoot .textcontrols a.blog, .postbit .postfoot .textcontrols a.blog {
background: url({vb:stylevar imgdir_misc}/blog/blogpost_40b.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .postfoot .textcontrols a.blog:hover, .postbit .postfoot .textcontrols a.blog:hover {
background: url({vb:stylevar imgdir_misc}/blog/blogpost_40b-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left} ;
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_hover_border};
}
.postbitlegacy .postfoot .textcontrols a.reputation, .postbit .postfoot .textcontrols a.reputation {
background: url({vb:stylevar imgdir_button}/reputation-40b.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .postfoot .textcontrols a.reputation:hover, .postbit .postfoot .textcontrols a.reputation:hover {
background: url({vb:stylevar imgdir_button}/reputation-40b-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_hover_border};
}
.postbitlegacy .postfoot .textcontrols a.ip, .postbit .postfoot .textcontrols a.ip {
background: url({vb:stylevar imgdir_button}/ip-40b.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .postfoot .textcontrols a.ip:hover, .postbit .postfoot .textcontrols a.ip:hover {
background: url({vb:stylevar imgdir_button}/ip-40b-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_hover_border};
}
.postbitlegacy .postfoot .textcontrols a.redcard, .postbit .postfoot .textcontrols a.redcard {
background: url({vb:stylevar imgdir_button}/red-card_sm.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .postfoot .textcontrols a.redcard:hover, .postbit .postfoot .textcontrols a.redcard:hover {
background: url({vb:stylevar imgdir_button}/red-card_sm-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_hover_border};
}
.postbitlegacy .postfoot .textcontrols a.yellowcard, .postbit .postfoot .textcontrols a.yellowcard {
background: url({vb:stylevar imgdir_button}/yellow-card_sm.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .postfoot .textcontrols a.yellowcard:hover, .postbit .postfoot .textcontrols a.yellowcard:hover {
background: url({vb:stylevar imgdir_button}/yellow-card_sm-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_hover_border};
}
.postbitlegacy .postfoot .textcontrols a.deleted, .postbit .postfoot .textcontrols a.deleted {
background: url({vb:stylevar imgdir_button}/deleted_sm.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .postfoot .textcontrols a.deleted:hover, .postbit .postfoot .textcontrols a.deleted:hover {
background: url({vb:stylevar imgdir_button}/deleted_sm-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};
padding: {vb:stylevar postbit_control_padding};
padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
border: {vb:stylevar postbit_control_hover_border};
}
.postbitlegacy .postfoot .textcontrols a:hover, .postbit .postfoot .textcontrols a:hover {
color: {vb:stylevar postbit_control_hover_color};
background: {vb:stylevar postbit_control_hover_background};
_background-image: none;
}
.postbitlegacy .postfoot .textcontrols a.highlight, .postbit .postfoot .textcontrols a.highlight {
background-color: {vb:stylevar postbit_control_hover_background.backgroundColor};
}
.postbitlegacy .postfoot .textcontrols a img, .postbit .postfoot .textcontrols a img {
position: absolute;
top: {vb:math {vb:stylevar padding}/5};
{vb:stylevar left}: {vb:math {vb:stylevar padding}/5+1};
}
.postbitlegacy .postfoot .textcontrols a:hover img, .postbit .postfoot .textcontrols a:hover img {
top: {vb:math {vb:stylevar padding}/5};
}
/*post bit deleted*/
.postbitdeleted, .postbitignored {
margin-bottom: {vb:stylevar padding};
display:block;
width: 100%;
clear:both;
position: relative;
color: {vb:stylevar body_color};
border: {vb:stylevar postbit_border};
float: {vb:stylevar left};
background: {vb:stylevar postbit_deleted_background};
_background-image: none;
}
.postbitdeleted hr, .postbitignored hr {
display: none;
}
.postbitdeleted .posthead, .postbitignored .posthead {
display:table;
background: {vb:stylevar postbithead_background};
_background-image: none;
border: {vb:stylevar postbithead_border};
height: {vb:math {vb:stylevar padding}+6};
padding: {vb:math {vb:stylevar padding}/5+2} 0;
color: {vb:stylevar postbithead_color};
width: 100%;
margin: -{vb:stylevar postbithead_border.borderWidth}{vb:stylevar postbithead_border.units} -{vb:stylevar postbithead_border.borderWidth}{vb:stylevar postbithead_border.units} 0;
font: {vb:stylevar postbithead_font};
}
.postbitdeleted .posthead .date, .postbitignored .posthead .date {
display:inline-block;
padding-{vb:stylevar left}: {vb:math {vb:stylevar padding}+4};
margin-{vb:stylevar left}: {vb:stylevar padding};
color: {vb:stylevar postbithead_color};
background:transparent url({vb:stylevar imgdir_statusicon}/post_old.png) no-repeat center {vb:stylevar left};
font: {vb:stylevar postbithead_font};
}
.postbitdeleted .posthead .date .time, .postbitignored .date .time {
color: {vb:stylevar postbithead_color};
margin-{vb:stylevar left}: {vb:stylevar padding};
font: {vb:stylevar postbithead_font};
}
.postbitdeleted .posthead .postimod, .postbitignored .posthead .postimod {
position: absolute;
{vb:stylevar right}: {vb:stylevar padding};
top: {vb:math {vb:stylevar padding}/2};
}
.postbitdeleted .postbody, .postbitignored .postbody {
padding: 0;
}
.postbitdeleted .postrow, .postbitignored .postrow {
padding: {vb:stylevar padding};
}
.postbitdeleted .userinfo .memberaction, .postbitignored .userinfo .memberaction {
display: block;
}
.postbitdeleted .userinfo, .postbitignored .userinfo {
display:block;
background: transparent;
position: relative;
clear: both;
padding: {vb:math {vb:stylevar padding}/2} {vb:stylevar padding};
border-bottom: {vb:stylevar postbit_border};
word-wrap: break-word;
}
.postbitdeleted .userinfo .username, .postbitignored .userinfo .username {
display:block;
float: {vb:stylevar left};
clear: {vb:stylevar right};
font-size: {vb:stylevar font.fontSize}{vb:stylevar font.units};
/*font-weight:bold;*/
}
.postbitdeleted .userinfo .moreinfo, .postbitignored .userinfo .moreinfo {
float: {vb:stylevar left};
display:block;
position: relative;
top: -5px;
}
.postbitdeleted .userinfo .usertitle, .postbitignored .userinfo .usertitle {
clear:both;
display:block
width: 100%;
}
.postbitdeleted .userinfo .popupmenu a.popupctrl:hover, .postbitignored .userinfo .popupmenu a.popupctrl:hover {
color: {vb:stylevar link_color};
text-decoration: {vb:stylevar linkhover_textDecoration};
}
.postbitdeleted .title, .postbitignored .title {
font: {vb:stylevar post_title_font};
}
.postbitdeleted .nodecontrols, .postbitignored .nodecontrols {
padding: 4px 0;
padding-{vb:stylevar right}: {vb:stylevar padding};
text-align: {vb:stylevar right};
background: {vb:stylevar postbit_foot_background};
_background-image: none;
font: {vb:stylevar postbit_control_font};
height: 16px;
}
.postbitdeleted .nodecontrols .textcontrol, .postbitignored .nodecontrols .textcontrol {
background: {vb:stylevar postbit_control_background};
_background-image: none;
border: {vb:stylevar postbit_control_border};
font: {vb:stylevar postbit_control_font};
}
.postbitdeleted .nodecontrols a.textcontrol:hover, .postbitignored .nodecontrols a.textcontrol:hover {
background: {vb:stylevar postbit_control_hover_background};
_background-image: none;
border: {vb:stylevar postbit_control_border};
}
.userinfo .popupmenu:hover a.popupctrl {
background-color:transparent;
}
.userinfo .popupgroup .popupmenu:hover a.popupctrl.active,
.userinfo .popupmenu a.popupctrl.active {
background-color:transparent;
color:inherit;
}
.postbit .userinfo .popupmenu .popupctrl {
color:auto;
}
.postbit.imod_highlight .userinfo_noavatar,
.postbit.imod_highlight .userinfo,
.postbit.imod_highlight .postbody,
.postbitlegacy.imod_highlight .postdetails,
.postbitlegacy.imod_highlight .userinfo,
.postbitlegacy.imod_highlight .postbody,
.postbitdeleted.imod_highlight,
.postbitignored.imod_highlight {
background:{vb:stylevar imodhilite_backgroundColor};
color: {vb:stylevar body_color};
}
/* start styles for postbit_legacy */
.userinfo .popupmenu:hover a.popupctrl {
background-color:transparent;
}
.userinfo .popupgroup .popupmenu:hover a.popupctrl.active,
.userinfo .popupmenu a.popupctrl.active {
background-color:transparent;
color:inherit;
}
.postbitlegacy .userinfo .popupmenu .popupctrl {
color:auto;
}
/* end styles for postbit_legacy */
img.onlinestatus_noavatar {
position: relative;
top: 5px;
{vb:stylevar left}: -56px;
}
img.onlinestatus {
position: relative;
top: 5px;
{vb:stylevar left}: -4px;
}
/* last edited */
.postbody fieldset {
background: {vb:stylevar postbit_boxed_background};
_background-image: none;
-moz-border-radius: {vb:stylevar border_radius};
-webkit-border-radius: {vb:stylevar border_radius};
border-radius: {vb:stylevar border_radius};
padding: {vb:stylevar postbit_boxed_padding};
font-size: {vb:stylevar postbit_boxed_fontSize};
}
.postbody img.inlineimg {
position: relative;
top: 2px;
}
.postbody .lastedited .reason {
font-weight: bold;
}
.postbitlegacy .userinfo .userinfo_extra {
width:{vb:math {vb:stylevar postbitlegacy_userinfo_width}-{vb:math {vb:stylevar padding}*2}};
float: {vb:stylevar left};
font-size: {vb:stylevar small_fontSize};
}
.hasad {
display:block;
margin-{vb:stylevar right}: {vb:stylevar ad_post_maxWidth};
}
Còn đây là postbit_userlevel của emCode:<!-- Thanhk mới -->
<vb:if condition="$post['userid']">
<div class="bppostbit"><dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd></div>
<div class="bppostbit"><vb:if condition="$post['post_thanks_thanked_times'] == 1">{vb:rawphrase post_thanks_time_post}
<vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
<vb:else />
{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}
</vb:if>
</div>
</vb:if>
<!-- Thanhk mới -->
Em chỉ đóng khung trong 3 cái đó thui. Anh xem giúp em với.Code:<div class="bppostbit">
<div align="left" class="userlevelContainer">
<div class="smallfont">{vb:rawphrase userlevel_level}: {vb:raw showlevel} <vb:if condition="$show['hl']">[<a href="faq.php?{vb:raw session.sessionurl}faq=vb3_user_profile#faq_vb3_user_level">?</a>]</vb:if><br />
{vb:rawphrase userlevel_experience}: {vb:raw exp}<br />
{vb:rawphrase userlevel_nextlevel}: {vb:raw nextexp}</div>
<div class="alt2" style="text-align:left; width:102px; background-color: #fff; border:1px; height:11px; border-style:solid;" title="{vb:rawphrase userlevel_needexp, {vb:raw nextexp}}">
<div style="width:{vb:raw ewidth}; height:9px; margin:1px; background-image: url({vb:stylevar imgdir_misc}/userlevel.gif); background-repeat:repeat-x;"></div>
</div>
</div></div>
Phần đóng khung level em thay thế toàn bộ code sau :
Trong file CSS em vừa gửi anh không tìm thấy lớp bppostbit ở đâu cả . Em đưa file CSS nhầm rồi .Trích:
<vb:if condition="$post['userid']">
<div class="bppostbit"><dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd></div>
<div class="bppostbit"><vb:if condition="$post['post_thanks_thanked_times'] == 1">
<dd float: {vb:stylevar left};">{vb:rawphrase post_thanks_time_post}</dd>
<vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
<dd float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
<vb:else />
<dd float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
</vb:if></div>
</vb:if>
Mình muốn nền màu đen, và chữ đằng trước màu vàng (ví dụ: Tham gia ngày, bài gửi)
http://cB7.upanh.com/22.579.29584216.YQ20/untitled.png
Code:{vb:raw template_hook.postbit_start}
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
<!-- see bottom of postbit.css for .userinfo .popupmenu styles -->
<div class="posthead">
<vb:if condition="$show['inlinemod']"><label for="post_imod_checkbox_{vb:raw post.postid}"></vb:if>
<span class="postdate {vb:raw post.statusicon}">
<vb:if condition="$show['announcement']">
<span class="date">{vb:rawphrase x_until_y, {vb:raw post.startdate}, {vb:raw post.enddate}}</span>
<vb:else />
<span class="date">{vb:raw post.postdate}<vb:if condition="!$show['detailedtime']"> <span class="time">{vb:raw post.posttime}</span></vb:if></span>
</vb:if>
</span>
<span class="nodecontrols">
<vb:if condition="$post['postid'] AND $post['threadid'] AND !$show['moderated']">
<a name="post{vb:raw post.postid}" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}" class="<vb:if condition="$show['inlinemod']">ie</vb:if>postcounter">#{vb:raw post.postcount}</a><a id="postcount{vb:raw post.postid}" name="{vb:raw post.postcount}"></a>
</vb:if>
<vb:if condition="$show['moderated']">{vb:rawphrase moderated_post}</vb:if>
<vb:if condition="$show['inlinemod']">
<input class="postimod" type="checkbox" id="post_imod_checkbox_{vb:raw post.postid}" name="plist[{vb:raw post.postid}]" value="{vb:raw post.checkbox_value}" />
</vb:if>
</span>
<vb:if condition="$show['inlinemod']"></label></vb:if>
</div>
<div class="postdetails">
<div class="userinfo">
<div class="username_container">
<vb:if condition="$post['userid']">
{vb:raw memberaction_dropdown} {vb:raw post.onlinestatus}
<vb:else />
<span class="username guest">{vb:raw post.musername}</span> {vb:raw post.onlinestatus}
</vb:if>
</div>
<span class="usertitle">
{vb:raw post.usertitle}
</span>
<vb:if condition="$post['rank']">
<span class="rank">{vb:raw post.rank}</span>
</vb:if>
{vb:raw template_hook.postbit_userinfo_left}
<vb:if condition="$show['reputation']">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
</vb:if>
<!-- Đóng khung avatar --><center>
<vb:if condition="$show['avatar']">
<table id="Table_01" width="100" height="100" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="images/avatar/ava_01.png" width="34" height="34" alt=""></td>
<td background="images/avatar/ava_02.png">
</td>
<td>
<img src="images/avatar/ava_03.png" width="34" height="34" alt=""></td>
</tr>
<tr>
<td background="images/avatar/ava_04.png">
</td>
<td background="images/avatar/ava_05.png">
<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</td>
<td background="images/avatar/ava_06.png">
</td>
</tr>
<tr>
<td>
<img src="images/avatar/ava_07.png" width="34" height="34" alt=""></td>
<td background="images/avatar/ava_08.png">
</td>
<td>
<img src="images/avatar/ava_09.png" width="34" height="34" alt=""></td>
</tr>
</table>
</vb:if> </center>
<!-- / Kết thúc đóng khung avatar -->
<vb:if condition="$post['userid']">
<hr />
<dl class="userinfo_extra">
<vb:if condition="$post['joindate']"><div class="post_field"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></div></vb:if>
<vb:if condition="$post['field2']"><div class="post_field"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></div></vb:if>
<vb:if condition="$post['age']"><div class="post_field"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></div></vb:if>
<div class="post_field"><dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd></div>
{vb:raw template_hook.postbit_userinfo_right_after_posts}
</dl>
<vb:if condition="$show['infraction'] OR $show['reppower']">
<dl class="user_rep">
<vb:if condition="$show['infraction']">
<dt>{vb:rawphrase infractions}</dt>
<dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd>
</vb:if>
<vb:if condition="$show['reputation']">
<vb:if condition="$show['reppower']">
<dt>{vb:rawphrase reppower}</dt>
<dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd>
</vb:if>
</vb:if>
</dl>
</vb:if>
{vb:raw template_hook.postbit_userinfo_right}
<div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
</vb:if>
</div>
<div class="postbody">
<div class="postrow<vb:if condition="$show['postedited'] || $post['signature']"> has_after_content</vb:if>">
{vb:raw template_hook.postbit_messagearea_start}
<vb:if condition="$post['title'] OR $show['messageicon']">
<h2 class="title icon">
<vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /> </vb:if>{vb:raw post.title}
</h2>
</vb:if>
<vb:if condition="$post['isfirstshown']">
{vb:raw ad_location.ad_showthread_firstpost_start}
{vb:raw ad_location.thread_first_post_content}
</vb:if>
<vb:if condition="$post['islastshown']">
{vb:raw ad_location.thread_last_post_content}
</vb:if>
<div class="content<vb:if condition="$show['first_ad'] OR $show['last_ad']"> hasad</vb:if>">
<div id="post_message_{vb:raw post.postid}">
<blockquote class="postcontent restore ">
{vb:raw post.message}
</blockquote>
</div>
<vb:if condition="$show['attachments']">
<div class="attachments">
<vb:if condition="$show['thumbnailattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_thumbnails}" /> {vb:rawphrase attached_thumbnails}</legend>
{vb:raw post.thumbnailattachments}
</fieldset>
</vb:if>
<vb:if condition="$show['imageattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_images}</legend>
{vb:raw post.imageattachments}
</fieldset>
</vb:if>
<vb:if condition="$show['imageattachmentlink']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_images}</legend>
<ul>
{vb:raw post.imageattachmentlinks}
</ul>
</fieldset>
</vb:if>
<vb:if condition="$show['otherattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_files}</legend>
<ul>
{vb:raw post.otherattachments}
</ul>
</fieldset>
</vb:if>
<vb:if condition="$show['moderatedattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attachments_pending_approval}</legend>
<ul>
{vb:raw post.moderatedattachments}
</ul>
</fieldset>
</vb:if>
</div>
<!-- / attachments -->
</vb:if>
</div>
</div>
<vb:if condition="$show['postedited'] || $post['signature']">
<div class="after_content">
<vb:if condition="$show['postedited']">
<!-- edit note -->
<blockquote class="postcontent lastedited">
<!-- <img src="{vb:stylevar imgdir_button}/edit_40b.png" class="inlineimg" alt="" /> -->
<vb:if condition="$show['postedithistory']">
{vb:rawphrase last_edited_link_by_x_on_y_at_z_postid, {vb:raw post.edit_username}, {vb:raw post.edit_date},
{vb:raw post.edit_time}, {vb:raw post.historyurl}}
<vb:else />
{vb:rawphrase last_edited_by_x_on_y_at_z, {vb:raw post.edit_username}, {vb:raw post.edit_date}, {vb:raw post.edit_time}}
</vb:if>
<vb:if condition="$post['edit_reason']">
<span class="reason">{vb:rawphrase reason}:</span> {vb:raw post.edit_reason}
</vb:if>
</blockquote>
<!-- / edit note -->
</vb:if>
{vb:raw template_hook.postbit_signature_start}
{vb:raw ad_location.ad_showthread_firstpost_sig}
<vb:if condition="$post['signature']">
<blockquote class="signature restore"><div class="signaturecontainer">{vb:raw post.signature}</div></blockquote>
</vb:if>
{vb:raw template_hook.postbit_signature_end}
</div>
</vb:if>
<div class="cleardiv"></div>
</div>
</div>
<div class="postfoot">
<!-- <div class="postfoot_container"> -->
<div class="textcontrols floatcontainer">
<span class="postcontrols">
<img style="display:none" id="progress_{vb:raw post.postid}" src="{vb:stylevar imgdir_misc}/progress.gif" alt="{vb:rawphrase loading_editor_please_wait}" />
<vb:if condition="$post['editlink']">
<a class="editpost" href="{vb:raw post.editlink}" name="vB::QuickEdit::{vb:raw post.postid}"><img src="{vb:raw vboptions.cleargifurl}" id="editimg_{vb:raw post.postid}" alt="{vb:rawphrase edit_delete_message}" /> {vb:rawphrase edit_post}</a>
<span class="seperator"> </span>
</vb:if>
<vb:if condition="$show['quickreply'] AND !$show['threadedmode']">
<a id="qr_{vb:raw post.postid}" class='quickreply' href="{vb:raw post.replylink}" rel="nofollow"><img id="replyimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase quick_reply_to_this_message}" /> {vb:rawphrase reply}</a>
<span class="seperator"> </span>
</vb:if>
<vb:if condition="$post['replylink']">
<a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow"><img id="quoteimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" /> <vb:if condition="$post['forwardlink']">{vb:rawphrase reply_to_private_message}<vb:else />{vb:rawphrase reply_with_quote}</vb:if></a>
<vb:if condition="$show['multiquote_post']"><span class="seperator"> </span></vb:if>
</vb:if>
<vb:if condition="$show['multiquote_post']">
<a class="multiquote" href="{vb:raw post.replylink}" rel="nofollow" onclick="return false;" id="mq_{vb:raw post.postid}"><img id="mq_image_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase multi_quote_this_message}" /> </a>
</vb:if>
</span>
<span class="postlinking">
<vb:if condition="!$post['forwardlink'] && THIS_SCRIPT != 'usernote' && THIS_SCRIPT != 'announcement'">
<vb:if condition="$promote_sectionid AND $promote_sectionid != -1">
<a href="{vb:raw promote_url}" class="promotecms">{vb:rawphrase promote_to_article}</a>
<span class="seperator"> </span>
</vb:if>
</vb:if>
{vb:raw template_hook.postbit_controls}
{vb:raw post.iplogged}
<vb:if condition="$post['forwardlink']">
<a class="forwardpost" href="{vb:raw post.forwardlink}" rel="nofollow"><img src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase forward_message}" /> {vb:rawphrase forward}</a>
<vb:if condition="$show['reputationlink'] OR $show['infractionlink'] OR $show['moderated'] OR $show['spam'] OR $show['deletedpost'] OR $show['redcard'] OR $show['yellowcard']"><span class="seperator"> </span></vb:if>
</vb:if>
<vb:if condition="$show['reputationlink']">
<span class="reputationpopupmenu popupmenu popupcustom" title="{vb:raw post.postid}"><a class="popupctrl reputation" title="{vb:rawphrase reputation}" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&p={vb:raw post.postid}" rel="nofollow" id="reputation_{vb:raw post.postid}"><!--<img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase reputation}" /> --> </a></span>
</vb:if>
<vb:if condition="$show['infractionlink']">
<a class="infraction" href="infraction.php?{vb:raw session.sessionurl}do=report&p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase add_infraction_for_x, {vb:raw post.username}}"><!-- <img src="{vb:stylevar imgdir_button}/add-infraction_sm.png" alt="{vb:rawphrase add_infraction_for_x, {vb:raw post.username}}" /> --> </a>
</vb:if>
<vb:if condition="$show['reportlink']">
<a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> --> </a>
</vb:if>
<vb:if condition="$show['moderated']">
<img class="moderated" src="{vb:stylevar imgdir_misc}/moderated_sm.png" alt="{vb:rawphrase moderated_post}" />
</vb:if>
<vb:if condition="$show['spam']">
<img class="spam" src="{vb:stylevar imgdir_misc}/spam_detected.png" alt="{vb:rawphrase spam_post}" />
</vb:if>
<vb:if condition="$show['deletedpost']">
<vb:if condition="$show['managepost']">
<a class="deleted" href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=managepost&p={vb:raw post.postid}" title="{vb:rawphrase manage}"> </a>
<vb:else />
<img class="deleted_nolink" class="inlineimage" src="{vb:stylevar imgdir_button}/deleted_sm.png" alt="{vb:rawphrase deleted_post}" />
</vb:if>
</vb:if>
<vb:if condition="$show['redcard']">
<a class="redcard" href="infraction.php?{vb:raw session.sessionurl}do=view&p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase received_infraction}"><!-- <img src="{vb:stylevar imgdir_button}/red-card_sm.png" alt="{vb:rawphrase received_infraction}" /> --> </a>
<vb:elseif condition="$show['yellowcard']" />
<a class="yellowcard" href="infraction.php?{vb:raw session.sessionurl}do=view&p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase received_warning}"><!--<img src="{vb:stylevar imgdir_button}/yellow-card_sm.png" alt="{vb:rawphrase received_warning}" /> --> </a>
</vb:if>
</span>
<!-- </div> -->
</div>
</div>
<hr />
</li>
{vb:raw template_hook.postbit_end}
Em dùng style có sẵn, người thiết kế để ở đâu em cũng hem biết nữa. Cái level anh đưa em copy vào mà nó không xuất hiện luôn.
Cho em xin cái nick chat, nếu a rảnh thì e đưa a cái admin a vào xem giúp em nhé. Hoặc anh cho em xin cái profile bên ITVNN cũng được, nhìn rất pro. Nhưng cực chẳng đã thui, em mún tự code lại cho có kinh nghiệm. Cảm ơn anh đã giúp.
Đã đóng khung thì phải đóng khung đồng bộ, với style premium thì nó luôn cung cấp sẵn css đóng khung, chỉ việc xem nó là gì. Cách phát hiện đơn giản nhất là :
Code:<dl class="userinfo_extra">
<vb:if condition="$post['joindate']"><div class="post_field"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></div></vb:if>
<vb:if condition="$post['field2']"><div class="post_field"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></div></vb:if>
<vb:if condition="$post['age']"><div class="post_field"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></div></vb:if>
<div class="post_field"><dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd></div>
{vb:raw template_hook.postbit_userinfo_right_after_posts}
</dl>
Anh Admin ơi vậy còn làm Rank chữ giống như này thì sao ???
http://farm3.anhso.net/upload/201105...9_untitled.jpg
anh ơi! Em muốn cho mod user level xuống dưới mod thank trong khung thông tin chi tiết thỳ chỉnh chỗ nào ạ? Mong anh giúp đỡ!:D
Vào AdminCP >> User Ranks >> Add New User Rank >> Như hướng dẫn ở bài trên , thay vì điền link ảnh ở phần User Rank File Path , em điền code HTML ở phần OR you may enter text . Tương tự với nhóm khác nhé .
@Mr.zero158 : Cái này anh không biết , vì anh chưa làm bao giờ . Đang chờ tìm ai có cách làm để bổ sung kiên thức .
tình hình anh Trung giúp em fix lại vị trí của mod tks với
http://yenmob.org/diendan/adv/ex.JPG
anh em qua ảnh
giờ em muốn đẩy mod thanks xuống dưới mod lv&class thì làm ntn
em cảm ơn
làm sao để đong khung thông tin nằm ngang của vbb 4
Mình muốn phần level và thanks giống như phần bài gữi và ngày tham gia thì làm cách nào vậy bạn?
Lí do : hai mods này dùng chung một template_hook của vBulletin, vì thế, cái nào được cài trước sẽ hiện trước (tức là nằm trên), cái nào cài sau thì hiện sau (tức là nằm dưới).
Cách khắc phục :
- Quan trọng nhất : backup data của table "post_thanks", điều này sẽ giúp giữ lại dữ liệu thanks từ trước tới giờ của anh.
- Quan trọng nhì : backup dữ liệu đã thực hiện (edit template), anh vào Styles & Templates -> Download / Upload Styles, tại khung Download, mục Product, anh chọn [AJAX] Post Thank You Hack và download về file vbulletin-style.xml, lưu trữ nó lại ở đâu đấy.
- Thứ ba, anh xoá mods [AJAX] Post Thank You Hack, vào Plugins & Products -> Manage Product -> tại vị trí của mods, anh chọn Uninstall.
- Thứ tư, sau khi đã xoá mods, giờ anh cài đặt lại, chỉ cần import lại file xml của mods, tiếp đến là import lại file vbulletin-style.xml cũng tại mục lấy nó nhưng ở khung thứ 2 và nhớ Merge Into Style vào style anh đã lấy nó ra. Cuối cùng, nhập lại dữ liệu thanks đã backup, cũng giống như việc anh restore data lại.
Đóng khung nằm ngang thì sử dụng template postbit nhé anh.
Cho mình hỏi trước khi mình thêm vào các thông tin của thành viên thì nó vẫn còn cái RANK phân loại
Code trước khi thêm trường thông tin
nhưng khi thêm trường thông tin cho thành viên thì nó mất đi cái RANK của mình, giờ mình thêm code ra sao để nó hiện lại cái RANKPHP Code:
<dl class="userinfo_extra">
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
<vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
<dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd>
{vb:raw template_hook.postbit_userinfo_right_after_posts}
</dl>
Code khi thêm trường thông tin
PHP Code:
<dl class="userinfo_extra">
<vb:if condition="$post['field5']"><div class="eti_postbit">Họ tên : {vb:raw post.field5}</div></vb:if>
<vb:if condition="$post['field4']"><div class="eti_postbit">Nghề nghiệp : {vb:raw post.field4}</div></vb:if>
<vb:if condition="$post['field10']"><div class="eti_postbit">Ðến từ : {vb:raw post.field10}</div></vb:if>
<vb:if condition="$post['field7']"><div class="eti_postbit">Giới tính : {vb:raw post.field7}</div></vb:if>
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
<vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
<dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd>
{vb:raw template_hook.postbit_userinfo_right_after_posts}
</dl>
cho mình hỏi mình muốn đóng khung như sau
Ðính Kèm 3765
vậy thì làm thế nào
Edit Templates của skin bạn cần sửa => CSS Templates => additonal.css
Thêm đoạn code này vào dưới
Rồi bạn vào postbit_legary rồi thêm <div class="post_field"> vào trước mỗi thông tin cá nhận bạn muốn đóng khung, và nhớ phải đóng bằng thẻ </div>Code:.post_field { background: #fff;
color: #4d5153;
border: 1px solid #bcb6ad;
padding: 3px 3px 3px 10px;
margin-top: 2px;
text-align:left;
}
.post_field strong {
color: #ea7904;
}
.post_field dt {
color: #ea7904;
font-weight:700;
}
bạn ơi dùng cho bản 4.1.4 dc hok vậy?
được, 4.1.4 không có thay đổi j trong template cả!
Cần giúp về chữ màu Last Post By
Ðính Kèm 4081
Em đã chỉnh đc mày nhưng chỉ xuất hiện ở bài viết và thống kê thôi, ko đc như itvnn
Cái này này cậu ơi
http://itvnn.net/showthread.php?7374...TML-Markup-4.1
Có thể cho mình cái class đóng khung của itvnn ko nhỉ :D
.eti_postbit_merkezli cái này dùng để làm gì bác ơi. Em muốn làm mấy cái chữ "Họ tên, Ngày tham gia, thành viên thứ, đến từ..." có màu như của itvnn thì sửa chỗ nào ak. của em nó màu mặc định
Dùng thẻ này như bình thường mà cậu
<b><font color=red> </font></b>
sao ngộ quá, trong 4rum em đang dùng là vbb4 vẫn có mod lever, nhưng ko tìm thầy postbit_userlevel trong Postbit templates
lever khác. anh có thể giúp đc không. demo. cntt34.com
a ơi e làm mãi cái này không được
e đã làm từng bước nhưng khi đăng ký thành viên mới vẫn không thấy gì,
chỉ cho e với nhá:yahoo: ketnoiso@ymail.com