Jump to content

Дополнительные поля


Recommended Posts

Хотелось бы узнать как перенести дополнительное поле,допустим под "Благодарностей" сейчас у меня

выглядит примерно так : 46f9c459520b.jpg

а хотелось бы примерно так : c74fb1e75512.jpg

может кто нибудь знает как сделать то что меня интересует.

Link to comment
Share on other sites

Открываем шаблон userInfoPane, за дополнительный поля в профиле отвечает кусок кода:


<if test="authorcfields:|:$author['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>
</if>
Этот код можно переместить в любое, удобное для тебя, место! В твоём случае, если тебе надо разместить доп. поле после надписи Благодарностей, код необходимо поместить сразу после:

<if test="postCount:|:$author['member_id']">
<li class='post_count desc lighter'>
{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"} {$this->lang->words['m_posts']}
</li>
</if>
[/code]

Link to comment
Share on other sites

Вот собственно полный код "userInfoPane" :


<div itemscope itemtype="__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>

  <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']">

  <li class='post_count desc lighter'>

   Сообщений: {parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}

  </li>

  </if>

<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>

  <!-- <if test="authorwarn:|:$author['show_warn']">

   <li>

	<if test="$options['wl_id']">

		 <img src='{$this->settings['img_url']}/warn.png' class='clickable' onclick='warningPopup( this, {$options['wl_id']} )' title='{$this->lang->words['warnings_issued']}' />

	</if>

	<a class='desc lighter blend_links' href='{parse url="app=members&amp;module=profile&amp;section=warnings&amp;member={$author['member_id']}&amp;from_app={$this->request['app']}&amp;from_id1={$contentid}&amp;from_id2={$options['id2']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}'>{parse expression="sprintf( $this->lang->words['warn_status'], $author['warn_level'] )"}</a>

   </li>

  </if> -->

</ul>

  </ul>

</if>


</div>

и вот что получилось :

eb3107410b60.jpg

Хотелось бы чтобы репутация была в самом низу.

Link to comment
Share on other sites

Система --> Приложения и хуки --> Управление хуками --> Редактировать (TB) Show Reputation in User Info --> Вкладка Файлы хука --> Расположение выбрать самую последнюю строчку и сохранить!

Link to comment
Share on other sites

Последний вопрос,а как сделать чтобы вместо иконки группы :

ea0846d1f673.jpg

Стоял ранг сообщений примерно так :

e2e6d25c2618.jpg

Link to comment
Share on other sites

а где можно указать путь до картинки ранга группы и можно ли не одной только картинки?

Link to comment
Share on other sites

Мне надо что то подобное этому нету сообщений допустим : f319eb6f0dd1.gif

Есть немного сообщения у пользователя : e0f2befba259.gif

Чуть больше : 8de0aa37d94e.gif

Много сообщений : 2b61b5bae9c9.gif

В Картинка группы (Опционально) что то это не получается это все поставить

Link to comment
Share on other sites

Мне надо что то подобное этому нету сообщений допустим

АЦ -> Пользователи -> Звания -> Настройка рангов.

Это то, что вам нужно.

Link to comment
Share on other sites

Кто нибудь знает как изменить цвет отображения текста "доп.полей",чтобы они были схожи с основными текстовыми полями что под профилем,и как засунить хук "благодарностей" в самый конец "после доп.полей"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...