fraNNNta-Design

Bine a-ti venit pe fraNNNta-Design
conectarecreaza cont



Pretty topic type in viewforum

Distribuiţi
Vizitator OnlineOffline
avatar
Vizitator

biggri Pretty topic type in viewforum

Mesaj Scris de Vizitator la data de Joi Apr 25, 2013 8:20 pm



Step 1) JavaScript Code

Open: ACP > Module > HTML & JAVASCRIPT > Gestiunea codurilor JavaScript
Amplasare: Subforumuri.
Cod:
var topic_type = {
VIEW_TOPIC_ANNOUNCEMENT: 'Announcement',
VIEW_TOPIC_GLOBAL: 'Global Announcement',
VIEW_TOPIC_LOCKED: 'Locked',
VIEW_TOPIC_POLL: 'Poll',
VIEW_TOPIC_STICKY: 'Sticky'
};

var CopyrightNotice = "© fraNNNta-Design. All right reserved. Pretty topic type in viewforum addon for forumotion phpbb3 forum."
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('$(a(){$(\'.h g.i.j\').k(a(){$(4).1(\'8:7("[ f ]")\').6(\'<0 2="3">\'+5.l+\'</0>\');$(4).1(\'8:7("c e")\').6(\'<0 2="3">\'+5.d+\'</0>\');$(4).1(\'8:7("c")\').6(\'<0 2="3">\'+5.w+\'</0>\');$(4).1(\'8:7("b t")\').6(\'<0 2="3">\'+5.9+\'</0>\');$(4).1(\'8:7("b-m")\').6(\'<0 2="3">\'+5.9+\'</0>\');$(4).1(\'.u[v*="s"] .r-n-o\').p(\'<0 2="3">\'+5.q+\'</0>\')})});',33,33,'span|find|class|topictype|this|topic_type|replaceWith|contains|strong|VIEW_TOPIC_STICKY|function|Post|Anunt|VIEW_TOPIC_GLOBAL|global|Sondaj|ul|forumbg|topiclist|bg_none|each|VIEW_TOPIC_POLL|it|title|container|before|VIEW_TOPIC_LOCKED|topic|locked|It|icon|style|VIEW_TOPIC_ANNOUNCEMENT'.split('|'),0,{}));

Step 2) CSS Edits



Cod:
span.topictype {
    display: inline-block;
    margin: 1px 4px 1px 0;
    padding: 2px 5px;
    background: #027cb8;
    color: #ffffff;
    /* Some CSS3 goodness */
    border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    text-shadow: 0 1px 0 #005884;
    /* Optional: Gradient background. Uncomment below to enable */
    /*
    border: 1px solid #0077b2;
    background: -moz-linear-gradient(top,  #11a0e7 3%, #0077b2 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(3%,#11a0e7), color-stop(100%,#0077b2));
    background: -webkit-linear-gradient(top,  #11a0e7 3%,#0077b2 100%);
    background: -o-linear-gradient(top,  #11a0e7 3%,#0077b2 100%);
    background: -ms-linear-gradient(top,  #11a0e7 3%,#0077b2 100%);
    background: linear-gradient(to bottom,  #11a0e7 3%,#0077b2 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#11a0e7', endColorstr='#0077b2',GradientType=0 );
    */
}


Sus
mr.franta OnlineOffline
avatar
fondator
Respect : 100%
Mesaje : 3979
Inscris : 18/06/2011

biggri Re: Pretty topic type in viewforum

Mesaj Scris de mr.franta la data de Sam Feb 08, 2014 11:39 pm

Frumos si elegant staark


Sus
Vezi profilul utilizatorului Vizualizeaza profilul

    Acum este: Mar Noi 13, 2018 11:55 pm