Jump to content

Tutorial Adăugare Bară De Warn În Ipb 3.3.x


Courage

Recommended Posts

  • Moderators

De când cei de la Invision Power au lansat IPB 3.3.X, sistemul de warning bazat pe acea drăgălaşă bară grafică a dispărut, în locul ei apărând minunatele puncte.

Adică da, la avertizare ai un număr de puncte (1, 2, 3, 4, etc.)

Azi vă voi arăta cum puteţi introduce înapoi acea bară grafică cu care mulţ s-au obişnuit.

Atenţie: odată ce aţi introdus bara, un user va putea avea maxim 10 puncte de avertizare, pentru ca maximul de 10 puncte să ocupe toată bara de warning.

Dacă sunteţi interesat despre modul în care va arăta:

rawes.png

Şi, să trecem la treabă:

AdminCP > Look & Feel > Manage Templates & CSS > Global Templates > userInfoPane.

Aici căutăm

</if>

</ul>

<if test="authorcfields:|:$author['custom_fields'] != """>
şi introducem deasupra
<if test="highwarn:|:$author['warn_level'] >= 8">

                 <p class='progress_bar user_warn limit' title='{$this->lang->words['warn_level']} {$author['warn_level']}0%'>

<else />

                 <p class='progress_bar user_warn' title='{$this->lang->words['warn_level']} {$author['warn_level']}0%'>

</if>

                 <span style='width: {$author['warn_level']}0%'><span>{$this->lang->words['warn_level']} {$author['warn_level']}0%</span></span>

</p>
Apoi, căutăm în tab-ul CSS fila ipb_styles.css şi adăugam la final, jos de tot:
.progress_bar {

background-color: #fff;

border: 1px solid #d5dde5;

}

.progress_bar span {

background: #243f5c url({style_images_url}/gradient_bg.png) repeat-x left 50%;

color: #fff;

font-size: 0em;

font-weight: bold;

text-align: center;

text-indent: -2000em; /* Safari fix */

height: 10px;

display: block;

overflow: hidden;

}

.progress_bar.limit span {

background: #b82929 url({style_images_url}/progressbar_warning.png) repeat-x center;

}

.progress_bar span span {

display: none;

}

.progress_bar.user_warn {

margin: 0 auto;

width: 80%;

}

.progress_bar.user_warn span {

height: 6px;

}

Articol conceput cu ajutorul informatiilor de aici:

Succes! :pct:

  • Upvote 3
  • Downvote 2
Link to comment
Share on other sites

  • 9 months later...

  • 1 year later...

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.