show cái code quảng cáo em mò thử phát. Bỏ vbb lâu rùi nên ko có dùng tới mấy cái này
Tình hình là em đã vào được file
sidebar.css và dưới đây là code của nó, mong các pro sửa dùm
@charset "UTF-8";
/* CSS Document */
/* Don't use left and right stylevar here */
#content_container {
width:100%;
float:left;
margin-right: -{vb:math {vb:stylevar forum_sidebar_width}+{vb:math {vb:stylevar padding}*2}};
padding: {vb:stylevar padding} 0;
}
#content_container.contentright {
float:right;
margin-right:0;
margin-left:-{vb:math {vb:stylevar forum_sidebar_width}+{vb:math {vb:stylevar padding}*2}};
}
#content_container #content {
margin-right:{vb:math {vb:stylevar forum_sidebar_width}+{vb:math {vb:stylevar padding}*2}};
}
#content_container.contentright #content {
margin-right:0;
margin-left:{vb:math {vb:stylevar forum_sidebar_width}+{vb:math {vb:stylevar padding}*2}};
}
/*-----------------------------------*/
/* SIDEBAR */
/* Don't use left and right stylevar here */
#sidebar_container {
float:right;
width:{vb:stylevar forum_sidebar_width};
padding: {vb:math {vb:stylevar padding}+7} 0;
margin-bottom:3em;
}
#sidebar_container.sidebarleft {
float:left;
}
#sidebar_container a {
color: {vb:stylevar sidebar_content_link_color};
}
#sidebar_container a:hover {
color: {vb:stylevar sidebar_content_link_hover_color};
}
#sidebar_button {
display:block;
margin-top: 40px;
float:{vb:stylevar right};
margin-{vb:stylevar right}:-28px;
_margin: 40px 0 0 0;
_display: inline-block;
}
#sidebar_button {
_display: inline;
}
#sidebar_container.sidebarleft #sidebar_button {
float:left;
margin-left:-28px;
}
#sidebar_container .block {
margin-bottom:4px;
padding:6px;
border-top-{vb:stylevar right}: {vb:stylevar border_radius};
border-top-{vb:stylevar left}: {vb:stylevar border_radius};
border-top-{vb:stylevar right}: {vb:stylevar border_radius};
border-top-{vb:stylevar left}: {vb:stylevar border_radius};
}
#sidebar_container .blockbody {
padding: 0;
color: {vb:stylevar sidebar_content_color};
border:{vb:stylevar sidebar_content_border};
-moz-border-radius:{vb:stylevar border_radius};
-webkit-border-radius: {vb:stylevar border_radius};
border-radius: {vb:stylevar border_radius};
background:{vb:stylevar sidebar_content_background.backgroundColor};
}
#sidebar_container .blockrow {
border-top: 1px solid {vb:stylevar sidebar_content_bevel};
-moz-border-radius:{vb:stylevar border_radius};
-webkit-border-radius: {vb:stylevar border_radius};
border-radius: {vb:stylevar border_radius};
background:{vb:stylevar sidebar_content_background};
padding:{vb:stylevar sidebar_content_padding};
}
#sidebar_container .underblock {
height:{vb:stylevar sidebar_contentseparator_height};
background:{vb:stylevar sidebar_contentseparator_background};
}
#sidebar_container .blocksubhead {
padding:10px 6px 10px 6px;
}
#sidebar_container .blocksubhead {
background:transparent none;
font-size:{vb:stylevar sidebar_header_fontSize};
height:{vb:math {vb:stylevar mid_fontSize}*{vb:stylevar line_height} + 2px };
color: {vb:stylevar sidebar_header_color};
padding: 5px 6px;
border:none;
outline:none;
font-weight:bold;
}
#sidebar_container .blocksubhead span.blocktitle {
width: auto;
display:block;
white-space:nowrap;
float:{vb:stylevar left};
overflow:hidden;
padding-{vb:stylevar left}:3px;
}
#sidebar_container .blocksubhead img {
vertical-align:middle;
float: {vb:stylevar left};
}
#sidebar_container .blocksubhead img.inlineimg {
float: none;
position: relative;
top: -2px;
}
#sidebar_container .blocksubhead a.username {
padding-{vb:stylevar right}:20px;
}
#sidebar_container .formcontrols .blockrow label {
width:auto;
}
#sidebar_container .advanced.blockfoot {
padding:6px;
border-bottom:none;
font-size:88%;
font-weight:bold;
background: transparent;
}
#sidebar_container .searchblock .advanced a {
line-height:2;
}
#sidebar_container .searchblock .advanced .button {
float:{vb:stylevar right};
}
#sidebar_container > ul {
background:{vb:stylevar sidebar_background};
border:{vb:stylevar sidebar_border};
-moz-border-radius:{vb:stylevar border_radius};
-webkit-border-radius: {vb:stylevar border_radius};
border-radius: {vb:stylevar border_radius};
<vb:if condition="$stylevar['textdirection'] == 'rtl'">
-moz-box-shadow:2px 2px 2px {vb:stylevar shadow_color};
-webkit-box-shadow:2px 2px 2px {vb:stylevar shadow_color};
box-shadow:2px 2px 2px {vb:stylevar shadow_color};
<vb:else />
-moz-box-shadow:-2px 2px 2px {vb:stylevar shadow_color};
-webkit-box-shadow:-2px 2px 2px {vb:stylevar shadow_color};
box-shadow:-2px 2px 2px {vb:stylevar shadow_color};
</vb:if>
float:{vb:stylevar left};
width:99%;
}
#sidebar_container a.collapse {
position:static;
}
#sidebar_container.sidebar_closed {
width:0px;
}
#sidebar.sidebar_hidden {
display:none;
}
#content_container.sidebar_nomargin_left, #content_container #content.sidebar_nomargin_left {
margin-left:0px;
}
#content_container.sidebar_nomargin_right, #content_container #content.sidebar_nomargin_right {
margin-right:0px;
}
<vb:if condition="$stylevar['textdirection'] == 'rtl'">
#sidebar_button {
float:right;
margin-right:-28px;
}
.sidebarleft #sidebar_button {
float:left;
margin-left:-28px;
margin-right:0;
}
</vb:if>
Sang vietvbb mà hỏi =.= trước mình dùng vbb 4x bình thường, ad hiện bình thường, không thể ẩn sidebar và sidebar hiện cả khi vào topic. Bạn thử vào vietvbb và search lại cái Mod đó, search thêm block sidebar nữa, không nhớ là có phải thế không.
Đã hỏi bên vietbb nhưng chẳng ai trả lời cả huhu