TheSagittarius отреагировал на пост
Silence в Персонализация профиля на весь экран
11 декабря, 2016
ACP -> Внешний вид -> Ваш стиль -> CSS -> Создаем новый css и названием его:
ipb_userinfo_bg
В его поставит ето содержание:
.ipb_userinfo_bg{height: 50px;background: #fff !important;background-size: 100% 100% !important;border-radius: 2px 2px 0 0;}
Перейти к
шаблоны -> Профили пользователей -> customizeProfileзаменяем все содержимое на это:
<style type="text/css">
<if test="hasBodyCustomization:|:$member['customization']['bg_color'] OR $member['customization']['_bgUrl']">#customBackground {
<if test="hasBackgroundColor:|:$member['customization']['bg_color']"> background-color: # {
$member['customization']['bg_color']
}
!important;
</if> <if test="hasBackgroundImage:|:$member['customization']['_bgUrl']"> background-image: url("{$member['customization']['_bgUrl']}?nc={$member['pp_profile_update']}") !important;
<if test="backgroundIsFixed:|:! $member['customization']['bg_tile']"> background-position: 50% 50%;
background-repeat: no-repeat;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
background-size: cover;
<else /> background-position: 50% 50%;
background-repeat: repeat;
</if> </if> height: 500px;
margin: -9px -9px 0 -9px;
}
#profile_background > .ipsLayout {
position: relative;
margin-top: -129px;
}
#user_info_cell,
#user_info_cell * {
color: #fff;
text-shadow: rgba(0, 0, 0, 0.9) 0px 1px 8px;
}
.ipsLayout.ipsLayout_withleft {
padding-left: 150px;
background: none !important;
}
#user_utility_links {
margin-top: 0;
}
#user_utility_links a {
background: url("{style_images_url}/trans50.png") repeat;
background: rgba(0, 0, 0, 0.5);
-webkit-box-shadow: inset rgba(0, 0, 0, 0.4) 0px 1px 3px, rgba(255, 255, 255, 0.1) 0px 1px 0px;
-moz-box-shadow: inset rgba(0, 0, 0, 0.4) 0px 1px 3px, rgba(255, 255, 255, 0.1) 0px 1px 0px;
box-shadow: inset rgba(0, 0, 0, 0.4) 0px 1px 3px, rgba(255, 255, 255, 0.1) 0px 1px 0px;
color: #fff;
display: inline-block;
padding: 0 10px;
border-radius: 3px;
line-height: 30px;
height: 30px;
text-shadow: rgba(0, 0, 0, 0.4) 0px 1px 0px;
border: 0;
}
#user_utility_links a:hover {
background: url("{style_images_url}/trans70.png") repeat;
background: rgba(0, 0, 0, 0.7);
}
#user_utility_links img {
margin-right: 4px;
}
</if>
</style>
<script type="text/javascript">
ipb.profile.customization = 1;
</script>
Перейти к profileModern и найти:
<div class='ipsBox vcard' id='profile_background'>
после вставляем:
<div id="customBackground"></div>
Перейти к userInfoPane и найти:
<span class='hide' itemprop="name">{$author['members_display_name']}</span>
после вставляем:
<div class='ipb_showcard' style='<if test="hasBodyCustomization:|:$author[' customization ']['bg_color '] OR $author['customization ']['_bgUrl ']"> <if test="hasBackgroundColor:|:$author['customization ']['bg_color ']">background-color: #{$author['customization ']['bg_color ']} !important; </if> <if test="hasBackgroundImage:|:$author['customization ']['_bgUrl ']"> background-image: url("{$author['customization ']['_bgUrl ']}?nc={$author['pp_profile_update ']}") !important; <if test="backgroundIsFixed:|:! $author['customization ']['bg_tile ']"> background-color: #FFFFFF !important;background-position: 50% 50%;background-repeat: no-repeat;-webkit-background-size: 100% 100%;-moz-background-size: 100% 100%;background-size: 100% 100% !important;height: 110px;margin: -9px -9px 0 -9px; <else /> background-position: 0px 0px; background-attachment: fixed; background-repeat: repeat; </if> </if></if>'></div>