1. IMPORTANT : Nouvelles mesures de sécurité - 2. Règles pour obtenir de l'aide dans les forums de support - 3. Restrictions des droits pour le groupe "Support suspendu"

Il est obligatoire de respecter les Règles de MyBB.fr : Version abrégée ou Version complète pour obtenir du support sur nos forums.

Les membres ayant un site/forum contrevenant aux règles de MyBB.support seront placés dans le groupe "Support suspendu" et ne bénéficieront plus du support du staff. Nous recommandons aux autres membres d'agir de même. Il ne s'agit pas d'un bannissement, le membre retrouvera son statut "normal" dès que sa situation sera conforme aux règles.

Nouveau : un Wiki en français : plus de détails.
Avant de soumettre votre problème, consultez-le, ainsi que la FAQ, sans oublier le moteur de recherche interne.


Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
[Réglé] Les information dans le header
Mots-clés » information, header
11-09-2011, 14:48, (Modification du message : 11-09-2011, 14:53 par Gérald59.)
#21
RE: Les information dans le header
Tu veux les mettre ou déjà sur ton forum, tu veux qu'il s'affiche ou précisément, fait nous un screen , ensuite on pourra de dire ou mettre le code
(11-09-2011, 14:45)BlueShadowZ a écrit :  bah le template c'est bien : Entete templates -> Header ?
Si oui je le met où ça :
Code :
<!-- Codigo creado por Edson Ordaz -->
var Edson="Creado por Edson Ordaz para mybb-es"
var size="4"
if (document.all||document.getElementById){
document.write('<span id="highlight"><p class="newsbar"><font size="' +size+ '"><b>' + Edson + '</b></font></p></span>')
var storetext=document.getElementById? document.getElementById("highlight") : document.all.highlight
}
else
document.write(Edson)
var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0")
var r=1
var g=1
var b=1
var seq=1
function changetext(){
rainbow="#"+hex[r]+hex[g]+hex[b]
storetext.style.color=rainbow
}
function change(){
if (seq==6){
b--
if (b==0)
seq=1
}
if (seq==5){
r++
if (r==12)
seq=6
}
if (seq==4){
g--
if (g==0)
seq=5
}
if (seq==3){
b++
if (b==12)
seq=4
}
if (seq==2){
r--
if (r==0)
seq=3
}
if (seq==1){
g++
if (g==12)
seq=2
}
changetext()
}
function starteffect(){
if (document.all||document.getElementById)
flash=setInterval("change()",80)
}
starteffect()
</script>
?
Pareil pour ça je met où ? :
Code :
<style type="text/css">
.alert {
    background: #FFF6BF;
    border-top: 2px solid #FFD324;
    border-bottom: 2px solid #FFD324;
    text-align: center;
    margin: 10px auto;
    padding: 5px 20px;
}

.notice {
    background: #ADCBE7;
    border-top: 2px solid #0F5C8E;
    border-bottom: 2px solid #0F5C8E;
    text-align: center;
    margin: 10px auto;
    padding: 5px 20px;
}

.notice2 {
    background: #D6ECA6;
    border-top: 2px solid #8DC93E;
    border-bottom: 2px solid #8DC93E;
    text-align: center;
    margin: 10px auto;
    padding: 5px 20px;
}
</style>

<p class="alert"><strong>Latest News:</strong> <a href="http://blog.mybb.com/2010/08/03/mybb-1-6-released/">MyBB 1.6 Released</a> (August 3, 2010)</p>

<p class="notice2"><strong>MyBB on Twitter:</strong> Follow <a href="http://www.twitter.com/mybbgroup/">@mybbgroup</a> for the latest on MyBB and exclusive content.</p>

<p class="notice"><strong>Are you on the <a href="http://www.mybboard.com/mailinglist.php">MyBB mailing list?</a></strong> - Sign up for notification of new MyBB releases and updates.</p>

C'est deux code différents, une comme MyBB et l'autre elle permet le changement des couleurs du texte, voir mon forum
Regarde mon header ou j'ai mis les deux codes:

Code :
Nouveau Forum crée le 28 Août 2011 en Sécurité Incendie SSIAP et Sûreté.
<script>
<!-- Codigo creado por Edson Ordaz -->
var Edson="Détection Incendie-Alarme Incendie-Réseaux Sprinkleurs-RIA-Extincteurs-Portes Coupe-feu-Désenfumage-Clapets Coupe-Feu-Volets de Désenfumage."
var size="3"
if (document.all||document.getElementById){
document.write('<span id="highlight"><p class="newsbar"><font size="' +size+ '"><b>' + Edson + '</b></font></p></span>')
var storetext=document.getElementById? document.getElementById("highlight") : document.all.highlight
}
else
document.write(Edson)
var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0")
var r=1
var g=1
var b=1
var seq=1
function changetext(){
rainbow="#"+hex[r]+hex[g]+hex[b]
storetext.style.color=rainbow
}
function change(){
if (seq==6){
b--
if (b==0)
seq=1
}
if (seq==5){
r++
if (r==12)
seq=6
}
if (seq==4){
g--
if (g==0)
seq=5
}
if (seq==3){
b++
if (b==12)
seq=4
}
if (seq==2){
r--
if (r==0)
seq=3
}
if (seq==1){
g++
if (g==12)
seq=2
}
changetext()
}
function starteffect(){
if (document.all||document.getElementById)
flash=setInterval("change()",80)
}
starteffect()
</script>
<p class="notice2"><strong>Sécurité-ssiap-sûreté-secourisme:</strong> ICI <a href="http://www.securite-ssiap-surete-secourisme.com/showthread.php?tid=4/">Les règles du forum</a> Administrateur59.</p>

<p class="notice2"><strong>Agent de Sécurité Incendie:</strong> ICI <a href="http://www.securite-ssiap-surete-secourisme.com/showthread.php?tid=47/">Votre Fonction</a> A lire Impérativement.</p>
<a name="top" id="top"></a><div id="container">

               <div id="header">
            <div id="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
            <div id="panel">
                {$welcomeblock}
            </div>
            {$pm_notice}
        </div>
                            
                <div class="menu">
                <ul>
                    <li><a href="{$mybb->settings['homeurl']}">{$mybb->settings['homename']}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/index.php">Forums</a></li>
                    <li><a href="{$mybb->settings['bburl']}/portal.php">Portail</a></li>
                    <li><a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/misc.php?action=help">{$lang->toplinks_help}</a></li>
                                        <td class="tcat1" align="center"> <img src = "{$theme['imgdir']}/meteo.png" alt = "" title = "" class = "vbottom" />
<a href="{$mybb->settings['bburl']}/meteo.php "><strong>Météo</strong></a></td>

                </ul>
            </div>
        <div id="container_inside">
        <div id="content">
            <navigation>
            {$bannedwarning}
            {$bbclosedwarning}
            {$unreadreports}<SCRIPT LANGUAGE="JavaScript">


<!-- Begin
var CurrentMsg = '{$mybb->settings['fmstatus']}';
function update(msg) {
var pad_str="";                          
n = msg.length;
if(n<72) {
pad = (73-n)/2;
for(var i=0; i<pad; i++) {
pad_str+=" ";                        
   }                        
}                          
CurrentMsg = pad_str + msg;                          
document.getElementById("field").value = CurrentMsg;
clearTimeout(timer);                          
timer = setTimeout("idleMsg()",2500);        
}
function MakeArray(n) {                          
this.length=n;                          
for(var i = 1; i<= n; i++) {                                  
this[i] = "";                
}                          
return(this);        
}              
var index = 1;          
var notice_num = 9;                  
var notices = new MakeArray(notice_num);        
notices[1] = "{$mybb->settings['fm1']}";
notices[2] = "{$mybb->settings['fm2']}";
notices[3] = "{$mybb->settings['fm3']}";        
notices[4] = "{$mybb->settings['fm4']}";
notices[5] = "{$mybb->settings['fm5']}";
notices[6] = "{$mybb->settings['fm6']}";
notices[7] = "{$mybb->settings['fm7']}";      
notices[8] = "{$mybb->settings['fm8']}";                    
var timer = setTimeout('idleMsg()',1500);                  
function nochange() {
document.getElementById("field").value = CurrentMsg;
}                  
function idleMsg() {                          
update(notices[index++]);                          
if(index>notice_num) {
index=1;
   }  
}
// End -->                  
</SCRIPT><fieldset><legend>{$mybb->settings['fmtitle']}</legend><CENTER>
<FORM name="messages" onSubmit="return false">
<input type="text" id="field" name="field" size=73 value="{$mybb->settings['fmstatus']}" onFocus="self.status='{$mybb->settings['fmstatus']}'; return true" onChange="nochange()">
</FORM>
</CENTER></fieldset>
            {$pending_joinrequests}
            <br />
<table border="0" width="100%">
<tr>


<td> <FORM method=GET action="http://www.google.fr/search">
<A HREF="http://www.google.fr">
<IMG SRC = "http://www.google.com/logos/Logo_40wht.gif" border = "0" ALT = "Google" align = "absmiddle"> </A>
<INPUT Type=text name=q size=31 maxlength=255 value="">
<INPUT type=hidden name=hl value=fr>
<INPUT TYPE=SUBMIT name=btnG VALUE="Recherche Google">
</form></td>
<td align="right">
<FORM METHOD="GET" action="http://fr.wikipedia.org/wiki/Special:Recherche">
<INPUT TYPE="text" name="search" size="31" maxlength="255" value="">
<INPUT TYPE="hidden" name="hl" value="fr">
<INPUT Type="submit" name="btnW" VALUE="Recherche Wikipédia"> </form>
</td>
</tr>
</table>

<script type="text/javascript" src="http://www.lecalendrier.fr/lecalendrier.fr-datedujour.php"> </script>
<style type="text/css">
.alert {
background: #FFE4C4;
border-top: 2px solid # FFD324;
border-bottom: 2px solid # FFD324;
text-align: center;
margin: auto 5px;
padding: 5px5px;
color: blue;
}

.notice {
background: # FFFFFF;
border-top: 2px solid # FFFFFF;
border-bottom: 2px solid # FFFFFF;
text-align: center;
margin: auto 10px;
padding: 20px 5px;
color: firebrick;
}

.notice2 {
background: # FFFFFF;
border-top: 2px solid # FFFFFF;
border-bottom: 2px solid # FFFFFF;
text-align: center;
margin: auto 10px;
padding: 20px 5px;
color: blue;
}
</style>

<style type="text/css">
.alert {
    background: ##FFF6BF;
    border-top: 2px solid #FFD324;
    border-bottom: 2px solid #FFD324;
    text-align: center;
    margin: 10px auto;
    padding: 5px 20px;
}

.notice {
    background: #ADCBE7;
    border-top: 2px solid #0F5C8E;
    border-bottom: 2px solid #0F5C8E;
    text-align: center;
    margin: 10px auto;
    padding: 5px 20px;
}

.notice2 {
    background: #FFA07A;
    border-top: 2px solid #8DC93E;
    border-bottom: 2px solid #8DC93E;
    text-align: center;
    margin: 10px auto;
    padding: 5px 20px;
}
</style>
<p class="notice2"><strong>Autre Forum de l'Administrateur59:</strong> <a href="http://www.bricolage-systeme-d.com//">Cliquez ICI</a> Tous sur le Bricolage.</p>
<script>
<!-- Codigo creado por Edson Ordaz -->
var Edson="TOUTES LES FORMATIONS COMPLÈTES SUR CE FORUM:  SSIAP 1-2-3 ---SST---HOBO et CQP."
var size="3"
if (document.all||document.getElementById){
document.write('<span id="highlight"><p class="newsbar"><font size="' +size+ '"><b>' + Edson + '</b></font></p></span>')
var storetext=document.getElementById? document.getElementById("highlight") : document.all.highlight
}
else
document.write(Edson)
var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0")
var r=1
var g=1
var b=1
var seq=1
function changetext(){
rainbow="#"+hex[r]+hex[g]+hex[b]
storetext.style.color=rainbow
}
function change(){
if (seq==6){
b--
if (b==0)
seq=1
}
if (seq==5){
r++
if (r==12)
seq=6
}
if (seq==4){
g--
if (g==0)
seq=5
}
if (seq==3){
b++
if (b==12)
seq=4
}
if (seq==2){
r--
if (r==0)
seq=3
}
if (seq==1){
g++
if (g==12)
seq=2
}
changetext()
}
function starteffect(){
if (document.all||document.getElementById)
flash=setInterval("change()",80)
}
starteffect()
</script>

Regarde mon header ou j'ai mis les codes:

Code :
Nouveau Forum crée le 28 Août 2011 en Sécurité Incendie SSIAP et Sûreté.
<script>
<!-- Codigo creado por Edson Ordaz -->
var Edson="Détection Incendie-Alarme Incendie-Réseaux Sprinkleurs-RIA-Extincteurs-Portes Coupe-feu-Désenfumage-Clapets Coupe-Feu-Volets de Désenfumage."
var size="3"
if (document.all||document.getElementById){
document.write('<span id="highlight"><p class="newsbar"><font size="' +size+ '"><b>' + Edson + '</b></font></p></span>')
var storetext=document.getElementById? document.getElementById("highlight") : document.all.highlight
}
else
document.write(Edson)
var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0")
var r=1
var g=1
var b=1
var seq=1
function changetext(){
rainbow="#"+hex[r]+hex[g]+hex[b]
storetext.style.color=rainbow
}
function change(){
if (seq==6){
b--
if (b==0)
seq=1
}
if (seq==5){
r++
if (r==12)
seq=6
}
if (seq==4){
g--
if (g==0)
seq=5
}
if (seq==3){
b++
if (b==12)
seq=4
}
if (seq==2){
r--
if (r==0)
seq=3
}
if (seq==1){
g++
if (g==12)
seq=2
}
changetext()
}
function starteffect(){
if (document.all||document.getElementById)
flash=setInterval("change()",80)
}
starteffect()
</script>
<p class="notice2"><strong>Sécurité-ssiap-sûreté-secourisme:</strong> ICI <a href="http://www.securite-ssiap-surete-secourisme.com/showthread.php?tid=4/">Les règles du forum</a> Administrateur59.</p>

<p class="notice2"><strong>Agent de Sécurité Incendie:</strong> ICI <a href="http://www.securite-ssiap-surete-secourisme.com/showthread.php?tid=47/">Votre Fonction</a> A lire Impérativement.</p>
<a name="top" id="top"></a><div id="container">

               <div id="header">
            <div id="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
            <div id="panel">
                {$welcomeblock}
            </div>
            {$pm_notice}
        </div>
                            
                <div class="menu">
                <ul>
                    <li><a href="{$mybb->settings['homeurl']}">{$mybb->settings['homename']}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/index.php">Forums</a></li>
                    <li><a href="{$mybb->settings['bburl']}/portal.php">Portail</a></li>
                    <li><a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/misc.php?action=help">{$lang->toplinks_help}</a></li>
                                        <td class="tcat1" align="center"> <img src = "{$theme['imgdir']}/meteo.png" alt = "" title = "" class = "vbottom" />
<a href="{$mybb->settings['bburl']}/meteo.php "><strong>Météo</strong></a></td>

                </ul>
            </div>
        <div id="container_inside">
        <div id="content">
            <navigation>
            {$bannedwarning}
            {$bbclosedwarning}
            {$unreadreports}<SCRIPT LANGUAGE="JavaScript">


<!-- Begin
var CurrentMsg = '{$mybb->settings['fmstatus']}';
function update(msg) {
var pad_str="";                          
n = msg.length;
if(n<72) {
pad = (73-n)/2;
for(var i=0; i<pad; i++) {
pad_str+=" ";                        
   }                        
}                          
CurrentMsg = pad_str + msg;                          
document.getElementById("field").value = CurrentMsg;
clearTimeout(timer);                          
timer = setTimeout("idleMsg()",2500);        
}
function MakeArray(n) {                          
this.length=n;                          
for(var i = 1; i<= n; i++) {                                  
this[i] = "";                
}                          
return(this);        
}              
var index = 1;          
var notice_num = 9;                  
var notices = new MakeArray(notice_num);        
notices[1] = "{$mybb->settings['fm1']}";
notices[2] = "{$mybb->settings['fm2']}";
notices[3] = "{$mybb->settings['fm3']}";        
notices[4] = "{$mybb->settings['fm4']}";
notices[5] = "{$mybb->settings['fm5']}";
notices[6] = "{$mybb->settings['fm6']}";
notices[7] = "{$mybb->settings['fm7']}";      
notices[8] = "{$mybb->settings['fm8']}";                    
var timer = setTimeout('idleMsg()',1500);                  
function nochange() {
document.getElementById("field").value = CurrentMsg;
}                  
function idleMsg() {                          
update(notices[index++]);                          
if(index>notice_num) {
index=1;
   }  
}
// End -->                  
</SCRIPT><fieldset><legend>{$mybb->settings['fmtitle']}</legend><CENTER>
<FORM name="messages" onSubmit="return false">
<input type="text" id="field" name="field" size=73 value="{$mybb->settings['fmstatus']}" onFocus="self.status='{$mybb->settings['fmstatus']}'; return true" onChange="nochange()">
</FORM>
</CENTER></fieldset>
            {$pending_joinrequests}
            <br />
<table border="0" width="100%">
<tr>


<td> <FORM method=GET action="http://www.google.fr/search">
<A HREF="http://www.google.fr">
<IMG SRC = "http://www.google.com/logos/Logo_40wht.gif" border = "0" ALT = "Google" align = "absmiddle"> </A>
<INPUT Type=text name=q size=31 maxlength=255 value="">
<INPUT type=hidden name=hl value=fr>
<INPUT TYPE=SUBMIT name=btnG VALUE="Recherche Google">
</form></td>
<td align="right">
<FORM METHOD="GET" action="http://fr.wikipedia.org/wiki/Special:Recherche">
<INPUT TYPE="text" name="search" size="31" maxlength="255" value="">
<INPUT TYPE="hidden" name="hl" value="fr">
<INPUT Type="submit" name="btnW" VALUE="Recherche Wikipédia"> </form>
</td>
</tr>
</table>

<script type="text/javascript" src="http://www.lecalendrier.fr/lecalendrier.fr-datedujour.php"> </script>
<style type="text/css">
.alert {
background: #FFE4C4;
border-top: 2px solid # FFD324;
border-bottom: 2px solid # FFD324;
text-align: center;
margin: auto 5px;
padding: 5px5px;
color: blue;
}

.notice {
background: # FFFFFF;
border-top: 2px solid # FFFFFF;
border-bottom: 2px solid # FFFFFF;
text-align: center;
margin: auto 10px;
padding: 20px 5px;
color: firebrick;
}

.notice2 {
background: # FFFFFF;
border-top: 2px solid # FFFFFF;
border-bottom: 2px solid # FFFFFF;
text-align: center;
margin: auto 10px;
padding: 20px 5px;
color: blue;
}
</style>

<style type="text/css">
.alert {
    background: ##FFF6BF;
    border-top: 2px solid #FFD324;
    border-bottom: 2px solid #FFD324;
    text-align: center;
    margin: 10px auto;
    padding: 5px 20px;
}

.notice {
    background: #ADCBE7;
    border-top: 2px solid #0F5C8E;
    border-bottom: 2px solid #0F5C8E;
    text-align: center;
    margin: 10px auto;
    padding: 5px 20px;
}

.notice2 {
    background: #FFA07A;
    border-top: 2px solid #8DC93E;
    border-bottom: 2px solid #8DC93E;
    text-align: center;
    margin: 10px auto;
    padding: 5px 20px;
}
</style>
<p class="notice2"><strong>Autre Forum de l'Administrateur59:</strong> <a href="http://www.bricolage-systeme-d.com//">Cliquez ICI</a> Tous sur le Bricolage.</p>
<script>
<!-- Codigo creado por Edson Ordaz -->
var Edson="TOUTES LES FORMATIONS COMPLÈTES SUR CE FORUM:  SSIAP 1-2-3 ---SST---HOBO et CQP."
var size="3"
if (document.all||document.getElementById){
document.write('<span id="highlight"><p class="newsbar"><font size="' +size+ '"><b>' + Edson + '</b></font></p></span>')
var storetext=document.getElementById? document.getElementById("highlight") : document.all.highlight
}
else
document.write(Edson)
var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0")
var r=1
var g=1
var b=1
var seq=1
function changetext(){
rainbow="#"+hex[r]+hex[g]+hex[b]
storetext.style.color=rainbow
}
function change(){
if (seq==6){
b--
if (b==0)
seq=1
}
if (seq==5){
r++
if (r==12)
seq=6
}
if (seq==4){
g--
if (g==0)
seq=5
}
if (seq==3){
b++
if (b==12)
seq=4
}
if (seq==2){
r--
if (r==0)
seq=3
}
if (seq==1){
g++
if (g==12)
seq=2
}
changetext()
}
function starteffect(){
if (document.all||document.getElementById)
flash=setInterval("change()",80)
}
starteffect()
</script>

[Image: pompiers002.gif]
Répondre


Messages dans ce sujet
RE: Les information dans le header - Gérald59 - 11-09-2011, 14:48



Utilisateur(s) parcourant ce sujet : 5 visiteur(s)

Contact | MyBB.support | Retourner en haut | Retourner au contenu | Version bas-débit (Archivé) | Syndication RSS
 Utilitaire de traduction fourni par Regentronique