Перейти до змісту
Домент ipb-board.ru продається.

userInfoPane как на forum.diamondrp

Рекомендовані відповіді

Опубліковано
  • Адміністратор

Screenshot_1.png

Перейти в Админ панель-Внешний вид-Ваш стиль-Глобальные-userInfoPane заменить все на:

<div itemscope itemtype="http://schema.org/Person" class=''>
	<font class='hide' itemprop="name">{$author['members_display_name']}</font>
		<if test="$this->settings['hazeTopicLayout'] == 'Horizontal'">
			<if test="avatar:|:$author['member_id']">
				<div class='avatar'>
					<if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
					<a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'>
					</if>
					<if test="hasVariable:|:$this->settings['member_topic_avatar_max']">	
						<img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' />
					<else />
						<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
					</if>
					<if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
					</a>
					</if>
				</div>
			<else />
				<div class='avatar'>
					<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
				</div>
			</if>
		</if>
		<ul class='basic_info'>
			
			</if>
			<if test="$this->settings['hazeTopicLayout'] !== 'Horizontal'">
				<if test="avatar:|:$author['member_id']">
					<li class='avatar'>
						<if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
						<a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'>
						</if>
						<if test="hasVariable:|:$this->settings['member_topic_avatar_max']">	
							<img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' />
						<else />
							<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
						</if>
						<if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
						</a>
						</if>
					</li>
				<else />
					<li class='avatar'>
						<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
					</li>
				</if>	
			</if>		
			
			<if test="rankimage:|:$author['member_rank_img']">
				<li class='group_icon'>
				<if test="rankimageimage:|:$author['member_rank_img_i'] == 'img'">
					<img src='{$author['member_rank_img']}' alt='' />
				<else />
					{$author['member_rank_img']}
				</if>
				</li>
			</if>
			<if test="$this->settings['hazeTopicLayout'] == 'Horizontal'">
				</ul>
				<ul class='basic_info'>
			</if>
<ul class="infstat">
			<if test="postCount:|:$author['member_id']">
			<li class='post_count desc lighter'>
				<div class="mes_miniprofile">{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"} {$this->lang->words['m_posts']}</div>
			</li>
			</if>
</li></ul>
<ul class="infstat21">
<li class='post_count desc lighter'>
	<div style='{$tbSruiStyle}' data-tooltip="{$this->lang->words[ $likesMode ]}">
<li class='post_count desc lighter'>
	<div class="mes_miniprofile1">{parse format_number="$author['pp_reputation_points']"}</div>	
</li></ul>
		<if test="authorcfields:|:$author['custom_fields'] != """>
			<ul class='custom_fields'>
				<foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">
					<foreach loop="customFields:$author['custom_fields'][ $group ] as $field">
						<if test="$field != ''">
							<li>
								{$field}
							</li>
						</if>
					</foreach>
				</foreach>
			</ul>
		</if>
	</if>
</div>

Перейти в Админ панель-Внешний вид-Ваш стиль-CSS-ipb_styles.css найти:

.custom_fields {
	color: #818181;
	margin-top: 8px;
}

Заменить на:

.custom_fields {
    background-color: #fff;
    background-image: -webkit-linear-gradient(left, #efefef, #fff);
    background-image: -moz-linear-gradient(left, #efefef, #fff);
    background-image: -o-linear-gradient(left, #efefef, #fff);
    background-image: -ms-linear-gradient(left, #efefef, #fff);
    background-image: linear-gradient(to right, #efefef, #fff);
    display: block;
    padding: 10px;
    margin-top: 58px;
    text-align: left;
    margin-right: -10px;
}

Перейти в Админ панель-Внешний вид-Ваш стиль-CSS-ipb_styles.css добавить у саминый низ:

.infstat li:first-child {
    background: url(http://web.archive.org/web/20160513113328im_/http://forum.diamondrp.ru/public/style_images/diaimg/mes.png) no-repeat center 12px;
}
.infstat li {
    width: 50%;
    display: inline-block;
    float: left;
    line-height: 80px;
    height: 58px;
    font-size: 14px;
    text-transform: uppercase;
    color: #5d5d5d;
    overflow: hidden;
}
ul.custom_fields dd {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #757575;
}
ul.custom_fields dt {
    font-family: Arial;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: #a6a6a6;
}
.mes_miniprofile1 {
    background: url(http://web.archive.org/web/20160513113328im_/http://forum.diamondrp.ru/public/style_images/diaimg/rep.png) no-repeat center 10px;
}
.infstat21 {
     width: 50%;
    display: inline-block;
    float: left;
    line-height: 80px;
    height: 58px;
    font-size: 14px;
    text-transform: uppercase;
    color: #5d5d5d;
    overflow: hidden;
}
.infstat li .positive {
    color: #5d5d5d !important;
}

Для вывода Дополнительные поля добавить:

<span class='ft'>{title}</span><dd><span class='fc'>{content}</span><dd>

 

Для публікації повідомлень створіть обліковий запис або авторизуйтесь