Jump to content

Contur Profile


dust

Recommended Posts

Spoiler

<if test="$this->settings['horizontalTopicView']='no'"></if>
<!-- -->
<div itemscope itemtype="http://schema.org/Person" class='user_details <if test="$this->settings['horizontalTopicView']=='yes'">clearfix</if>'>

<if test="($this->settings['horizontalTopicView']=='yes') AND $this->request['section'] == 'topics'">

    <div class='horizontalAvatar left'>

    <if test="avatar:|:$author['member_id']">
            <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>
    <else />
            <img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
    </if>
    
    </div>
    
    <div class='horizontalUserInfo'>

    <div class='horizontalUsername'>
       
        <if test="$author['member_id']">
            <span itemprop="creator name" class="author vcard">{parse template="userHoverCard" group="global" params="$author"}</span>
        <else />
            {$author['members_display_name']}
        </if>
    
    </div>

    <ul class='horizontalInfoList' style='width: 140px;'>
        <li class='group_title'>
            {$author['_group_formatted']}
        </li>
        <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>
    </ul>
    
    <ul class='horizontalInfoList' style='width: 140px;'>
        <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="membertitle:|:$author['member_title']">
            <li>{$author['member_title']}</li>
        </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>
    
    <if test="authorcfields:|:$author['custom_fields'] != """>
        <ul class='horizontalInfoList 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>
    
    <ul class='horizontalInfoList' style='float: right; width: 190px;'>
        <li><if test="$author['_online']"><img src="{style_images_url}/post_online.png" alt="" class='post_online' data-tooltip="Online" /><else /><img src="{style_images_url}/post_offline.png" alt="" class='post_online' data-tooltip="Offline" /></if> Last active: {$author['_last_active']}</li>
        <li style='padding-left: 15px;'>Joined: {parse date="$author['joined']" format="DATE"}</li>
    </ul>
    
    </div>

<else />

<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'] ) )"} {$this->lang->words['m_posts']}
        </li>
        </if>
        <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>
    
    <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>

 

Link to comment
Share on other sites

În

AdminCP > Look & Feel > Skin Set (tema ta) > Templates > Global Templates > userInfoPane 

Adaugi asta

Spoiler

<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']">
  </if>
<ul class="ribbon" style='margin-top:-5px;'>
                                <li class="ribbon2" style="background: #323232;">
                                        <div class="Rleft" style="background: #323232;"></div>
                                        <div class="Rright" style="background: #323232;"></div>
                                    <span style="color:#fff;<if test="$author['member_id']==1">color:red;font-weight:bold;</if>">{$author['member_title']}</span>
                                </li>
</ul>
        <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 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>
        </ul>
    <div class="extraUserInfo">
        <if test="postCount:|:$author['member_id']"> 
        <dl class="pairsJustified">
                <li class='post_count desc lighter'>
                    <dt>Group</dt>
                    <dd>{$author['_group_formatted']}</dd>
                </li>
        </dl>
                <dl class="pairsJustified">
                    <li class='post_count desc lighter'>
                        <dt>Posts</dt>
                        <dd>{parse expression="$this->registry->getClass('class_localization')->formatNumber(intval($author['posts']))"}</dd>
                    </li>
                </dl>
        </if>
        <dl class="pairsJustified">
                <li class='post_count desc lighter'>
                    <dt>Reputation</dt>
                    <dd>{$author['pp_reputation_points']}</dd>
                </li>
        </dl>
        <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 != ''">
                        {$field}
                </if>
            </foreach>
            </foreach>
        </if>
        <dl class="pairsJustified">
                <li class='post_count desc lighter'>
                    <dt>
        <if test="authorwarn:|:$author['show_warn']">
                <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></dt>
                <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>
        </if>                
</li></dl>
    </div>
</div>

 

După care intri în

AdminCP > Look & Feel > Skin Set (tema ta) > CSS > ipb_styles.css

Și la sfârșit de tot adaugi asta

 

Spoiler

.extraUserInfo{
  font-size:11px;
  padding:4px 0px;
}
.pairsJustified{
  margin:1px 0 0;
  font-size:11px;
  border:1px solid #2F2F2F;
  overflow:hidden;
  line-height:2;
list-style-type: none;
}
.pairsJustified:hover{
  border:1px solid #28435D;
}
.pairsJustified dt{
  font-size:11px !important;
  float:left;
  padding-left:5px;
  text-align:left;
  max-width:100%;
  color:#ababab;
  text-shadow:0 1px #000;
}
.pairsJustified dd{
  float:right;
  font-size:10px !important;
  text-align:right;
  max-width:100%;
  padding-right:5px;
  text-shadow:0 1px #000;
}
.ribbon{
    font-weight:bold;
    font-size:10px;
    margin:-5px -25px 0px -14px;
    text-align:center;
    text-shadow:0 1px #000
        z-index:1000000;
}
.ribbon2 {
    background-color: #323232;
    margin-top: 10px;
    margin-bottom: 10px;
    width:192px;
    border: 0px solid #323232;
}
.ribbon
li{
    -webkit-border-radius:3px;
    -moz-border-radius:3px;
    -khtml-border-radius:3px;
    border-radius:3px;
    -webkit-border-top-right-radius:0px;
    -moz-border-radius-topright:0px;
    -khtml-border-top-right-radius:0px;
    border-top-right-radius:0px;
    -webkit-border-top-left-radius:0px;
    -moz-border-radius-topleft:0px;
    -khtml-border-top-left-radius:0px;
    border-top-left-radius:0px;
    -webkit-box-shadow:0px 1px 3px rgba(0,0,0, 0.25);
    -moz-box-shadow:0px 1px 3px rgba(0,0,0, 0.25);
    -khtml-box-shadow:0px 1px 3px rgba(0,0,0, 0.25);
    box-shadow:0px 1px 3px rgba(0,0,0,0.25);
    padding:1px;
    position:relative;
    margin-bottom:10px
}

.ribbon li
.Rleft{
    -webkit-border-top-left-radius:3px;
    -moz-border-radius-topleft:3px;
    -khtml-border-top-left-radius:3px;
    border-top-left-radius:3px;
    left:0px;
    background-color:#2e2e2e
}

.ribbon li
.Rright{
    -webkit-border-top-right-radius:3px;
    -moz-border-radius-topright:3px;
    -khtml-border-top-right-radius:3px;
    border-top-right-radius:3px;
    right:0px;
    background-color:#2e2e2e
}

.ribbon li
div{
    position:absolute;
    top:-4px;
    width:4px;
    height:4px;
    background-color:#353535
}

 

Edited by naRf™
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.