Jump to content

Cum adaug si pentru celălalte grade .


PSR # Pcm.

Recommended Posts

Iti las aici codul de la userinfopane-ul asta : 

DuwxEHx.png

 

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

 

<br>
<ul class="ribbon" style='margin-top:-5px;'>
  <li class="ribbon2" style="background: grey;">
  <div class="Rleft" style="background: #323232;"></div>
  <div class="Rright" style="background: #323232;"></div>
  <span style="color:#fff;<if test="$author['member_id']==4">color:red;font-weight:bold;</if><if test="$author['member_id']==37 ">color:#2B8AF1;font-weight:bold;</if>">                                                                                                                                {$author['member_title']}</span>
  </li>
  </ul>
<if test="$author['g_id']== 4">
<ul class="ribbon">
                                <li class="ribbon2" style="background: red;">
                                        <div class="Rleft" style="background: #8E0000;"></div>
                                        <div class="Rright" style="background:#8E0000;"></div>
                                   <span style="color:white;"><span style="color:hite;"><span style="color:white;"><span style='color:white;'>{$author['g_title']}</span></span></span>
                                </li>
 </ul>
 </if>
<if test="$author['g_id']== 6">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #008612;">
                                        <div class="Rleft" style="background: #005D0C;"></div>
                                        <div class="Rright" style="background: #005D0C;"></div>
                                 <span style="color:white;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>
<if test="$author['g_id']== 12">
<ul class="ribbon">
                                <li class="ribbon2" style="background: GreenYellow;">
                                        <div class="Rleft" style="background: GreenYellow;"></div>
                                        <div class="Rright" style="background: GreenYellow;"></div>
                                   <span style="color:white;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>
 <if test="$author['g_id']== 7">
<ul class="ribbon">
                                <li class="ribbon2" style="background: orange;">
                                        <div class="Rleft" style="background: orange;"></div>
                                        <div class="Rright" style="background: orange;"></div>
                                   <span style="color:white;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>
  <if test="$author['g_id']== 7">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #DD9E00;">
                                        <div class="Rleft" style="background: #A57600;"></div>
                                        <div class="Rright" style="background: #A57600;"></div>
                                   <span style="color:#eee;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>
   <if test="$author['g_id']== 5">
<ul class="ribbon">
                                <li class="ribbon2" style="background: black;">
                                        <div class="Rleft" style="background: black;"></div>
                                        <div class="Rright" style="background: black;"></div>
                                   <span style="color:white;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>
    <if test="$author['g_id']== 8">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #0066A5;">
                                        <div class="Rleft" style="background: #014C7A;"></div>
                                        <div class="Rright" style="background: #014C7A;"></div>
                                   <span style="color:black;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>    
 <if test="$author['g_id']== 9">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #77009B;">
                                        <div class="Rleft" style="background: #5C0077;"></div>
                                        <div class="Rright" style="background: #5C0077;"></div>
                                   <span style="color:white;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>
 <if test="$author['g_id']== 10">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #ADD8E6;">
                                        <div class="Rleft" style="background: #ADD8E6;"></div>
                                        <div class="Rright" style="background: #ADD8E6;"></div>
                                   <span style="color:white;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>
 <if test="$author['g_id']== 6">
<ul class="ribbon">
                                <li class="ribbon2" style="background: green;">
                                        <div class="Rleft" style="background: green;"></div>
                                        <div class="Rright" style="background: green;"></div>
                                   <span style="color:white;">{$author['g_title']}</span>
                                </li>


 </ul>
 </if>
</li>


  </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>
  </ul>
  
  <if test="authorcfields:|:$author['custom_fields'] != """>
    <ul class='user_fields'>
    <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>
                <if test="postCount:|:$author['member_id']"><li>
      <span class="ft">Posturi</span> <span class="fc">{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</span>
    </li>
                <li>
      <span class="ft">Respect</span> <span class="fc">{parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</span>
                </li>
                           <li>
           <span class="ft">Register</span> <span class="fc">{parse date="$author['joined']" format="DATE"}</span>
             </li>  

                </if>

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

Si CSS

.ribbon{font-weight:bold;font-size:12px;margin:-5px -5px -2px;text-align:center;}.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} 

Sper sa iti fie de folos :)

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.