Jump to content

Maintitle De Culori Diferite Pe Categorie, Ca Pe Wlg


Go to solution Solved by Courage,

Recommended Posts

Posted

Știu cã este vorba de 2 coduri special_border... Nimic mai mult.. Vb cu Courage, deși nu stiu daca iti va da ceva din tema lui.

  • Upvote 1
Posted (edited)

Codurile css ti le dau eo daca vrei da iti mai trebuie si Template

.special_border {
    height: 1px;
    width: 100%;
    background: -moz-linear-gradient(left, #a00 0%, #0C0F13 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,#aa0000), color-stop(100%,#0C0F13));
    background: -webkit-linear-gradient(left, #a00 0%,#0C0F13 100%);
    background: -o-linear-gradient(left, #a00 0%, #0C0F13 100%);
    background: -ms-linear-gradient(left, #a00 0%,#0C0F13 100%);
    background: linear-gradient(to right, #a00 0%,#0C0F13 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0C0F1300', endColorstr='#0C0F1300',GradientType=1 );
}


.special_border2 {
    height: 1px;
    width: 100%;
    background: -moz-linear-gradient(left, #3096b8 0%, #0C0F13 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,#5b879c), color-stop(100%,#0C0F13));
    background: -webkit-linear-gradient(left, #5b879c 0%,#0C0F13 100%);
    background: -o-linear-gradient(left, #3096b8 0%, #0C0F13 100%);
    background: -ms-linear-gradient(left, #3096b8 0%,#0C0F13 100%);
    background: linear-gradient(to right, #3096b8 0%,#0C0F13 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0C0F1300', endColorstr='#0C0F1300',GradientType=1 );
}


.special_border3 {
    height: 1px;
    width: 100%;
    background: -moz-linear-gradient(left, #eb5210 0%, #0C0F13 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,#CD5E31), color-stop(100%,#0C0F13));
    background: -webkit-linear-gradient(left, #CD5E31 0%,#0C0F13 100%);
    background: -o-linear-gradient(left, #eb5210 0%, #0C0F13 100%);
    background: -ms-linear-gradient(left, #eb5210 0%,#0C0F13 100%);
    background: linear-gradient(to right, #eb5210 0%,#0C0F13 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0C0F1300', endColorstr='#0C0F1300',GradientType=1 );
}


.special_borderchat {
    height: 1px;
    width: 100%;
    background: -moz-linear-gradient(left, #a00 0%,#5b879c 50%, #CD5E31 100%, );
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,#aa0000), color-stop(50%,#5b879c), color-stop(100%,#CD5E31));
    background: -webkit-linear-gradient(left,  #a00 0%,#5b879c 50%, #CD5E31 100%, );
    background: -o-linear-gradient(left, #a00 0%,#5b879c 50%, #CD5E31 100%, );
    background: -ms-linear-gradient(left, #a00 0%,#5b879c 50%, #CD5E31 100%, );
    background: linear-gradient(to right, #a00 0%,#5b879c 50%, #CD5E31 100%, );
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0C0F1300', endColorstr='#0C0F1300',GradientType=1 );
}

Edited by Courage
spoiler
  • Upvote 1
Posted

 

Codurile css ti le dau eo daca vrei da iti mai trebuie si Template

.special_border {
    height: 1px;
    width: 100%;
    background: -moz-linear-gradient(left, #a00 0%, #0C0F13 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,#aa0000), color-stop(100%,#0C0F13));
    background: -webkit-linear-gradient(left, #a00 0%,#0C0F13 100%);
    background: -o-linear-gradient(left, #a00 0%, #0C0F13 100%);
    background: -ms-linear-gradient(left, #a00 0%,#0C0F13 100%);
    background: linear-gradient(to right, #a00 0%,#0C0F13 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0C0F1300', endColorstr='#0C0F1300',GradientType=1 );
}


.special_border2 {
    height: 1px;
    width: 100%;
    background: -moz-linear-gradient(left, #3096b8 0%, #0C0F13 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,#5b879c), color-stop(100%,#0C0F13));
    background: -webkit-linear-gradient(left, #5b879c 0%,#0C0F13 100%);
    background: -o-linear-gradient(left, #3096b8 0%, #0C0F13 100%);
    background: -ms-linear-gradient(left, #3096b8 0%,#0C0F13 100%);
    background: linear-gradient(to right, #3096b8 0%,#0C0F13 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0C0F1300', endColorstr='#0C0F1300',GradientType=1 );
}


.special_border3 {
    height: 1px;
    width: 100%;
    background: -moz-linear-gradient(left, #eb5210 0%, #0C0F13 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,#CD5E31), color-stop(100%,#0C0F13));
    background: -webkit-linear-gradient(left, #CD5E31 0%,#0C0F13 100%);
    background: -o-linear-gradient(left, #eb5210 0%, #0C0F13 100%);
    background: -ms-linear-gradient(left, #eb5210 0%,#0C0F13 100%);
    background: linear-gradient(to right, #eb5210 0%,#0C0F13 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0C0F1300', endColorstr='#0C0F1300',GradientType=1 );
}


.special_borderchat {
    height: 1px;
    width: 100%;
    background: -moz-linear-gradient(left, #a00 0%,#5b879c 50%, #CD5E31 100%, );
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,#aa0000), color-stop(50%,#5b879c), color-stop(100%,#CD5E31));
    background: -webkit-linear-gradient(left,  #a00 0%,#5b879c 50%, #CD5E31 100%, );
    background: -o-linear-gradient(left, #a00 0%,#5b879c 50%, #CD5E31 100%, );
    background: -ms-linear-gradient(left, #a00 0%,#5b879c 50%, #CD5E31 100%, );
    background: linear-gradient(to right, #a00 0%,#5b879c 50%, #CD5E31 100%, );
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0C0F1300', endColorstr='#0C0F1300',GradientType=1 );
}

Degeaba l-ai dat , ca trebuie un cod in boardIndexTemplate pentru activare, dupa </h3> ceva gen

special_border2_#category_xx

. Nu e codu' bun , doar am dat un exemplu.

Posted

Are alta smecherie! nu e adaugat asa! :) .. cred, dar nu sunt sigur .. s-a orientat dupa ID categoriei si a adaugat acele gradient-uri! :-?

  • Upvote 1
Posted

Kennzo daca te uiti in sursa situ-lui gasesti css si coduri pentru fiecare cateogrie. Eo asa am vazut. Dar nush cum sa le modific sa pot sa le fac ca acolo

Eu am reusit deja! nu mai este nevoie! e prea usor.. :))

  • Upvote 1
  • Moderators
  • Solution
Posted

Board index template,

 

Înainte de

{parse replacement="header_end"}

Adăugaţi

<if test="$_data['cat_data']['id'] == xx"><div class='clasa_css_gradient'></div> </if>

Unde xx = ID-ul categoriei.

  • Upvote 4
  • Moderators
Posted

Sau mai simplu/optimizat daca aveti 10 categorii, adaugati inloc de ( sa nu faceti 10 randuri de if ):

<if test="$_data['cat_data']['id'] == xx"><div class='clasa_css_gradient'></div> </if>

Urmatorul:

<div class='clasa_bordura_{$_data['cat_data']['id']}'></div>

Numaru la clasa trebuie sa fie aceasi cu numaru de la categorie. Daca categoria este 15, atunci trebuie sa aveti clasa:

clasa_bordura_15
  • Upvote 3

PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

  • 3 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • 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.