[phpBB 3.0.x] Créer une bulle de message
- Dakin Quelia
- Webmaster
- Messages : 565
- Enregistré le : ven. 27 nov. 2009 05:47
- Localisation : Belgique
- Contact :
[phpBB 3.0.x] Créer une bulle de message
» Créer une bulle de message
A l'aide de cette documentation, vous allez pouvoir donner un certain look à vos messages. Style bande dessinée.
Avant de suivre la documentation, je vous recommande de faire une sauvegarde de vos fichiers.
Sommaire:
A l'aide de cette documentation, vous allez pouvoir donner un certain look à vos messages. Style bande dessinée.
Avant de suivre la documentation, je vous recommande de faire une sauvegarde de vos fichiers.
Sommaire:
- Dakin Quelia
- Webmaster
- Messages : 565
- Enregistré le : ven. 27 nov. 2009 05:47
- Localisation : Belgique
- Contact :
Modifications CSS
» Modifications CSS
Ouvrez le fichier « styles/{VOTRE_THEME}/theme/content.css ».
Cherchez:
Remplacez par:
Cherchez:
Remplacez par:
A la fin du fichier, ajoutez:
Ouvrez le fichier « styles/{VOTRE_THEME}/theme/content.css ».
Cherchez:
Code : Tout sélectionner
.postbody {
padding: 0;
line-height: 1.48em;
color: #333333;
width: 76%;
float: left;
clear: both;
}
Code : Tout sélectionner
.postbody {
padding: 0;
line-height: 1.48em;
color: #333333;
width: 78%;
float: right;
clear: both;
}
Code : Tout sélectionner
.postprofile {
/* Also see tweaks.css */
margin: 5px 0 10px 0;
min-height: 80px;
color: #666666;
border-left: 1px solid #FFFFFF;
width: 22%;
float: right;
display: inline;
}
Code : Tout sélectionner
.postprofile {
/* Also see tweaks.css */
margin: 5px 0 10px 0;
margin-left: -5px !important;
min-height: 80px;
color: #666666;
width: 18%;
float: left;
display: inline;
}
Code : Tout sélectionner
/* New style of postbody */
.bubble-global {
width: 100%;
}
.bubble-middle div.content {
padding: 15px 15px 15px 0;
}
.bubble-content {
padding-top: 15px;
}
.bubble-top {
height: 34px;
background: url("{T_THEME_PATH}/images/bubble/bubble-top.png") no-repeat;
margin: 4px -12px 0 0;
padding: 10px 30px 0 25px;
z-index: 70;
}
.bubble-middle {
height: auto;
background: url("{T_THEME_PATH}/images/bubble/bubble-middle.png") repeat-y;
margin: -10px -12px 0 15px;
padding: 10px;
color: #001b28;
z-index: 50;
}
.bubble-bottom {
height: 5px;
background: url("{T_THEME_PATH}/images/bubble/bubble-bottom.png") no-repeat;
margin-left: 15px;
margin-right: -12px;
margin-bottom: 4px;
}
- Dakin Quelia
- Webmaster
- Messages : 565
- Enregistré le : ven. 27 nov. 2009 05:47
- Localisation : Belgique
- Contact :
Modifications templates
» Modifications des templates
Ouvrez le fichier le fichier template « styles/{VOTRE_THEME}/template/viewtopic_body.html ».
Cherchez:
Avant, ajoutez:
Cherchez:
Après, ajoutez:
Cherchez:
Remplacez par:
Cherchez:
Après ajoutez:
Ouvrez le fichier le fichier template « styles/{VOTRE_THEME}/template/viewtopic_body.html ».
Cherchez:
Code : Tout sélectionner
<!-- IF postrow.S_IGNORE_POST -->
<div class="ignore">{postrow.L_IGNORE_POST}</div>
<!-- ELSE -->
Code : Tout sélectionner
<div class="bubble-global">
<div class="bubble-top">
Code : Tout sélectionner
<!-- IF postrow.S_POST_UNAPPROVED or postrow.S_POST_REPORTED -->
<p class="rules">
<!-- IF postrow.S_POST_UNAPPROVED -->{UNAPPROVED_IMG} <a href="{postrow.U_MCP_APPROVE}"><strong>{L_POST_UNAPPROVED}</strong></a><br /><!-- ENDIF -->
<!-- IF postrow.S_POST_REPORTED -->{REPORTED_IMG} <a href="{postrow.U_MCP_REPORT}"><strong>{L_POST_REPORTED}</strong></a><!-- ENDIF -->
</p>
<!-- ENDIF -->
Code : Tout sélectionner
</div>
<div class="bubble-middle">
Code : Tout sélectionner
<div class="content">{postrow.MESSAGE}</div>
Code : Tout sélectionner
<div class="content bubble-content">{postrow.MESSAGE}</div>
Code : Tout sélectionner
<!-- IF postrow.SIGNATURE --><div id="sig{postrow.POST_ID}" class="signature">{postrow.SIGNATURE}</div><!-- ENDIF -->
<!-- ENDIF -->
Code : Tout sélectionner
</div>
<div class="bubble-bottom"></div>
</div>
- Dakin Quelia
- Webmaster
- Messages : 565
- Enregistré le : ven. 27 nov. 2009 05:47
- Localisation : Belgique
- Contact :
Qui est en ligne
Utilisateurs parcourant ce forum : Aucun utilisateur enregistré et 30 invités