Jump to content

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


Recommended Posts

Доброго времени суток! У меня случилась такая проблема с дополнительными полями, а именно не могу перенести его в UserInfoPane
Я пытаюсь сделать чтоб у меня было как на 2 скриншоте снизу.
Вот сам код.

<div itemscope itemtype="__schema.org/Person" class='user_details'> 
<span class='hide' itemprop="name">{$author['members_display_name']}</span> 
<span class="arrow"><span></span></span> 
<ul class='basic_info'> 
<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> 
</if> 
<if test="membertitle:|:$author['member_title']"> 
<ul class="ribbon"> 
<li class="ribbon1"> 
<div class="Rleft"></div> 
<div class="Rright"></div> 
{$author['member_title']} 
</li> 
</ul> 
</if> 
<ul class="ribbon"> 
<li class="ribbon2"> 
<div class="Rleft"></div> 
<div class="Rright"></div> 
{$author['_group_formatted']} 
</li> 
</ul> 
<div class="extraUserInfo"> 
<if test="postCount:|:$author['member_id']"> 
<dl class="pairsJustified"> 
<dt>{$this->lang->words['m_posts']}:</dt> 
<dd>{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"} </dd> 
</dl> 
</if> 
<dl class="pairsJustified"> 
<dt>{$this->lang->words['reputation']}:</dt> 
<dd>{$author['pp_reputation_points']}</dd> 
</dl> 
<dl class="pairsJustified"> 
<dt>{$this->lang->words['m_joined']}</dt> 
<dd>{parse date="$author['joined']" format="joined"}</dd> 
</dl> 
</div>
<if test="authorcfields:|:$author['custom_fields'] != """> 
<div class="extraUserInfo"> 
<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> 
</div> 
</if> 
<if test="authorwarn:|:$author['show_warn']"> 
<li> 
<if test="hasWarningId:|:$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> 
</div> 


Знаю что проблема вот в этом коде:

<if test="authorcfields:|:$author['custom_fields'] != """> 
<div class="extraUserInfo"> 
<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> 
</div> 
</if> 

2.jpg

1.jpg

Link to comment
Share on other sites


Я пытаюсь сделать чтоб у меня было как на 2 скриншоте снизу

​Ой ошибся как на 1 скриншоте.

Link to comment
Share on other sites

  • 2 months later...
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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