Kacper Wojciechowski
- Mentor MyBB
- 858 119 156 43
Witam, tworzę aktualnie wtyczkę pod MyBB i mam problem z dodawaniem .css przy aktywacji.
Mój kod:
Mój kod:
$stylepanel = ".psrpglayout {
padding-left: 150px;
}
.psrpgleft {
width: 140px;
margin-left: -150px;
float: left;
}
.psrpgtabs > ul {
width: 149px !important;
margin-top: 10px;
border-top: 1px solid #2d2d2d;
border-left: 1px solid #2d2d2d;
padding: 0;
}
.psrpgtabs li {
background: #1e1e1e;
color: #808080;
border-bottom: 1px solid #2d2d2d;
font-size: 12px;
list-style: none;
}
.psrpgtabs li a {
display: block;
padding: 10px 8px;
outline: 0;
color: #85807d;
-webkit-transition: background-color 0.1s ease-in-out;
-moz-transition: background-color 0.3s ease-in-out;
}
.psrpgtabs li.active a {
width: 135px;
position: relative;
z-index: 8000;
border-right: 1px solid #1a1a1a;
background: #1a1a1a;
color: #fff;
font-weight: bold;
}
.psrpgcontent {
width: 100%;
float: left;
}
.psrpgcontainer {
background: #1a1a1a;
border: 1px solid #2d2d2d;
}
.activeSORTBY {
background: rgba(0,0,0,0.3);
opacity: 1 !important;
color: #fff;
padding: 4px 10px;
font-weight: bold;
-moz-border-radius: 10px;
-webkit-border-radius: 10px !important;
border-radius: 10px;
-webkit-box-shadow: inset 0px 1px 3px rgba(0,0,0,0.5), rgba(255,255,255,0.16) 0px 1px 0px, rgba(255,255,255,0.05) 0px 0px 0px 1px;
-moz-box-shadow: inset 0px 1px 3px rgba(0,0,0,0.5), rgba(255,255,255,0.16) 0px 1px 0px, rgba(255,255,255,0.05) 0px 0px 0px 1px;
box-shadow: inset 0px 1px 3px rgba(0,0,0,0.5), rgba(255,255,255,0.16) 0px 1px 0px, rgba(255,255,255,0.05) 0px 0px 0px 1px;
}
.menuDzial_sortby {
margin: 0px;
margin-left: -40px;
}
.menuDzial_sortby li{
display: inline-block;
list-style: none;
margin-top: 0px;
}
.menuDzial_sortby li a {
text-align: center;
vertical-align: middle;
margin-left: 15px;
font-size: 11px;
opacity: 0.4;
transition: opacity 0.3s;
-webkit-transition: opacity 0.3s;
-moz-transition: opacity 0.3s;
}
.menuDzial_sortby li a:hover {
opacity: 1 !important;
transition: opacity 0.3s;
-webkit-transition: opacity 0.3s;
-moz-transition: opacity 0.3s;
}
.belka_sorta:hover > .menuDzial_sortby li a {
opacity: 0.7;
transition: opacity 0.3s;
-webkit-transition: opacity 0.3s;
-moz-transition: opacity 0.3s;
}";
$stylesheet = array(
"sid" => "",
"name" => "panel.css",
"cachefile" => "panel.css",
"tid" => "1",
"attachedto" => "index.php",
"stylesheet" => $db->escape_string($stylepanel),
'lastmodified' => TIME_NOW
);
$db->insert_query("themestylesheets", $stylesheet);