Archives FluxBB.fr

Les archives de FluxBB.fr

Vous n'êtes pas identifié(e).

#1 24-09-2011 12:03:24

max2610
Membre

Une image différente pour chaque forum

Bonjour,
Je souhaiterai affiche une image différente pour chaque forum, comme le montre cette image :

mini_277807Capture.png

Pour cela j'ai cherché un peu sur le forum et j'ai trouvé un bout de code à mettre dans le css du style :

#idx1 h2 span {
background: transparent url(/img/image_idx1.png) no-repeat 0 0;
padding-left: 25px;
height: 22px;
display: block;
}

Mais ce code ne fonctionne pas hmm.

Existe-t-il un autre code pour faire ça ?

Merci d'avance.

PS : J'ai la version 1.4.7 de Fluxbb.

Dernière modification par max2610 (25-09-2011 10:00:05)

Hors ligne

#2 24-09-2011 20:30:07

Spiky
Membre

Re : Une image différente pour chaque forum

Bonjour,
Ne pas confondre forum et catégorie. (éditer ton topic)

Il faut modifier index.php, créer un dossier pour les images et rajouter un peu de css.
Pour l'exemple j'ai créé un dossier dans le dossier img et je l'ai appelé "icons_forums".
Dans ce dossier, il faut mettre les images avec le numéro de l'id du forum. (si ton forum a l'id1, ton image pour ce forum devra être 1.png)

Chercher :

<th class="tcl" scope="col"><?php echo $lang_common['Forum'] ?></th>

Ajouter avant :

<th class="tc0" scope="col">&nbsp;</th>

Chercher :

<td class="tcl">

Ajouter avant :

<td class="tc0"><img src="./img/icons_forums/<?php echo $cur_forum['fid'] ?>.png" alt="" /></td>

(changer .png par le format que tu souhaites utiliser.)

Puis rajouter dans ta feuille de style :

.pun .blocktable .tc0{
    padding-right: 15px;
    width: 64px;
}

Modifier les valeurs pour ajuster selon tes images.

mini_786562iconforum.jpg

Dernière modification par Spiky (24-09-2011 20:43:10)


I don't play against a team in particular. I play to fight against the idea to lose... Life is beautiful.
Quelque #ID et beaucoup de .CLASS

Hors ligne

#3 25-09-2011 10:57:05

max2610
Membre

Re : Une image différente pour chaque forum

Bonjour,
Merci beaucoup pour l'aide très complète wink.
J'ai juste une question : il y a un problème avec la barre en haut de chaque catégorie :
1316940867.png
Comment remplacer le blanc par du bleu ?
Merci d'avance,
Max

Hors ligne

#4 25-09-2011 15:42:18

Otomatic
Régisseur

Re : Une image différente pour chaque forum

Bonjour,

Modifier la couleur (color) de #punindex .blocktable h2 dans le fichier css.


Ce n'est pas parce que l'erreur se propage qu'elle devient vérité. Gandhi
Sont différents : ça et sa - est et ait - à et a - ce et se - mes et mais ou met - été et était - c'est et ces - ce-si et ceci
La vie sans musique est tout simplement une erreur, une fatigue, un exil. Friedrich Nietzsche

Hors ligne

#5 25-09-2011 16:50:14

max2610
Membre

Re : Une image différente pour chaque forum

Salut,
Je l'ai modifiée mais c'est le texte qui change de couleur hmm.
Voici la partie de style en question :

/* Main Tables
----------------------------------------------------------------*/

.pun .blocktable .box {
    background:#ffffff;
    border-color:#adb4ba;
}

#punindex .blocktable h2, .pun #vf h2 {
    color: #ffffff;
}

#adminconsole fieldset th, #adminconsole fieldset td {
    background: #fff;
    border-color: #dfe6ee;
}

.pun #users1 h2 {
    background: #fff;
}

.pun .blocktable td {
    border-color: #dfe6ee;
}

.pun .blocktable th {
    background: url(iphoneforum_noir/img/h2.jpg) repeat-x  #6D7078;
    border-color: #cad7e1;
    color: #ffffff;
}

.pun .blocktable td.tcl span.stickytext {
    color: #566579;
}

Hors ligne

#6 25-09-2011 17:43:38

Otomatic
Régisseur

Re : Une image différente pour chaque forum

Bonjour,

Le petit coin arrondi en blanc est dû à :

.pun .blocktable .tcl {
    width: auto;
    -moz-border-radius: 10px 0px 0px 0px;
    -webkit-border-top-left-radius: 10px;
    -webkit-border-top-right-radius: 0px;
    -webkit-border-bottom-left-radius: 0px;
    -webkit-border-bottom-right-radius: 0px;
    border-radius: 10px 0px 0px 0px;
}

Je n'ai pas trouvé comment mettre une couleur de fond juste pour le coin supérieur gauche.
En revanche, si tu supprimes la partie css ci-dessus, il n'y a plus de "coin blanc".


Ce n'est pas parce que l'erreur se propage qu'elle devient vérité. Gandhi
Sont différents : ça et sa - est et ait - à et a - ce et se - mes et mais ou met - été et était - c'est et ces - ce-si et ceci
La vie sans musique est tout simplement une erreur, une fatigue, un exil. Friedrich Nietzsche

Hors ligne

#7 25-09-2011 17:47:53

max2610
Membre

Re : Une image différente pour chaque forum

Merci beaucoup Otomatic, c'est désormais redevenu normal smile.

Hors ligne

#8 25-09-2011 17:49:20

Spiky
Membre

Re : Une image différente pour chaque forum

Bonjour,
Il te faut supprimer l'arrondi fait en css3 de la ligne 685 mais uniquement pour l'index, sinon sur les autres pages l'arrondi disparaitra également.

.pun .blocktable .tcl {
    -moz-border-radius: 10px 0 0 0;
    width: auto;
}

et l'appliquer à tc0

et faire d'autre modification css.

Edit: devancé

Dernière modification par Spiky (25-09-2011 17:58:06)


I don't play against a team in particular. I play to fight against the idea to lose... Life is beautiful.
Quelque #ID et beaucoup de .CLASS

Hors ligne

#9 25-09-2011 18:00:53

Otomatic
Régisseur

Re : Une image différente pour chaque forum

Re-Bonjour,

Tu as encore quelques nettoyages à faire pour peaufiner ton forum que je trouve de plus en plus beau smile
Une balise <BR /> à mettre en minuscules.
Plusieurs <li>...</li> sans <ul>...</ul>.
Une balise <b> non fermée.

Pour vérifier tout ça, en ligne ou en local, sans être obligé de passer à chaque fois par le validateur W3C, je conseille fortement d'utiliser l'extension Firefox HTML Validator.


Ce n'est pas parce que l'erreur se propage qu'elle devient vérité. Gandhi
Sont différents : ça et sa - est et ait - à et a - ce et se - mes et mais ou met - été et était - c'est et ces - ce-si et ceci
La vie sans musique est tout simplement une erreur, une fatigue, un exil. Friedrich Nietzsche

Hors ligne

#10 25-09-2011 18:37:06

max2610
Membre

Re : Une image différente pour chaque forum

Merci pour le compliment wink. J'en profite aussi pour remercier Spiky pour le thème smile.
J'ai corrigé quelques balises mais beaucoup d’erreurs proviennent de la mod Colorize groups de Daris. La liste suivante produit beaucoup d'erreurs :

Legend: Administrateur, Modérateur, Animateur, Partenaire, VIP, Genius, Rédacteur

Sinon la grande majorité des autres erreurs proviennent du fichier extern.php que j'ai inclut en haut du forum pour afficher les dernières news.

Hors ligne

#11 28-09-2011 15:46:08

max2610
Membre

Re : Une image différente pour chaque forum

Salut,
Il me reste 1 erreur !
Il s'agit encore de la mod Colorize groups hmm, voici l'erreur :

Line 529, Column 12: ID "onlinelist" already defined
           

<dl id="onlinelist" class="clearb">

An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

Il y un id en double mais je n'arrive pas à en créer un autre dans le css du style :s.

Hors ligne

#12 28-09-2011 16:49:23

Otomatic
Régisseur

Re : Une image différente pour chaque forum

Bonjour,

Je ne vois plus aucune erreur. happy Bravo ! Ça s' :biere:
C'est le meilleur moyen pour être bien vu par tous les navigateurs de tous les systèmes. C'est aussi un point positif pour le référencement.


Ce n'est pas parce que l'erreur se propage qu'elle devient vérité. Gandhi
Sont différents : ça et sa - est et ait - à et a - ce et se - mes et mais ou met - été et était - c'est et ces - ce-si et ceci
La vie sans musique est tout simplement une erreur, une fatigue, un exil. Friedrich Nietzsche

Hors ligne

#13 28-09-2011 17:02:39

max2610
Membre

Re : Une image différente pour chaque forum

Si pourtant je vois encore 1 petite erreur :
http://validator.w3.org/check?uri=www.i … ne&group=0

Hors ligne

#14 28-09-2011 17:10:14

Otomatic
Régisseur

Re : Une image différente pour chaque forum

Bonjour,

Elle n'y était pas tout à l'heure !

La première id "onlinelist" est générée par le code originel de FluxBB.
La deuxième (Celle en trop) est générée par la mod Colorize Group. Simplement à remplacer, par exemple par "onlinetodaylist" dans le code de la mod, comme cela est fait ici-même.


Ce n'est pas parce que l'erreur se propage qu'elle devient vérité. Gandhi
Sont différents : ça et sa - est et ait - à et a - ce et se - mes et mais ou met - été et était - c'est et ces - ce-si et ceci
La vie sans musique est tout simplement une erreur, une fatigue, un exil. Friedrich Nietzsche

Hors ligne

#15 28-09-2011 19:18:55

max2610
Membre

Re : Une image différente pour chaque forum

Mais quand je le renomme j'ai cela :
http://www.images.iphoneforum.fr/uploads/1317230184.png

Hors ligne

#16 28-09-2011 19:26:26

Otomatic
Régisseur

Re : Une image différente pour chaque forum

Bonjour,

Il faut alors modifier le fichier css pour y ajouter la mise en page de onlinetodaylist :

#brdstats #onlinelist, #brdstats #onlinetodaylist {
    border-top-style: dotted;
    border-top-width: 1px;
    clear: both;
}

#brdstats #onlinelist dt, #brdstats #onlinelist dd, #brdstats #onlinetodaylist dt, #brdstats #onlinetodaylist dd {
    display: inline;
}

Ce n'est pas parce que l'erreur se propage qu'elle devient vérité. Gandhi
Sont différents : ça et sa - est et ait - à et a - ce et se - mes et mais ou met - été et était - c'est et ces - ce-si et ceci
La vie sans musique est tout simplement une erreur, une fatigue, un exil. Friedrich Nietzsche

Hors ligne

#17 28-09-2011 20:08:36

max2610
Membre

Re : Une image différente pour chaque forum

D'accord merci beaucoup smile. Mon forum est désormais 'propre' au niveau du code wink.
Comme tu l'as indiqué plus haut, ça ce :biere: tongue.
J'ai maintenant ajouté avec plaisir le logo W3C sur le bas du forum ^^.

Hors ligne

#18 02-10-2011 13:34:54

x3dt
Membre

Re : Une image différente pour chaque forum

Reste plus qua faire une version mobile smile

Hors ligne

#19 02-10-2011 16:08:11

max2610
Membre

Re : Une image différente pour chaque forum

Oui ^^ mais malheureusement je n'ai pas les compétences hmm.

Hors ligne

#20 04-10-2011 03:53:13

x3dt
Membre

Re : Une image différente pour chaque forum

Changer dans header.php

<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_user['style'].'.css' ?>" />

pour

<?php
function detect_mobile()
{
    $_SERVER['ALL_HTTP'] = isset($_SERVER['ALL_HTTP']) ? $_SERVER['ALL_HTTP'] : '';
 
    $mobile_browser = '0';
 
    if(preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|iphone|ipad|ipod|android|xoom)/i', strtolower($_SERVER['HTTP_USER_AGENT'])))
        $mobile_browser++;
 
    if((isset($_SERVER['HTTP_ACCEPT'])) and (strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml') !== false))
        $mobile_browser++;
 
    if(isset($_SERVER['HTTP_X_WAP_PROFILE']))
        $mobile_browser++;
 
    if(isset($_SERVER['HTTP_PROFILE']))
        $mobile_browser++;
 
    $mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,4));
    $mobile_agents = array(
                        'w3c ','acs-','alav','alca','amoi','audi','avan','benq','bird','blac',
                        'blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','inno',
                        'ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-',
                        'maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-',
                        'newt','noki','oper','palm','pana','pant','phil','play','port','prox',
                        'qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar',
                        'sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-',
                        'tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp',
                        'wapr','webc','winw','winw','xda','xda-'
                        );
 
    if(in_array($mobile_ua, $mobile_agents))
        $mobile_browser++;
 
    if(strpos(strtolower($_SERVER['ALL_HTTP']), 'operamini') !== false)
        $mobile_browser++;
 
    // Pre-final check to reset everything if the user is on Windows
    if(strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'windows') !== false)
        $mobile_browser=0;
 
    // But WP7 is also Windows, with a slightly different characteristic
    if(strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'windows phone') !== false)
        $mobile_browser++;
 
    if($mobile_browser>0)
        return true;
    else
        return false;
}
$mobile = detect_mobile();
if($mobile === true) {
?>
<link rel="stylesheet" href="style/mobile/mobile.css" type="text/css"/>
<meta name = "Viewport" content = "width=device-width,user-scalable=no" />
<?php } else { ?>
<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_user['style'].'.css' ?>" />
<?php } ?>

et le fichier mobile.css a mettre dans /style/mobile/

/*
Author: x3dt
Mobile Version: 3.0 beta - 4 Sept. 2011
Thank to : iWebKit css 5.04 by Christopher Plieger (for v3.x)
Thank to : elv13 for debug v1 for FluxBB 1.4 (for v2.x)
*/

.pun table, .pun div, .pun form, .pun p, .pun h1, .pun h2, .pun h3, .pun h4, .pun h5, .pun pre, .pun blockquote, .pun ul, .pun ol, .pun li, .pun dl, .pun dt, .pun dd, .pun th, .pun td, .pun fieldset, .pun img, .pun abbr, .pun cite {
margin : 0;
padding : 0;
border : 0;
}
.pun ul, .pun ol {
list-style : none;
}
.pun .clearer, .pun .nosize {
height : 0;
width : 0;
line-height : 0;
font-size : 0;
overflow : hidden;
}
.pun .clearer, .pun .clearb {
clear : both;
}
.pun .nosize {
position : absolute;
left : -9999em;
text-indent : -9999em;
width : 0;
}
* html .inbox, * html .inform, * html .pun, * html .tclcon, * html .codebox {
height : 1px;
}
.pun, .pun .inbox, .pun .inform, .pun .tclcon, .pun .codebox {
min-height : 1px;
}
#brdfooter h2, #brdstats h2, #brdstats .conl dt, #brdstats .conr dt, #modcontrols dt, #searchlinks dt, div.postright h3, span.closedtext, .pun .required strong span {
position : absolute;
display : block;
overflow : hidden;
width : 0;
left : -9999em;
text-indent : -9999em;
}
.pun {
font : 68.75%/1.4545em Verdana, Helvetica, Arial, sans-serif;
}
.pun table, .pun td, .pun optgroup, .pun textarea, .pun samp {
font-size : 1em;
font-family : verdana, helvetica, arial, sans-serif;
}
.pun pre, .pun code {
font-size : 1.182em;
font-family : consolas, monaco, "bitstream vera sans mono", "courier new", courier, monospace;
}
.pun pre code {
font-size : 1em;
}
.pun strong {
font-weight : bold;
}
.pun em {
font-style : italic;
}
.pun p, .pun ul, .pun ol, .pun dl {
font-size : 1em;
padding : 3px 0;
}
.pun h2 {
font-size : 1em;
font-weight : normal;
padding : 4px 7px;
}
.pun h3 {
font-size : 1.091em;
padding : 3px 0;
}
.pun table p, .pun table h3 {
padding : 0;
}
.pun span.warntext, .pun p.warntext {
font-weight : bold;
}
.pun .usercontent p, .pun .postmsg p {
padding : 0.75em 0;
}
.pun .usercontent ul, .pun .postmsg ul {
padding : 0.75em 1em 0.75em 2.5em;
list-style : disc;
}
.pun .usercontent ol, .pun .postmsg ol {
padding : 0.75em 1em 0.75em 2.5em;
list-style : decimal;
}
.pun .usercontent ol.alpha, .pun .postmsg ol.alpha {
list-style : lower-alpha;
}
.pun .usercontent li ol, .pun .usercontent li ul, .pun .postmsg li ol, .pun .postmsg li ul {
padding : 0.25em 1em 0.75em 2.5em;
}
.pun .usercontent li p, .pun .postmsg li p {
padding : 0;
}
.pun .usercontent h1 {
font-size : 1.4em;
font-weight : bold;
padding : 0.75em 0 0 0;
}
.pun .usercontent h2 {
font-size : 1.2em;
font-weight : bold;
padding : 0.75em 0 0 0;
}
.pun .usercontent h3 {
font-size : 1.1em;
font-weight : bold;
padding : 0.75em 0 0 0;
}
.pun .usercontent h4, .pun .usercontent h5, .pun .usercontent h6 {
font-size : 1em;
font-weight : bold;
padding : 0.75em 0 0 0;
}
.pun .quotebox cite {
	font-weight : bold;
	font-style : normal;
	padding : 0.75em 0.75em 0 0.75em;
}
.pun .quotebox {
		color: #0088CC;
		}
.pun span.bbu {
text-decoration : underline;
}
.pun span.bbs, .pun del {
text-decoration : line-through;
}
.pun .postmsg ins, #punhelp samp ins {
text-decoration : none;
}
.pun div.postmsg h5, #punhelp h5 {
font-size : 1.1em;
font-weight : bold;
padding : 0.75em 0 0 0;
}
.pun {
margin : 12px 20px;
}
#punredirect, #punmaint, #puninstall, #pundb_update {
margin : 50px 20% 12px 20%;
}
#brdheader {
margin : 0 0 12px 0;
}
#announce, #brdstats {
margin : 12px 0 12px 0;
}
.pun .blocktable, .pun .block, .pun .blockform, .pun .block2col, #postreview {
margin-bottom : 12px;
}
#punindex .blocktable, .pun .blockpost {
margin-bottom : 6px;
}
#postreview .blockpost {
margin-bottom : -1px;
}
.pun .block2col .blockform, .pun .block2col .block {
margin-bottom : 0;
}
.pun .linkst, .pun .linksb {
margin-top : -12px;
}
.pun .postlinksb {
margin-top : -6px;
}
.pun .box {
border-style : solid;
border-width : 1px;
}
#brdheader .box {
border-top-width : 4px;
}
.pun .block .inbox, .pun .blockmenu .inbox {
padding : 3px 6px;
}
#brdmenu li {
display : inline;
margin-right : 12px;
}
#brdmenu a:link, #brdmenu a:visited {
text-decoration : none;
}
#brdmenu a:hover, #brdmenu a:active {
text-decoration : underline;
}
#brdwelcome .conr {
float : right;
text-align : right;
font-size : 0.76em;
}
.pun .linkst {
padding : 8px 6px 3px 6px;
}
.pun .linksb, .pun .postlinksb {
padding : 3px 6px 8px 6px;
}
.pun .crumbs {
clear : both;
width : 100%;
overflow : hidden;
}
.pun .crumbs li {
display : inline;
white-space : nowrap;
font-weight : bold;
}
.pun .pagelink {
float : left;
white-space : nowrap;
}
.pun .postlink {
font-weight : bold;
white-space : nowrap;
}
.pun .postlink, .pun .modbuttons {
float : right;
text-align : right;
}
.pun .modbuttons {
padding : 1px 0;
white-space : nowrap;
}
.pun .postlink a:link, .pun .postlink a:visited {
text-decoration : none;
}
.pun .postlink a:hover, .pun .postlink a:active {
text-decoration : underline;
}
#brdfooter .conl {
float : left;
}
#brdfooter .conr {
float : right;
text-align : right;
}
#brdfooter #modcontrols {
border-bottom-style : solid;
border-bottom-width : 1px;
text-align : center;
}
#brdfooter #modcontrols dd {
display : inline;
margin : 0 6px;
}
.pun table {
width : 100%;
border-collapse : collapse;
border-spacing : 0;
empty-cells : show;
}
.pun .blocktable table {
table-layout : fixed;
}
.pun td, .pun th {
padding : 4px 6px;

text-align : left;
font-weight : normal;
}
.pun td {
border-style : solid none none solid;
border-width : 1px;
}
.pun .tcl {
border-left : 0;
width : auto;
}
.pun .tcmod {
width : 10%;
text-align : right;
padding : 4px 0;
overflow : hidden;
}
.tcl {
width : 50%;
}
.pun .tcr {
width : 35%;
}
.pun .tcl h3 {
font-size : 0.98em;
font-weight : bold;
}
.pun .tcl h3 span.newtext {
font-size : 0.917em;
}
.pun .tcl span.newtext, .pun .tcl span.pagestext {
white-space : nowrap;
font-weight : normal;
}
.pun td span.byuser {
white-space : nowrap;
}
.pun .tcl p {
padding : 5px 0 0 0;
}
#punsearch #vf .tc2 {
width : 18%;
text-align : left;
padding : 4px 6px;
}
#users1 .tcr {
width : 25%;
}
#users1 .tc2 {
width : 25%;
text-align : left;
padding : 4px 6px;
}
#debug .tcl {
width : 10%;
}
#debug .tcr {
width : 90%;
white-space : normal;
}
#punindex .tcr .byuser {
display : block;
}
.pun .blocktable .tclcon {
padding : 0 11px 0 12px;
overflow : hidden;
height : 1%;
min-height : 1px;
position : relative;
}
.pun .blocktable .tclcon div {
width : 100%;
overflow : hidden;
}
.pun .iposted .ipost {
position : absolute;
left : 0;
font-weight : bold;
width : 8px;
padding-left : 4px;
text-align : center;
top : 0;
}
.pun .blockform form, .pun .fakeform {
padding : 20px 20px 15px 20px;
}
.pun .forminfo {
margin-bottom : 12px;
padding : 9px 10px;
border-style : solid;
border-width : 1px;
}
.pun .forminfo h3 {
font-weight : bold;
}
.pun .inform {
padding-bottom : 12px;
}
.pun fieldset {
padding : 0 12px 0 12px;
border-style : solid;
border-width : 1px;
}
.pun legend {
padding : 0 6px;
}
.pun .infldset {
padding : 9px 0 12px 0;
}
.pun label {
display : block;
padding : 3px 0;
}
.pun label.conl {
float : left;
overflow : visible;
margin-right : 10px;
}
.pun select {
padding-top : 1px;
padding-bottom : 1px;
}
.pun fieldset .rbox br {
display : none;
}
.pun fieldset .rbox label {
padding : 3px 0 3px 25px;
position : relative;
vertical-align : middle;
}
.pun fieldset .rbox input {
margin : 0 9px 0 -25px;
padding : 0;
width : 16px;
position : relative;
vertical-align : middle;
}
.pun .txtarea {
width : 75%;
}
.pun .txtarea textarea, .pun input.longinput {
width : 100%;
}
.pun .bblinks {
padding-bottom : 10px;
padding-left : 4px;
}
.pun .bblinks li {
display : inline;
padding-right : 20px;
}
.pun .blockform .buttons {
padding-left : 12px;
}
.pun .blockform .buttons input {
margin-right : 8px;
}
#posterror ul {
list-style : square;
padding : 3px 0 3px 24px;
}
.pun .deletemsg {
border-style : solid;
border-width : 1px;
padding : 6px 15px;
}
.pun p.actions span {
margin-right : 12px;
}
.pun .block2col {
padding-bottom : 1px;
}
.pun .block2col .blockform, .pun .block2col .block {
margin-left : 17em;
}
.pun .blockmenu li {
padding : 3px 0;
font-weight : bold;
}
.pun .blockmenu a:link, .pun .blockmenu a:visited {
text-decoration : none;
}
.pun .blockmenu a:hover, .pun .blockmenu a:active {
text-decoration : underline;
}
#viewprofile dl {
float : left;
width : 100%;
overflow : hidden;
}
#viewprofile dd {
margin-left : 14em;
padding : 3px;
}
#viewprofile dt {
float : left;
width : 13em;
margin : 3px 0;
}
#profileavatar img {
float : right;
margin-left : 1em;
}
.pun .blockpost h2 a:link, .pun .blockpost h2 a:visited {
text-decoration : none;
}
.pun .blockpost h2 a:hover, .pun .blockpost h2 a:active {
text-decoration : underline;
}
.pun .blockpost h2 .conr {
float : right;
text-align : right;
}
#punsearch .blockpost h2 span {
white-space : nowrap;
}
.pun .blockpost .box {
overflow : hidden;
}
.pun .postleft, .pun .postfootleft {
float : left;
width : 18em;
position : relative;
overflow : hidden;
}
.pun .postleft dl {
padding : 0.75em 6px;
}
.pun .postleft .usercontacts, .pun .postleft .icon {
margin-top : 6px;
}
.pun .postleft .postavatar, .pun .postleft .usertitle {
margin-bottom : 6px;
display : block;
}
.pun .blockpost dt {
font-size : 1.091em;
font-weight : bold;
}
.pun .blockpost dt a:link, .pun .blockpost dt a:visited {
text-decoration : none;
}
.pun .blockpost dt a:hover, .pun .blockpost dt a:active {
text-decoration : underline;
}
.pun .postright, .pun .postfootright {
border-left-width : 18em;
border-left-style : solid;
}
#postpreview .postright {
border-left : 0;
}
.pun .postright {
padding : 0 6px;
}
.pun .postfootright, .pun .multidelete {
text-align : right;
padding-right: 10px;
}
.pun .postmsg {
width : 98%;
overflow : hidden;
padding-bottom : 6px;
}
.pun .postfootright ul, .pun .postfootright div, .pun .postfootright p, .pun .postfootleft p {
padding : 6px 6px 6px 6px;
}
.pun .postfootright li {
display : inline;
margin-left : 12px;
}
.pun .postfootright a:link, .pun .postfootright a:visited {
text-decoration : none;
}
.pun .postfootright a:hover, .pun .postfootright a:active {
text-decoration : underline;
}
.pun .codebox {
border-style : solid;
border-width : 1px;
margin : 0.75em 1em;
padding : 0;
}
.pun .quotebox {
border-style : solid;
border-width : 1px;
margin : 0.75em 1em;
padding : 0 0.75em;
}
.pun .quotebox cite {
display : block;
padding : 0.75em 0 0 0;
}
.pun .quotebox blockquote {
width : 100%;
overflow : hidden;
}
.pun .codebox pre {
overflow : auto;
width : 100%;
}
* html .pun .codebox pre {
padding-bottom : 10px;
}
* + html .pun .codebox pre {
padding-bottom : 10px;
}
.pun .codebox pre code {
display : block;
padding : 0.75em;
}
.pun .codebox pre.vscroll {
height : 32em;
overflow : auto;
}
.pun .postmsg img {
vertical-align : bottom;
}
.pun .postsignature hr {
margin-left : 0;
width : 75%;
text-align : left;
height : 1px;

}
.pun .postmsg .postimg img {
max-width : 98%;
vertical-align : middle;
}
.pun .postmsg .postimg a:link img, .pun .postmsg .postimg a:visited img {
border-style : solid;
border-width : 2px;
}
.pun .blockpost label {
vertical-align : bottom;
display : inline-block;
}
.pun .blockpost label * {
vertical-align : middle;
margin : 0;
padding : 0;
}
#punhelp h2 {
margin-top : 12px;
}
#punhelp div.box {
padding : 10px;
}
.pun {
color : #d4d4d4;
}
#postpreview, .pun .forminfo, #brdfooter #modcontrols, #adminconsole fieldset td, .pun .blockmenu .box, #adstats dd, .pun .quotebox {
background-color : #424242;
}
.pun h2, #brdmenu {
background-color : #565656;
color : #d4d4d4;
}
.pun legend {
color : #ffffff;
}
.pun .blockmenu li.isactive a, #posterror li strong {
color : #d4d4d4;
}
.pun .usercontent * {
background : transparent;
color : #d4d4d4;
}

.pun .postright, .pun .postfootright {
border-left-color : transparent;
}
.pun .blockpost h2 span.conr {
color : #a19e96;
}
.pun .box {
border-color : #565656;
}
.pun td, #brdfooter #modcontrols {
border-color : #565656;
}
.pun th, .pun fieldset {
border-color : #484848;
}
#adminconsole td, #adminconsole th {
border-color : #383838;
}
.pun .quotebox, .pun .codebox, .pun .forminfo, .pun .blockpost label, .pun .deletemsg {
border-color : #565656;
}
.pun a:link, .pun a:visited {
color : #a7a9df;
}
.pun a:hover, .pun a:active, .pun a:focus {
color : #ffffff;
}
.pun .postmsg .postimg a:link img, .pun .postmsg .postimg a:visited img {
border-color : #a7a9df;
}
.pun .postmsg .postimg a:hover img, .pun .postmsg .postimg a:active img, .pun .postmsg .postimg a:focus img {
border-color : #ffee40;
}
.pun h2 a:link, .pun h2 a:visited, #brdmenu a:link, #brdmenu a:visited {
color : #d4d4d4;
}
.pun h2 a:hover, .pun h2 a:active, #brdmenu a:hover, #brdmenu a:active {
color : #d4d4d4;
}
.pun .postreport a:link, .pun .postreport a:visited, .pun .iclosed td.tcl a:link, .pun .iclosed td.tcl a:visited {
color : #888;
}
.pun .postreport a:hover, .pun .postreport a:active, .pun .iclosed td.tcl a:hover, .pun .iclosed td.tcl a:active {
color : #aaa;
}
.pun .maintenancelink a:link, .pun .maintenancelink a:visited {
color : #ff4000;
}
.pun .maintenancelink a:hover, .pun .maintenancelink a:active {
color : #ff5010;
}
td div.tclcon {
margin-left : 1.6em;
}
div.icon {
	float : left;
	display : block;
	width : 30px;
	height : 30px;
	margin-left : 0.1em;
}
DIV.searchposts DIV.icon {
margin-left : 0;
}
TR.iclosed Div.icon {
background-image : url(icon_old.png);
}
Div.icon {
background-image : url(icon_old.png);
}
TR.iredirect Div.icon {
background-image : url(icon_old.png);
}
TR.inew Div.icon, div.inew {
background-image : url(icon_new.png);
}
TR.isticky DIV.icon {
background-image : url(icon_old.png);
}
.pun .isticky.inew .icon {
background-image : url(icon_new.png);
}
body {
 position:relative;
  margin:0;
  -webkit-text-size-adjust:none;
  min-height:416px;
  font-family:helvetica,sans-serif;
  -webkit-background-size:0.438em 100%;
  background:-webkit-gradient(linear,left top,right top,from(#c5ccd4),color-stop(71%,#c5ccd4),color-stop(72%,#cbd2d8),to(#cbd2d8));
    background: -moz-repeating-linear-gradient(left , #cbd2d8 71%, #c5ccd4 72%); /* Version FF bugger .. pas ressemblant a mon gout ..*/
  -webkit-touch-callout:none;
  text-color: black;
  }

@media screen and (max-width:320px)
	{ 
#brdtitle, #brdtitle h1 { height:44px; }
#brdtitle h1 {
  line-height:44px;
  font-size:16pt;
  			}
#punindex {
min-width:480px;
}
  ; }

@media screen and (max-width:321px) 
	{ 
#brdtitle, #brdtitle h1 { height:32px; }
#brdtitle h1 { 
  line-height:32px;
  font-size:13pt; 
  }
#brdtitle img { 
display: none; 
  }

#punindex {
min-width:320px;
}
; }
.pun .block2col .blockform, .pun .block2col .block {
margin-left : 0;
}
.pun textarea, .pun input, .pun select {
	font-size : 0.8em;
	padding : 5px 9px;
	position : relative;
	overflow : hidden;
	padding : 0;
	margin-top : 5px;
	font-size : medium;
	border : 1px solid #878787;
	background-color : transparent;
	max-height : 200px;
	color : black;
}
.pun select {
max-width : 235px;
}
#brdtitle, .pun th {
position:relative;
  left:0;
  top:0;
  width:auto;
background:-webkit-gradient(linear,0% 0%,0% 100%,from(rgba(133,133,133,0.7)),color-stop(3%,rgba(99,99,99,0.7)),color-stop(50%,rgba(32,32,32,0.7)),color-stop(51%,rgba(0,0,0,0.7)),color-stop(97%,rgba(0,0,0,0.7)),to(rgba(38,38,38,0.7)));
background: -moz-linear-gradient(top, rgba(133,133,133,0.7) 0%, rgba(99,99,99,0.7) 3%,rgba(32,32,32,0.7) 50%,rgba(0,0,0,0.7) 51%,rgba(0,0,0,0.7) 97%);
  }
#brdtitle h1, #brdtitle h1 a {
	position : absolute;
	font-weight : bold;
	top : 0;
	left : 0;
	right : 0;
	padding : 0 10px;
	text-align : center;
	text-overflow:ellipsis;
	white-space : nowrap;
	overflow : hidden;
	color : #fff;
	text-shadow:rgba(0,0,0,0.6) 0 -1px 0;
}
#idx1 h2 span {
position : relative;
right : 20px;
left : 9px;
color : #4c4c4c;
  text-shadow:#FFF 0 1px 0;
padding : 1px 0 3px 8px;
background-color : transparent;
}
.pun h2 {
background-color : transparent;
color : #4c4c4c;
  text-shadow:#FFF 0 1px 0;
}
.pun .box, .pun td {
border : 0;
background-color : transparent;
color : black;
}
.pun th {
color : white;
}
.pun .postfootright ul, .pun .postfootright div, .pun .postfootright p, .pun .postfootleft p {
padding : 0 5px;
}
.pun {
margin : 0;
color : black;
}
#brdstats, div.pagepost, #quickpost .box, #brdfooter #modcontrols, #postform .box, .blockform .box, #punadmin #brdmain .block {
  -webkit-border-radius:8px;
  background-color:#fff;
  border:1px solid #878787;
  overflow:hidden;
  padding:0;
  position:relative;
  display:block;
  height:auto;
  width:auto;
  margin:3px 5px 7px;
  list-style:none;
  color: black;
}
#brdmain .tcr a {
	font-size : 0.77em;
	}
#adminconsole fieldset td, #adstats dd {
background-color : transparent;
}
div.pagepost {
padding-left : 5px;
padding-right : 5px;
}
#brdmenu li, .pun .blockmenu li {
margin-right : 2px;
padding-left : 2px;
line-height : 20px;
}
.pun h1 {
background-repeat : no-repeat;
height : 0;
}
.pun #brdtitle p {
height : 20px;
}
.pun #brdmenu {
background-image : none;
padding : 0;
}
div.linkst .conl, div.linksb .conl, div.postlinksb .conl {
width : 6em;
}

p.modbuttons {
width : 24em;
}
p.modbuttons input {
width : auto;
padding : 0 4px 0 4px;
}
.linkst ul, .linksb ul, .postlinksb ul {
margin-left : 0;
clear : left;
}

div.postleft, div.postfootleft {
width : 100px;
float : left;
clear : both;
}
div.postleft {
padding-bottom : 5px;
max-width : 50px;
width : 50px;
}
div.postright, div.postfootright {
border-left-width : 0;
border-left-style : solid;
}
div.postright {
padding-top : 5px;
padding-bottom : 5px;
}
div.block2col div.blockform, div.block2col div.block, #viewprofile dd {
margin-left : 0;
}
.pun .blockmenu {
float : none;
width : 100%;
}
.blockform .rbox input {
width : 25px;
}
.pubgoog, .box div.conr, .pun td p, .tc2, .tc3, .tcl td, #brdstats .conr, #brdwelcome .conl, div.postleft dd, div.postfootleft, .forumdesc, #brddesc, .bblinks, .pun #brdmenu #navindex, .pun #brdmenu #navuserlist, .pun #brdmenu #navsearch, .multidelete strong, #brdtitle .logo {
display : none;
}
#brdstats .conl, #brdfooter .conl {
width : 25em;
}
div.blockmenu, #viewprofile dt {
width : 100%;
}
div.txtarea, .blockform input {
width : 95%;
}
.postleft img {
max-width : 40px;
max-height : 40px;
}
.pun td p {
display : none;
}
.postleft img {
max-width : 40px;
max-height : 40px;
}
div.postright {
border-left-width : 50px !important ;
border-bottom-width : 0 !important ;
}
.postleft dt{
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  height:100px;
  width:100px;
  text-align:right;
}
.postsignature img {
max-height : 70px;
}
.postsignature {
min-height : 0;
height : 75px;
}
.postfootleft, .postfootright {
max-height : 20px;
display : inline;
}
.postfootright {
width : auto;
}
.usertitle {
display : none !important ;
color : red;
max-height : 0;
}
.blockpost h2 span {
	display : inline;
	background : transparent;
}
.blockpost h2 {
	background:-webkit-gradient(linear,0% 0%,0% 100%,from(rgba(133,133,133,0.7)),color-stop(3%,rgba(99,99,99,0.7)),color-stop(50%,rgba(32,32,32,0.7)),color-stop(51%,rgba(0,0,0,0.7)),color-stop(97%,rgba(0,0,0,0.7)),to(rgba(38,38,38,0.7)));
  }
.blockmenu .box .inbox ul li {
display : inline;
}

#profile .blockform {
float : none;
margin-left : 0 !important ;

margin-top : 20px;
}
input {
	width: 100%; 
	display:inline-block;
	}
.pun legend {
color : #0077cc;
}
.postmsg {
color : black;
}
.pun a:link, .pun a:visited {
color : #0088cc;
text-decoration : none;
}
.pun a:hover, .pun a:active, .pun a:focus {
color : #0066cc;
}
.pun .postmsg .postimg a:link img, .pun .postmsg .postimg a:visited img {
border-color : #f6b620;
}
.pun .postmsg .postimg a:hover img, .pun .postmsg .postimg a:active img, .pun .postmsg .postimg a:focus img {
border-color : #ffee40;
}
.pun .postreport a:link, .pun .postreport a:visited, .pun .iclosed td.tcl a:link, .pun .iclosed td.tcl a:visited {
color : #888;
}
.pun .postreport a:hover, .pun .postreport a:active, .pun .iclosed td.tcl a:hover, .pun .iclosed td.tcl a:active {
color : #aaa;
}
.pun .maintenancelink a:link, .pun .maintenancelink a:visited {
color : #ff4000;
}
.pun .maintenancelink a:hover, .pun .maintenancelink a:active {
color : #ff5010;
}
.pun #brdmenu {
text-align : center;
}
.pun .blocktable .tclcon {
padding-left : 3px;
padding-top : 3px;
}
#onlinelist dd, #onlinelist dt {
  display : inline;
}
/* Test boutton style iPhone from http://mwhenry.com/blog/2009/11/shiny-css-only-iphone-buttons/
----------------------------------------------------------------*/
input[type=submit] {
      font-family : "Helvetica Neue", Helvetica, sans-serif;
      font-size : 0.75em;
      font-weight : bold;
      width : auto;
      height : 20px;
      padding : 1px;
      border : 1px solid #282726;
      background : -webkit-gradient( linear, left top, left bottom, from(#e2e2e2), to(#8c8a88), color-stop(0.5, #acadae), color-stop(0.5, #82807e) );
      margin : 0 0 3px 0;
      text-shadow : 0px 1px 0 #cecece;
      -webkit-background-origin : padding-box;
      -webkit-background-clip : border-box;
      -webkit-border-radius : 8px;
				}
input[type=submit]:hover, input[type=submit].cancel,input[type=submit]:active, input[type=submit].cancel:active {
      color: #fff;
      text-shadow : none;
    			}
input[type=submit]:hover, input[type=submit].cancel:hover {
      background: -webkit-gradient( linear, left top, left bottom, from(#aaaee5), to(#10006d), color-stop(0.5, #1F3B97), color-stop(0.5, #081f6f) );
    			}
input[type=submit].cancel {
      background: -webkit-gradient( linear, left top, left bottom, from(#5c5c5b), to(#1e1b16), color-stop(0.2, #1e1b16) );
      margin-top: 6px;
    			}
.pun #brdwelcome .conl span strong {
	display : inline;
	}
/* Test Liste déroulante
----------------------------------------------------------------*/
.inform label select {
	width: 100%;
	display:block;
}

A adapter surement un peu wink

Hors ligne

#21 04-10-2011 18:22:12

max2610
Membre

Re : Une image différente pour chaque forum

Merci beaucoup pour cette astuce que je cherchais depuis longtemps ^^.
Juste une question : Comment faire pour ne pas afficher l'annonce et la légende (administrateur, modérateur...) ?

Hors ligne

#22 04-10-2011 20:10:18

fanf73
Wik-wiki

Re : Une image différente pour chaque forum

Ta demande n'ayant rien à voir avec les images pour chaque forum, merci de créer une nouvelle discussion wink.


Nous ne faisons pas le travail à votre place mais nous prenons le temps de vous montrer le chemin. Merci de lire ce que l'on vous dit et de réfléchir avant de re-demander une explication.

Hors ligne

#23 05-10-2011 01:22:30

x3dt
Membre

Re : Une image différente pour chaque forum

max2610 a écrit :

Merci beaucoup pour cette astuce que je cherchais depuis longtemps ^^.
Juste une question : Comment faire pour ne pas afficher l'annonce et la légende (administrateur, modérateur...) ?

Nice sa marche bien smile
Vais créé un topic pour ma version mobile smile

Dernière modification par x3dt (05-10-2011 01:42:27)

Hors ligne

Pied de page des forums