Page 1 sur 2 • 1, 2
[Aide Codage] Question concernant un problème avec le tuto Post'it
Mar 13 Aoû 2019 - 12:48
Question concernant un problème avec un tuto
Bonjour
Je rencontre un désagrément avec le tuto Post'it des adminis, rien de très grave par contre.
J'ai installé un post'it sur mon forum, le problème est que le javascript fait disparaître la toolbar sur l'index.
Comment remédier à cela pour pouvoir utiliser cette astuce sans perdre la toolbar sur l'index ?
Merci à vous
- PêpêcheMascotte
- Messages : 4428
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mar 13 Aoû 2019 - 14:12
Coucou
Je suis allée faire le test sur mon forum de test et je n'ai pas de conflit. Tu n'aurais pas un autre js ou de la CSS qui viendrait cacher la toolbar ? Le forum dont il s'agit est celui dans ton profil ?
Tu peux me montrer la CSS de ton forum ?
Je suis allée faire le test sur mon forum de test et je n'ai pas de conflit. Tu n'aurais pas un autre js ou de la CSS qui viendrait cacher la toolbar ? Le forum dont il s'agit est celui dans ton profil ?
Tu peux me montrer la CSS de ton forum ?
- PêpêcheMascotte
- Messages : 4428
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 9:26
Coucou =)
tu peux poster ici tous les js appelés sur l'index de ton forum ? Je vais essayer de tout faire exactement comme toi sur mon forum de test pour voir ce qui pourrait poser problème
tu peux poster ici tous les js appelés sur l'index de ton forum ? Je vais essayer de tout faire exactement comme toi sur mon forum de test pour voir ce qui pourrait poser problème
- PêpêcheMascotte
- Messages : 4428
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 9:45
C'est vraiment bizarre...
J'ai aussi récupéré ce js :
https://poly.forumactif.com/99320.js
En me disant qu'il faisait peut etre planté quelque chose, mais non :/ J'ai même récupéré la CSS de ton forum pour bien tester
Ta toolbar est mise en position "fixed" ?
Je n'arrive pas à reproduire le souci sur mon forum de test :/
Tu peux voir par toi-même ici :
http://form-tamb-raleuses.forumactif.com/
avec ces accès :
EDIT :
Idéalement, il faudrait que je puisse voir le souci sur ton forum, mais ça veut dire avoir des accès "admin" :/ tu penses que ça serait possible ?
J'ai aussi récupéré ce js :
https://poly.forumactif.com/99320.js
En me disant qu'il faisait peut etre planté quelque chose, mais non :/ J'ai même récupéré la CSS de ton forum pour bien tester
Ta toolbar est mise en position "fixed" ?
Je n'arrive pas à reproduire le souci sur mon forum de test :/
Tu peux voir par toi-même ici :
http://form-tamb-raleuses.forumactif.com/
avec ces accès :
• Login : formation_admin
• Mdp : mdp_formation_admin
EDIT :
Idéalement, il faudrait que je puisse voir le souci sur ton forum, mais ça veut dire avoir des accès "admin" :/ tu penses que ça serait possible ?
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 10:09
Je n'ai pas ce script dans ma liste pourtant
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 10:12
CamilleHau a écrit:
Je n'ai pas ce script dans ma liste pourtant
OK vu
Ce script est placé sur toutes les pages
- Spoiler:
- PêpêcheMascotte
- Messages : 4428
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 10:18
tu fais les modifs sur un forum de test ou sur ton vrai forum ?
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 10:34
Je fais ces modifs sur mon forum, je n'ai pas de forum de test
Voici mon CSS
Voici mon CSS
- Spoiler:
- Code:
/*==== DÉBUT TOOLBAR FA ====*/
#fa_search #fa_textarea:focus, #fa_search #fa_textarea, #fa_search #fa_textarea
{
text-indent: 30px !important;
width: 28px!important;
height: 24px;
padding: 0px;
border: 0px;
margin-top: 1px!important;
border-radius: 5px;
line-height: 22px;
cursor:pointer;transition:1s;
background:#369ffc;
}
#fa_search #fa_textarea:focus, #fa_search #fa_textarea:hover, #fa_search:hover #fa_textarea
{
text-indent: 30px !important;
width: 350px!important;
height: 24px;
padding: 0px;
border: 0px;
margin-top: 1px!important;
border-radius: 5px;
line-height: 22px;
cursor:pointer;transition:1s;
background:#fff;
}
/*==== FIN TOOLBAR FA ====*/
#fa_hide { display:none !important } /* Afficher Masquer la toolbar */
#fa_share {display: none !important;} /* Masquer les liens sociaux */
#fa_toolbar #fa_right #notif_list li .contentText a {color: #69c!important;}
#fa_toolbar #fa_right #notif_list li{color: #85C17E;}
/* Masquer connexion & s'enregistrer sur la toolbar */
#fa_right a[href$="login"],
#fa_right a[href$="register"] {
display: none!important;
}
/*==== FIN TOOLBAR ====*/
/*==== DÉBUT NAVBAR ====*/
.is-sticky#headerbar-top
{
background-color: #d7dee5;
box-shadow: 0 0 3px rgba(0,0,0,0.9);
height: 35px;
left: 0;
padding: 6px!important;
right: 0;
top: 0;
z-index: 1000!important;
}
.navbar img {vertical-align: text-top;}
/* police navbar en gras */
.navbar a
{
font-weight: bold;
font-size: 13px;
text-transform: uppercase;/*texte en majuscule*/
}
.navbar a:hover {font-style: italic;background-color: initial;color: #BA55D3;} /*texte en italique au survol*/
#headerbar-top.is-sticky {background-color: #ADAFB0;background: #adafb0 url("https://i.servimg.com/u/f40/19/99/61/05/noize-11.png")!important;}
a[href="/faq"] {display:none;}
a[href="/calendar"] {display:none;}
a[href="/viewonline"] {display:none;}
a[href="/gallery/index.htm"] {display:none;}
/* configuration et couleurs */
a.mainmenu[href="/"] { font-size:0 }
a.mainmenu[href="/"]:after {
content:"Accueil";
font-size:13px;
color: #C43947;
text-transform: uppercase;
letter-spacing: 1px;
font-family: 'Saira Stencil One';
font-weight: 600;
}
a.mainmenu[href="/faq"] { font-size:0 }
a.mainmenu[href="/faq"]:after {
content:"FAQ";
font-size:13px;
color: #689D71;
text-transform: uppercase;
letter-spacing: 1px;
font-family: 'Saira Stencil One';
font-weight: 600;
}
a.mainmenu[href="/search"] { font-size:0 }
a.mainmenu[href="/search"]:after {
content:"Rechercher";
font-size:13px;
color: #1f437d;
text-transform: uppercase;
letter-spacing: 1px;
font-family: 'Saira Stencil One';
font-weight: 600;
}
a.mainmenu[href="/memberlist"] { font-size:0 }
a.mainmenu[href="/memberlist"]:after {
content:"Membres";
font-size:13px;
color: #1f437d;
text-transform: uppercase;
letter-spacing: 1px;
font-family: 'Saira Stencil One';
font-weight: 600;
}
a.mainmenu[href="/groups"] { font-size:0 }
a.mainmenu[href="/groups"]:after {
content:"groupes";
font-size:13px;
color: #1f437d;
text-transform: uppercase;
letter-spacing: 1px;
font-family: 'Saira Stencil One';
font-weight: 600;
}
a.mainmenu[href="/profile?mode=editprofile"] { font-size:0 }
a.mainmenu[href="/profile?mode=editprofile"]:after {
content:"Profil";
font-size:13px;
color: #1f437d;
text-transform: uppercase;
letter-spacing: 1px;
font-family: 'Saira Stencil One';
font-weight: 600;
}
a.mainmenu.M14_colorMp[href="/privmsg?folder=inbox"]:after{color:orange!important;}
a.mainmenu[href="/privmsg?folder=inbox"] { font-size:0 }
a.mainmenu[href="/privmsg?folder=inbox"]:after {
content:"Messagerie";
font-size:13px;
color: #1f437d;
text-transform: uppercase;
letter-spacing: 1px;
font-family: 'Saira Stencil One';
font-weight: 600;
}
a.mainmenu[href="/login?logout"] { font-size:0 }
a.mainmenu[href="/login?logout"]:after {
content:"Déconnexion";
font-size:13px;
color: #fffd75;
text-transform: uppercase;
letter-spacing: 1px;
font-family: 'Saira Stencil One';
font-weight: 600;
}
a.mainmenu[href="/register"] { font-size:0 }
a.mainmenu[href="/register"]:after {
content:"Nous rejoindre";
font-size:13px;
color: #1f437d;
border-bottom: 1px #C43947 dotted;
text-transform: uppercase;
letter-spacing: 1px;
font-family: 'Saira Stencil One';
font-weight: 600;
}
a.mainmenu[href*="tid"] { font-size:0 }
a.mainmenu[href*="tid"]:after {
content:"Déconnexion";
font-size:13px;
color: #fffd75;
text-transform: uppercase;
letter-spacing: 1px;
font-family: 'Saira Stencil One';
font-weight: 600;
}
a.mainmenu[href="/login"] { font-size:0 }
a.mainmenu[href="/login"]:after {
content:"Connexion";
font-size:13px;
color: #fffd75;
text-transform: uppercase;
letter-spacing: 1px;
font-family: 'Saira Stencil One';
font-weight: 600;
}
/*==== FIN NAVBAR ====*/
body {text-align: justify;}
#site-title {font-family: 'Saira Stencil One';font-size:}
.user_login_form {
margin-top: 18px;
margin-bottom: 18px;
}
/*==== DÉBUT POST-IT ADMINS ====*/
body{
position:relative;
}
.displayNone{
display:none !important;
}
#post-it-admin{
position:absolute;
padding:10px;
right:10px;
top:150px;
background: rgba(241, 234, 223, 0.7); /* Green background with 70% opacity */
border:#9c9577 1px solid;
width:200px;
}
/*==== FIN POST-IT ADMINS ====*/
/*==== DÉBUT ACTUALITÉS POLY ====*/
.panel
{
background-color: transparent;
border-radius: 3px;
box-shadow: 0 1px 6px transparent;
color: #666161;
margin-bottom: 24px;
overflow: hidden;
padding: 18px 18px 0;
position: relative;
}
.introduction.panel .h3
{
background: url(https://2img.net/s/t/21/36/22/i_back_title.png);
border-bottom: 2px solid #fff;
color: #666666!important;
margin: 0;
padding: 11px;
}
.h3, h3, h2, h4, h
{
border-color: #f0e9d8;
border-style: solid;
border-width: 0 0 1px;
color: #444;
font-family: 'Saira Stencil One';
font-size: 1.6rem;
font-weight: 400;
letter-spacing: .3px;
margin-bottom: 12px;
padding-bottom: 3px;
}
.h3
{
border-bottom: 2px solid #e67466;
color: #666;
font-size: 16px;
font-weight: bold;
line-height: 1.2;
margin-bottom: 2px;
}
#stats-contenus-forum .h3
{
background: url(https://2img.net/s/t/21/36/22/i_back_title.png);
border-bottom: 2px solid #fff;
color: #e67466!important;
margin: 0;
padding: 18px;
}
.introduction.panel .mes-txt ul
{
list-style: none;
margin: auto;
padding: 2px;
width: 96%;
}
.introduction.panel .mes-txt
{
padding: 18px 18px 0;
}
.flex > div#last_subject
{
width: 49%;
}
.flex
{
display: flex;
}
.introduction.panel .mes-txt ul.news li
{
border-left: 2px solid #DBC8A4;
margin-bottom: 1.2%;
padding-left: 2%;
font-size: 1.2rem;
}
.panel div.mes-txt, .panel p
{
font-size: 1.3rem;
margin-bottom: 18px;
}
.introduction.panel .mes-txt ul.news li:first-child
{
border-left: 2px solid #e67466;
}
.titre-bloc
{
border-bottom: 2px solid transparent;
color: #c8ad7f;
font-size: 16px;
font-weight: bold;
line-height: 1.2;
width: 900px;
margin-bottom: 0px;
}
/*==== FIN ACTUALITÉS POLY ====*/
/*==== TITRE DU QEEL ====*/
.titre_principal
{
background: #c8ad7f;
font-family: 'Saira Stencil One';
color: #eee;
font-size: 20px;
line-height: 150%;
text-align: left;
margin-bottom: 12px;
padding: 10px 10px;
}
.block-footer
{
background-color: #f0f0f0;
border-color: rgba(0,0,0,0.05);
border-radius: 0 0 3px 3px;
border-style: solid;
border-width: 1px 0 0;
margin-top: 28px;
/*margin: 18px -18px -18px;*/
padding: 12px 18px;
}
.block
{
background-image: url(https://2img.net/s/t/21/36/22/i_back_title.png); /*https://i.servimg.com/u/f94/20/01/34/25/poly11.jpg*/
background-repeat: no-repeat, repeat; /*pour éviter la répétition du bg*/
/*background-position: right bottom, left top;*/
background-size: cover;
background: rgba(241, 234, 223, 0.5) /* Green background with 50% opacity */
}
.image {
opacity: 0.3;
}
img {
opacity: 0.8;
filter: alpha(opacity=50); /* For IE8 and earlier */
}
img:hover {
opacity: 1.0;
filter: alpha(opacity=100); /* For IE8 and earlier */
}
/*==== FIN TITRE DU QEEL ====*/
/*==== DÉBUT QEEL - Infobulle dernier inscrit ====*/
/*** On cache l'infobulle au départ ***/
#last-user #ib-last-user{
display: none;
}
/*** On indique le lien vers le profil du dernier utilisateur comme élement de référence ***/
#last-user > strong{
position: relative;
}
/*** Au survol du pseudo, on affiche l'infobulle ***/
#last-user a:hover + #ib-last-user,
#last-user #ib-last-user:hover{
background: #F2EACB; /* Couleurs de fond */
border: #dbc8a4 1px solid; /* Les bordures de l'infobulle */
border-radius: 5px; /* Coins arrondis */
box-sizing: border-box;
box-shadow: 0 1px 6px rgba(219, 200, 164 ,0.6); /* Ombrage */
cursor: pointer;
display: block;
height: 120px; /* La hauteur de l'infobulle */
padding: 6px;
position: absolute;
right: -10px; /* Position de l'infobulle par rapport au bord droit du lien */
text-align: center;
top: -10px; /* Position de l'infobulle par rapport au bord haut du lien */
}
/*** On fixe des dimensions pour l'image afin qu'elle ne dépasse pas
En général, c'est la hauteur qui est la plus grande. On l'impose de la même taille que celle de l'infobulle. La largeur s'adaptera. ***/
#last-user #ib-last-user img{
display: block;
height: 100%;
width: auto;
}
/* On fait en sorte que l'infobulle ne soit pas coupée */
.statistics{
overflow: visible;
}
.statistics .wrap:after{
clear: both;
content: " ";
display: block;
}
/*==== FIN QEEL - Infobulle dernier inscrit ====*/
/*==== AJOUT À LA LISTE D'AMIS ====*/
#profile-advanced-add
{
margin-right: 4px;
padding: 8px 0;
text-align: right;
}
#login_popup_buttons .button2, #profile-advanced-add a[href^="/profile?friend"]
{
background: #8B5;
border-color: #693;
text-align: center;
width: 182px;
}
#profile-advanced-add a[href^="/profile?foe"]
{
background: #E53;
border-color: #C31;
text-align: center;
width: 182px;
}
#profile-advanced-add a, a.button1, a.button2, button.button2, input.button, input.button1, input.button2
{
background: #39C;
border: none;
border-bottom: 2px solid #17A;
border-radius: 3px;
color: #FFF!important;
display: inline-block;
font-size: 11px;
font-weight: 700;
line-height: normal!important;
margin: 2px;
padding: 6px 9px!important;
transition: 300ms;
}
/*==== FIN AJOUT À LA LISTE D'AMIS ====*/
/*==== DÉBUT AFFICHADE D'UN TOPIC ====*/
.polyposthead
{
background-color: #c8ad7f;
border-color: display:none;
box-shadow: 5px 10px 8px #888888;
}
.postprofile-avatar
{
margin-bottom: 12px;
}
.postprofile-avatar img
{
border: none;
border-radius: 120px;
box-shadow: 0 5px 5px rgba(0,0,0,0.3), 0 0 5px rgba(0,0,0,0.3);
height: 100px;
width: 100px;
}
/*==== FIN AFFICHADE D'UN TOPIC ====*/
/*==== DÉBUT SÉLECTEUR DE CONTENU ====*/
.selectCode { float:right; text-transform: uppercase; cursor:pointer; }
div.cont_code { clear: right; }
/*==== FIN SÉLECTEUR DE CONTENU ====*/
/*==== DÉBUT HEADER ====*/
.headerbar {
background-image: url("https://i.servimg.com/u/f94/20/01/34/25/poly-c10.jpg");
background-attachment: ;
margin-left: auto;
margin-right: auto;
width: 100%;
background-position: center;
background-repeat: no-repeat;
box-shadow: 5px 10px 8px #888888;
}
/*==== FIN HEADER ====*/
/*==== DÉBUT LIENS HAUT ET BAS DE FORUM ====*/
.topliens {
background-color: #b5b8ba;
border-radius: 5px;
clear: both;
font-weight: 400;
display: block;
list-style: none;
padding: 12px 16px 12px 16px;
}
.botliens {
background-color: #b5b8ba;
border-radius: 5px;
clear: both;
font-weight: 500;
display: block;
list-style: none;
padding: 12px 16px 12px 16px;
}
/*==== FIN LIENS HAUT ET BAS DE FORUM ====*/
/*==== DÉBUT AFFICHAGE HEADER CATÉGORIES ET LISTE DES SUJETS ====*/
.affichageforum {
background-color: #c8ad7f;
border-radius: 0 3px 3px 0!important;
bottom: 0;
left: 0;
position: absolute;
top: 0;
width: 1.2%;
}
.affichagetopic {
background-color: ;
font-family: 'Saira Stencil One';
text-transform: uppercase;
letter-spacing: 2px;
}
.forabg.hidden{background-color:#ab8f60;} /*changement de couleur si catégories rétractées*/
/*==== FIN AFFICHAGE HEADER CATÉGORIES ET LISTE DES SUJETS ====*/
/*==== DÉBUT FOOTER ====*/
#page-footer {background-color: #aab1b5;}
.footerbar-system a, .footerbar-user a {color: #eee;}
.icon-home {display: none;}
.footerbar-system, .footerbar-system a {color: #a3a0a0;} /* Liens du footer copyright */
/*==== FIN FOOTER ====*/
/*==== DÉBUT ICÔNE FONTAWESOME À L'ÉDITEUR ====*/
a.sceditor-button div{background-image:none;}
/*BOUTON GRAS*/
a.sceditor-button.sceditor-button-bold:after
{
content: "\f032";
font-size:16px;
font-family:FontAwesome;
color:#202121!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON ITALIC*/
a.sceditor-button.sceditor-button-italic:after
{
content: "\f033";
font-size:16px;
font-family:FontAwesome;
color:#202121!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON SOULIGNER*/
a.sceditor-button.sceditor-button-underline:after
{
content: "\f0cd";
font-size:16px;
font-family:FontAwesome;
color:#202121!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON BARRE*/
a.sceditor-button.sceditor-button-strike:after
{
content: "\f0cc";
font-size:16px;
font-family:FontAwesome;
color:#202121!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON ALIGNER A GAUCHE*/
a.sceditor-button.sceditor-button-left:after
{
content: "\f036";
font-size:16px;
font-family:FontAwesome;
color:#202121!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON CENTRER*/
a.sceditor-button.sceditor-button-center:after
{
content: "\f037";
font-size:16px;
font-family:FontAwesome;
color:#202121!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON ALIGNER A DROITE*/
a.sceditor-button.sceditor-button-right:after
{
content: "\f038";
font-size:16px;
font-family:FontAwesome;
color:#202121!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON JUSTIFIER*/
a.sceditor-button.sceditor-button-justify:after
{
content: "\f039";
font-size:16px;
font-family:FontAwesome;
color:#202121!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON LISTE*/
a.sceditor-button.sceditor-button-bulletlist:after
{
content: "\f0ca";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON LISTE ORDONNEE*/
a.sceditor-button.sceditor-button-orderedlist:after
{
content: "\f0cb";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON INSERER UNE LIGNE*/
a.sceditor-button.sceditor-button-horizontalrule:after
{
content: "\f068";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON CITER*/
a.sceditor-button.sceditor-button-quote:after
{
content: "\f10D";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON CODE*/
a.sceditor-button.sceditor-button-code:after
{
content: "\f121";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON SPOILER*/
a.sceditor-button.sceditor-button-faspoiler:after
{
content: "\f066";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON CACHE*/
a.sceditor-button.sceditor-button-fahide:after
{
content: "\f070";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON INSERER UN TABLEAU*/
a.sceditor-button.sceditor-button-table:after
{
content: "\f0ce";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON HEBERGER UNE IMAGE*/
a.sceditor-button.sceditor-button-servimg:after
{
content: "\f01c";
font-size:16px;
font-family:FontAwesome;
color:#202121!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON INSERER UNE IMAGE*/
a.sceditor-button.sceditor-button-image:after
{
content: "\f03e";
font-size:16px;
font-family:FontAwesome;
color:#202121!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON INSERER UN LIEN*/
a.sceditor-button.sceditor-button-link:after
{
content: "\f0C1";
font-size:16px;
font-family:FontAwesome;
color:#202121!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON INSERER UNE VIDEO DAILYMOTION*/
a.sceditor-button.sceditor-button-dailymotion:after
{
content: "\f03d";
font-size:16px;
font-family:FontAwesome;
color:#202121!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON INSERER UNE VIDEO YOUTUBE*/
a.sceditor-button.sceditor-button-youtube:after
{
content: "\f166";
font-size:16px;
font-family:FontAwesome;
color:#202121!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON INSERER UN FLASH*/
a.sceditor-button.sceditor-button-flash:after
{
content: "\f0e7";
font-size:16px;
font-family:FontAwesome;
color:#202121!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON FORMAT DES TITRES*/
a.sceditor-button.sceditor-button-headers:after
{
content: "\f1dc";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON TAILLE POLICE*/
a.sceditor-button.sceditor-button-size:after
{
content: "\f031";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON COULEUR POLICE*/
a.sceditor-button.sceditor-button-color:after
{
content: "\f1fb";
font-size:16px;
font-family:FontAwesome;
color:#eb7b1a!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON POLICE*/
a.sceditor-button.sceditor-button-font:after
{
content: "\f15d";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON SUPPRIMER FORMATAGE DU TEXTE*/
a.sceditor-button.sceditor-button-removeformat:after
{
content: "\f016";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON SUPPRIMER FORMATAGE DU TEXTE*/
a.sceditor-button.sceditor-button-removeformat.disabled:after
{
content: "\f1c3";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
opacity:0.6;
}
/*BOUTON PLUS OU MOINS DE BOUTONS*/
a.sceditor-button.sceditor-button-more:after
{
content: "\f065";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON INDICE*/
a.sceditor-button.sceditor-button-subscript:after
{
content: "\f12c";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON EXPOSANT*/
a.sceditor-button.sceditor-button-superscript:after
{
content: "\f12B";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON DEFILEMENT HORIZONTAL*/
a.sceditor-button.sceditor-button-fascroll:after
{
content: "\f060";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON DEFILEMENT VERTICAL*/
a.sceditor-button.sceditor-button-faupdown:after
{
content: "\f062";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON DEFILEMENT ALEATOIRE*/
a.sceditor-button.sceditor-button-farand:after
{
content: "\f0b2";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON DATE*/
a.sceditor-button.sceditor-button-date:after
{
content: "\f073";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON SMILEYS*/
a.sceditor-button.sceditor-button-emoticon:after
{
content: "\f118";
font-size:16px;
font-family:FontAwesome;
color:#f5da14!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON HEURE ACTUELLE*/
a.sceditor-button.sceditor-button-time:after
{
content: "\f017";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON INSERER DU TEXTE SANS FORMATAGE*/
a.sceditor-button.sceditor-button-pastetext:after
{
content: "\f0f6";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON INSERER DU TEXTE SANS FORMATAGE DESACTIVE*/
a.sceditor-button.sceditor-button-pastetext.disabled:after
{
content: "\f1c3";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
opacity:0.6;
}
/*BOUTON BASCULER DE MODE D EDITION WYSIWYG*/
a.sceditor-button.sceditor-button-source:not(.hover):after
{
content: "\f11c";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*BOUTON BASCULER DE MODE D EDITION HTML*/
a.sceditor-button.sceditor-button-source:after
{
content: "\f0f6";
font-size:16px;
font-family:FontAwesome;
color:#20aec8!important;
top: -8px;
position: relative;
font-weight: normal!important;
}
/*==== FIN ICÔNE FONTAWESOME À L'ÉDITEUR ====*/
- PêpêcheMascotte
- Messages : 4428
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 10:42
Bah écoute, j'ai beau tout copié, tout essayé, je n'arrive pas à reproduire le bug dont tu parles.
Sans le voir, je ne pourrais pas t'aider plus malheureusement :/ Le js de Mäven dans le topic n'impacte pas du tout la toolbar, idem pour la CSS qu'elle fournit.
J'ai vu que tu avais réactivé le js du post-it sur ton forum, le navigateur indique une erreur, mais je n'ai pas pu regardé plus en détail, tu l'avais re-désactivé
Tu saurais le remettre un peu que je puisse observer ça plus en détail ?
Sans le voir, je ne pourrais pas t'aider plus malheureusement :/ Le js de Mäven dans le topic n'impacte pas du tout la toolbar, idem pour la CSS qu'elle fournit.
J'ai vu que tu avais réactivé le js du post-it sur ton forum, le navigateur indique une erreur, mais je n'ai pas pu regardé plus en détail, tu l'avais re-désactivé
Tu saurais le remettre un peu que je puisse observer ça plus en détail ?
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 10:46
Il est de nouveau actif
J'y pense. Initialement ce forum était en version punbb, est-ce que le fait d'avoir changé de version pour une modernbb peut avoir une incidence ?
J'y pense. Initialement ce forum était en version punbb, est-ce que le fait d'avoir changé de version pour une modernbb peut avoir une incidence ?
- PêpêcheMascotte
- Messages : 4428
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 10:50
Non puisque tu l'as bien changé dans le js
dans le js, essaie de remplacer ça :
Il manque un ; après le break. Du coup, il plante
EDIT : hum... Cela dit, je ne suis pas sure que ça change grand chose :/ Là je suis à court d'idée :/
dans le js, essaie de remplacer ça :
- Code:
default:
lien = $('#page-footer .copyright-body').find('a').html();
cheminMsg = ".postbody .content > div";
break
- Code:
default:
lien = $('#page-footer .copyright-body').find('a').html();
cheminMsg = ".postbody .content > div";
break;
Il manque un ; après le break. Du coup, il plante
EDIT : hum... Cela dit, je ne suis pas sure que ça change grand chose :/ Là je suis à court d'idée :/
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 10:53
Non voici le script tel qu'il est sur le forum
- Spoiler:
- Code:
// Lorsque la page est chargée
$(function(){
// on indique la version du forum
// attention de bien respecter les écritures ci-dessous
// invision, phpbb2, phpbb3, punbb, modernbb, awesomebb
var versionForum = 'modernbb';
// On déclare une variable qui va récupérer les liens du footer
// et une variable qui contient le chemin d'un message
// Ainsi que la variable contenant le lien du message contenant le post-it
var lien, cheminMsg;
var lienMsg = "/t38-post-it-poly";
switch (versionForum) {
/* phpbb2 */
case 'phpbb2':
lien = $('#page-footer').find('a').html();
cheminMsg = ".postbody > div";
break;
/* phpbb3 */
case 'phpbb3':
lien = $('#page-footer .copyright').find('a').html();
cheminMsg = ".postbody .content > div";
break;
/* punBB */
case 'punbb':
lien = $('#pun-foot .center').find('a').html();
cheminMsg = ".postbody .entry-content > div";
break;
/* Invision */
case 'invision':
lien = $('#ipbwrapper .center').find('a').html();
cheminMsg = ".postbody .post-entry > div";
break;
/* Awesome BB */
case 'awesomebb':
lien = $('#page-footer .copyright').find('a').html();
cheminMsg = ".post-body .post-content";
break;
/* modernbb */
default:
lien = $('#page-footer .copyright-body').find('a').html();
cheminMsg = ".postbody .content > div";
break;
}
// Si le lien "panneau d'aministration" est présent (= si c'est un admin qui est connecté)
// On ajoute retire la classe displayNone si elle existe au bloc contenant du post-it
// Et on rempli notre bloc, qui n'est plus caché, avec le contenu du message ciblé
if(lien.indexOf('Panneau d\'administration') > -1){
$('#post-it-admin').toggleClass('displayNone');
setTimeout(function(){
$('#post-it-admin').load(''+ lienMsg + '#p70 ' + cheminMsg +'');
},
100
);
}
});
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 10:55
Miettes a écrit: hum... Cela dit, je ne suis pas sure que ça change grand chose :/ Là je suis à court d'idée :/
Tu sais ce n'est pas bien grave non plus, au moins on aura essayé
Merci à toi
- PêpêcheMascotte
- Messages : 4428
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 10:56
J'aime pas trop les échecs mais là j'avoue que je ne comprends vraiment pas pourquoi ça coince :/
ça le fait uniquement pour tes membres ou même pour les admins ?
ça le fait uniquement pour tes membres ou même pour les admins ?
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 10:57
Je vais demander aux membres
- PêpêcheMascotte
- Messages : 4428
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 11:05
Ok ^^
Tu penses que je peux me créer un compte que tu vas supprimer ensuite ? Pour vraiment voir le problème "en directe" (en bidouillant le code, je devais pouvoir reproduire le souci comme si j'étais admin )
je n'ai pas beosin d'accès particulier, juste de voir le forum avec la toolbar visible
Tu penses que je peux me créer un compte que tu vas supprimer ensuite ? Pour vraiment voir le problème "en directe" (en bidouillant le code, je devais pouvoir reproduire le souci comme si j'étais admin )
je n'ai pas beosin d'accès particulier, juste de voir le forum avec la toolbar visible
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 11:16
Oui tu peux
- PêpêcheMascotte
- Messages : 4428
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 11:25
du coup, je me suis créée un compte
On va essayer de modifier le JS. Essaie de le remplacer par ça :
On va essayer de modifier le JS. Essaie de le remplacer par ça :
- Code:
$(function() {
var versionForum = 'modernbb';
var lien, cheminMsg;
var lienMsg = "/t38-post-it-poly";
switch (versionForum) {
case 'phpbb2':
lien = $('#page-footer').find('a').html();
cheminMsg = ".postbody > div";
break;
case 'phpbb3':
lien = $('#page-footer .copyright').find('a').html();
cheminMsg = ".postbody .content > div";
break;
case 'punbb':
lien = $('#pun-foot .center').find('a').html();
cheminMsg = ".postbody .entry-content > div";
break;
case 'invision':
lien = $('#ipbwrapper .center').find('a').html();
cheminMsg = ".postbody .post-entry > div";
break;
case 'awesomebb':
lien = $('#page-footer .copyright').find('a').html();
cheminMsg = ".post-body .post-content";
break;
default:
lien = $('#page-footer .copyright-body').find('a').html();
cheminMsg = ".postbody .content > div";
break;
}
if(lien.length){
if (lien.indexOf('Panneau d\'administration') > -1) {
$('#post-it-admin').toggleClass('displayNone');
setTimeout(function() {
$('#post-it-admin').load('' + lienMsg + '#p70 ' + cheminMsg + '')
}, 100)
}
}
});
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 11:30
C'est fait
- PêpêcheMascotte
- Messages : 4428
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 11:39
le test ne va pas. On va remplacer ça :
- Code:
if (lien.length) {
- Code:
if (lien != null) {
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 11:44
- PêpêcheMascotte
- Messages : 4428
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 11:50
C'est le comportement normal du coup
Tout est bon ? le souci est réglé ?
(je vais aller modifier le tuto pour ajouter ce test )
Tout est bon ? le souci est réglé ?
(je vais aller modifier le tuto pour ajouter ce test )
Re: [Aide Codage] Question concernant un problème avec le tuto Post'it
Mer 14 Aoû 2019 - 11:54
Merci de ton aide
Ai-je levé un lièvre avec ce post ?
Ai-je levé un lièvre avec ce post ?
Page 1 sur 2 • 1, 2
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum
|
|