Jump to content

Problema Ribbon


Nitoiu_channel

Recommended Posts

Salut, am o noua problema am tot cautat pe net dar nu am gasit ... 

 

Cum pot face un ribbon pentru fiecare grad ? si sa imi apara o singura data nu ca aici : http://imgur.com/a/SZA2i

Vreau sa fac la fiecare grad in parte Exemplu Designer ribbon cu roz la gradul de Moderator ribbon cu verde

 

Aveti aici userInfoPane

 

    
<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='title2'>{$author['member_title']}</p>
        </if>
<ul class="dialog7">
                      <li class="dialog5">
                          <div class="arr"></div>
                      </li>
            
</ul>
</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>
<br />
<if test='{$author['g_id']}== 4'>
<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;"><b>{$author['g_title']}</b></span>
                                </li>
            
</ul>
</if>
<if test='{$author['g_id']}== 15'>
<ul class="ribbon">
                      <li class="ribbon2" style="background: red;">
                                        <div class="Rleft" style="background: red"></div>
                                        <div class="Rright" style="background: red"></div>
                             <span style="color: white;"><b>{$author['g_title']}</b></span>
                                </li>
            
</ul>
</if>

        <if test="rankimage:|:$author['member_rank_img']">
            <li id="nofun" 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="memberbox:|:$this->memberData['member_id']">
<a href="#" onclick="ipb.textEditor.getEditor( ipb.textEditor.getCurrentEditorId() ).insert( '@{$author['members_display_name']}' ); return false;" title="@{$author['members_display_name']}"><div class="mentionbtn bgtw"><i class="fa fa-bullhorn"></i><paper-ripple fit></paper-ripple></div></a>

<if test="pmlink:|:($member['member_id'] != $this->memberData['member_id']) AND $this->memberData['g_use_pm'] AND $this->memberData['members_disable_pm'] == 0 AND IPSLib::moduleIsEnabled( 'messaging', 'members' ) AND $member['members_disable_pm'] == 0">
                            <li class='pmbtn2' id='pm_xxx_{$member['member_id']}'><a href='{parse url="app=members&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$member['member_id']}" base="public"}' title='{$this->lang->words['pm_this_member']}' class='pmbtn bgtw'> {$this->lang->words['send_message']}<i class="fa fa-paper-plane-o"></i>  <paper-ripple fit></paper-ripple></a></li>
            
    
                


<if test="authorwarn:|:$author['show_warn']">
<if test="hasWarningId:|:$options['wl_id']">
                    
            </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']}'><div class="warnbtn bgtw tooltip tooltipstered"> <i class="fa fa-exclamation-triangle"></i>  <paper-ripple fit></paper-ripple></div></a>

</if>

 </if>

</if>

<div class="ig_userinfo_b4">

                
                
    
    <div class="left ig_userinfo_b4_1">
      <div>
        <span class="ig_userinfo_b4_m">Posts</span>
      </div>
<div style="padding-top: 5px;">
        <span style="font-size: 15px;">{parse expression="$this->registry->getClass('class_localization')->formatNumber(intval($author['posts']))"}</span>
      </div>

      
    </div>
    
            <div class="right ig_userinfo_b4_1">
      <div><span class="ig_userinfo_b4_m">Threads</span></div>
      <div style="padding-top: 5px;">
<span style="font-size: 15px;"><php>$topics=ipsRegistry::DB()->buildAndFetch(array('select'=>'count(*) as topics','from'=>'topics','where'=>"starter_id=".$author['member_id']));</php> {$topics['topics']}
</span></div>


    </div>
    

    
</div>
                    

    <div class="extraUserInfo">
            
    
            <dl class="pairsJustified">
                <li class='post_count desc lighter'>
                    <dt><i class="fa fa-user"> </i>&nbsp  Member Number:</dt>
                    <dd>{$author['member_id']}</dd>
                </li>
            </dl>

    
<dl class="pairsJustified">
                <li class='post_count desc lighter'>
                    <dt><i class="fa fa-calendar"> </i>&nbsp  {$this->lang->words['m_joined']}</dt>
                    <dd>{parse date="$author['joined']" format="joined"}</dd>
                </li>
            </dl>
        <if test="authorwarn:|:$author['show_warn']">
                <dl class="pairsJustified">
                    <li class='post_count desc lighter'>
                        <dt><i class="fa fa-exclamation-circle"> </i>&nbsp  Warnings:</dt>
                        <dd>{parse expression="$this->registry->getClass('class_localization')->formatNumber(intval($author['warn_level']))"}</dd>
                    </li>
                </dl>
        </if>

    <dl class="pairsJustified">
                <li class='post_count desc lighter'>
                    <dt><i class="fa fa-thumbs-up"> </i>&nbsp  Reputation:</dt>
                    <dd>{$author['pp_reputation_points']}</dd>
                </li>
        </dl>


  <if test="authorcfields:|:$author['custom_fields'] != """><ul>
            <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>
<if test="$author['_online']">
<div class="postbitbox3_online"><span class="online">Online</span></div>
<else />
<div class="postbitbox3_offline"><span class="offline">Offline</span></div></if>

</div>


Link to comment
Share on other sites

M-am documentat și eu despre asta, că până acum nu m-au prea pasionat Ribbon-urile.

În locul codului acela pe care îl ai tu adaugă asta:

<if test="memberData:|:$author['member_group_id'] == '4'">
<ul class="ribbon">
				<li class="ribbon2" style="background: #757575; z-index: 1;">
                    			<div class="Rleft" style="background: #757575;"></div>
                    			<div class="Rright" style="background: #757575;"></div>
                  <span style=color:white>{$author['g_title']}</span>
                		</li>
			</if>

Dar regulile rămân aceleași.

1 ribbon pentru fiecare grup. Modifici acel 4 din

$author['member_group_id'] == '4'

Pentru a schimba id-ul grupului.

  • Upvote 1

"Sufletele cele mai întunecate nu sunt cele care aleg să existe în iad, ci acelea care aleg să evadeze și se mută în tăcere printre noi." - Samuel Loomis (Halloween)

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.