Мануал UserInfoPane с изображениями

#Rips

Эксперт
Пользователь
Регистрация
16 Дек 2015
Сообщения
1,737
Лучшие ответы
0
Репутация
499

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

PHP:
.custom_fields li {background: #FFFFFF;padding:4px;margin-top:2px;border:1px solid #DDDDDD;border-radius: 5px;-webkit-border-radius: 5px;-moz-border-radius: 5px;text-align:center;width:100%;}
Админ Панель-Внешний вид-Ваш стиль-Глобальные-UserInfoPane заменить все на:

PHP:
<div itemscope itemtype="http://schema.org/Person" class='user_details'><span class='hide' itemprop="name">{$author['members_display_name']}</span><ul class='basic_info'>  <if test="membertitle:|:$author['member_title']">   <p class='desc member_title'>{$author['member_title']}</p>  </if>  <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>  <li class='group_title'>   {$author['_group_formatted']}  </li><br/>  <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="postCount:|:$author['member_id']">  </if>  <if test="authorwarn:|:$author['show_warn']">   <li>   </li>  </if></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>												<li>												<table width="100%" border="0">												  <tr>																<td width="18"><img src="http://ссылку/public/style_extra/cprofile_icons/post.png"></td>																<td width="50" align="left">Сообщений:</td>																<td align="left">{parse exp[b][/b]ression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</td>												  </tr>												</table>												</li><li>												<table width="100%" border="0">												  <tr>																<td width="18"><img src="http://ссылку/public/style_extra/cprofile_icons/warning.png"></td>																<td width="50" align="left"><a class='desc lighter blend_links' href='{parse url="app=members&module=profile&section=warnings&member={$author['member_id']}&from_app={$this->request['app']}&from_id1={$contentid}&from_id2={$options['id2']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}'>Предупреждений:</a></td>																<td align="left"><b>{parse exp[b][/b]ression="sprintf( $this->lang->words['warn_status'], $author['warn_level'] )"}</b></td>												  </tr>												</table>												</li>  </ul></if></div>
Ищите в коде и заменяйте на свои ссылки:
PHP:
style_extra/cprofile_icons/warning.png
style_extra/cprofile_icons/post.png
style_extra/cprofile_icons/skype.png
А что бы отображались картинки в дополнительных полях нужно зайти в Админ Панель-Пользователи-Дополнительные поля профиля и в нужных вам полях Вот отображение поля в сообщении вставить такой код:

PHP:
<table width="100%" border="0">  <tr>		<td width="18"><img src="http://ссылку/public/style_extra/cprofile_icons/skype.png"></td>		<td width="30" align="left">{title}</td>		<td align="left"><b>{content}</b></td>  </tr></table>
 
Последнее редактирование:
Сверху Снизу