Aller au contenu

Dorsy

Membre
  • Compteur de contenus

    7
  • Inscrit(e) le

  • Dernière visite

Réputation sur la communauté

0 Neutre
  1. Ba en fait je pense qu'il est installé car ca marche pour d'autre, exemple: http://tresorsdefrancine.free.fr/fichiers%20tlecharges/ ou encore http://florent.kaisser.free.fr/soft/sources/ Voila et il y en a d'autres... je ne comprend pas ce que j'ai oublié?
  2. Oups pardon, http://ahmosis66.free.fr Merci
  3. Bonjour a tous, Voila mon soucis, j'ai voulu me faire un index perso, et je ne comprend pas pourquoi les ?M=D, ?S=A et autres pour changer l'ordre ne fonctionne pas, pouvez vous m'eclairer??? merci d'avance.
  4. merci de votre aide mais je ne vois vraiment pas, Ba j'ai essayé de remplacer les font-size:11px; par font size = "3"; par font-size: 12pt; par font-size:12; Mais rien n'y fait Que doit je faire???
  5. Et oui desole mais je viens encore vous em*****er avec mes problemes, Voila mon probleme, Le style css de mon site bloque le redimmensionnement du texte, je ne voit pas les lignes qui empechent le redimmensionnement quand je poste en html!! J'ai essayé de supprimer toutes les lignes de taille mais le probleme est le meme. voici le style css: /*=============================================================================== =====*/ /* Style général /*=============================================================================== =====*/ body{ background-color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; color:#FFFFFF; } /*=============================================================================== =====*/ /* Police générale /*=============================================================================== =====*/ font, th, td, p{ color : #FFFFFF; font-family : Verdana, Arial, Helvetica, sans-serif; font-size : 11px; } /*=============================================================================== =====*/ /* Liens /*=============================================================================== =====*/ a:link, a:active, a:visited, a.postlink{ color: #33CC33; text-decoration : none } a:hover, a.topictitle:hover{ color: #CCCCCC; text-decoration: none } /*=============================================================================== =====*/ /* Séparateur /*=============================================================================== =====*/ hr{ border: 0px solid #999999; border-top-width:1px;height:0px; } /*=============================================================================== =====*/ /* Quelque texte du forum /*=============================================================================== =====*/ .topictitle{ color:#CCCCCC; font-weight:bold } .forumdate{ color: #999999 } /*=============================================================================== =====*/ /* Ligne de la bordure et de la couleur de fond autour de la page entière /*=============================================================================== =====*/ .bodyline{ background: #E7E7E7; color:#000000; border:1px solid #CCCCCC } /*=============================================================================== =====*/ /* Contour des cellules /*=============================================================================== =====*/ .blocline{ background:#0F0F0F; color:#FFFFFF; border: 1px solid #0F0F0F } .blocline2{ background:#000000; color:#FFFFFF; border: 2px solid #000000 } /*=============================================================================== =====*/ /* Couleurs d'arrière-plan des blocs /*=============================================================================== =====*/ td.row1{ background: #404040; color:#FFFFFF } td.row2{ background: #0F0F0F; color:#FFFFFF } td.row3{ background: #333333; color:#FFFFFF } td.row4{ background:#00FFFF; color: #FFFFFF } /*=============================================================================== =====*/ /* Blocs d'en-tête /*=============================================================================== =====*/ th { color: #CCCCCC; font-size: 12px; font-weight : bold; background-color: #32475F; height: 25px; background-image: url('themes/mmfusion/images/menu.gif'); } td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom { background-color:#CBE6F9; border:#FFFFFF; border-style:solid; height:12px; } td.cat, td.catHead, td.catBottom { height: 11px; border-width: 0px 0px 0px 0px; } th.thHead, th.thSides, th.thTop, th.thLeft, th.thRight, th.thBottom, th.thCornerL, th.thCornerR { font-weight: bold; border: #FFFFFF; border-style: solid; height: 12px; } td.row3Right, td.spaceRow { background-color: #CBE6F9; border: #FFFFFF; border-style: solid; } th.thHead, td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } th.thSides, td.catSides, td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight, td.catRight, td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft, td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom, td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /*=============================================================================== =====*/ /* Le plus grand texte utilisé dans le titre de la page d'index et le titre des sujets /*=============================================================================== =====*/ .maintitle { font-weight: bold; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #CCCCCC; } /*=============================================================================== =====*/ /* Texte générale /*=============================================================================== =====*/ .titre { color: #CCCCCC; font-size: 11px; font-weight : bold; } .sous_titre { color: #CCCCCC; font-size: 11px; font-weight : bold; } .gen { color:#CCCCCC; font-size:11px } .gensmall { color:#FFFFFF; font-size:11px } .genmed { color:#CCCCCC; font-size:11px } a.gen, a.genmed, a.gensmall { text-decoration: none; } a.gen:hover, a.genmed:hover, a.gensmall:hover { color: #32475F; text-decoration: none; } a.til:hover { color: #CCCCCC; text-decoration: none } a.til:link, a.til:active, a.til:visited { color: #FF0000; text-decoration: none } /*=============================================================================== =====*/ /* Inscription, Login, Recherche, Liens etc... du haut de la page /*=============================================================================== =====*/ .mainmenu { font-size : 11px; color : #FFFFFF } a.mainmenu { text-decoration: none; color : #0000FF; } a.mainmenu:hover { text-decoration: none; color : #839FBC; } /*=============================================================================== =====*/ /* Titres des catégories du forum /*=============================================================================== =====*/ .cattitle { font-weight: bold; font-size: 11px; letter-spacing: 1px; color : #CCCCCC; } a.cattitle { text-decoration: none; color : #0000FF; } a.cattitle:hover { text-decoration: none; } /*=============================================================================== =====*/ /* Copyright et info bouton /*=============================================================================== =====*/ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing:normal } a.copyright { color: #444444; text-decoration: none; } a.copyright:hover { color: #FFFFFF; text-decoration: none; } /*=============================================================================== =====*/ /* Eléments du formulaire /*=============================================================================== =====*/ input, textarea, select { color : #000000; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border-color : #CCCCCC; } /*=============================================================================== =====*/ /* Couleur d'arrière-plan des champs d'entrée du texte /*=============================================================================== =====*/ input.post, textarea.post, select { background-color : #FFFFFF; } input { text-indent : 2px; } /*=============================================================================== =====*/ /* Les boutons utilisés du BB-Code pour posté un message /*=============================================================================== =====*/ input.button { background-color : #E7E7E7; color : #CCCCCC; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } /*=============================================================================== =====*/ /* Option du bouton Submit principal /*=============================================================================== =====*/ input.mainoption { background-color : #FFFFFF; font-weight : bold; } /*=============================================================================== =====*/ /* Bouton Submit normal /*=============================================================================== =====*/ input.liteoption { background-color : #FFFFFF; font-weight : normal; } /*=============================================================================== =====*/ /* Pour l'option [panneau] du bbcode /*=============================================================================== =====*/ .panneau { padding:4px; line-height: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; background-color:#FFFFFF; color: #000000; font-size:11px; border: 1px solid #000000; } /*=============================================================================== =====*/ /* Citations dans les bbcodes ( Citation : ) /*=============================================================================== =====*/ .quote { padding: 4px; line-height: 11px; font-family:Verdana, Arial, Helvetica, sans-serif; color:#000000; font-size: 11px; border: 1px solid #000000; background-color : #FFFFFF; position: relative; left: -5px; } /*=============================================================================== =====*/ /* Code PHP dans les bbcodes /*=============================================================================== =====*/ .code_php { padding:4px; line-height: 11px; font-family: "Courier New", Courier, mono; color:#000000; font-size:12px; border: 1px solid #000000; background-color : #FFFFFF; position: relative; left: -5px; } Merci d'avance Edit modérateur : la balise CODEBOX est plus appropriée en cas de code un peu long (euphémisme)
  6. Dorsy

    bb code

    Merci beaucoup pour votre aide
  7. Dorsy

    bb code

    bonjour, Je viens sur le forum pour faire appel a vos conseils, Je voudrais ajouter des balises bbcodes sur mon site du genre une <hr>, <marquee> & <justify>. Et je ne sais pas comment faire et ce qu'il faut ajouter. Merci pour vos reponses... je vous laisse le code du fichier qui les gere : function bbcode($texte,$aff_smileys=0, $aff_autres=0, $aff_table=0,$html=0) { global $url_site; global $color_bbcode; global $bbcode_mot; global $col_msg; //ajout de slaches if (!get_magic_quotes_gpc()) // directive anti pbm de slasches { $texte = addslashes($texte);} //suppression des balises html et mise des & en & $texte = str_replace (array("&","<",">","&#039;","&ea","&quote;"),array("&","<",">","'","&ea","&quote;"),$texte); //transformation de l'ur du site pour le masque $url_site2= str_replace('/',"\/",$url_site); if($aff_autres!=0) { //passages à la ligne $texte = str_replace ("\n",'<br />',$texte); } //affichage d'un mot en surligné if($color_bbcode=="1") { $texte = eregi_replace($bbcode_mot,"<b style=\"backgroud-color: $col_msg;font-weight: bold;\">$bbcode_mot</b>",$texte); } //affichage des smileys if($aff_smileys!=0) { $im=array('g3ag','g3bg','g28g','g29g','g23g','g7cg','g21g','g24g','g25g','g27g','g2ag','g3cg','g3dg','g3eg','g3fg','g40g', 'g5bg','g5cg','g5dg','g5fg','g7bg','g7dg'); $re=array(':',';','\(','\)','#','\|','!','$','%','\'','*','<','=','>','?','@','[','\\',']','_','\{','\}'); $i=0; $rep=opendir('./images/smileys/'); //lecture du repertoire de smileys while ($file = readdir($rep)) { if ((strtolower(substr($file,-3))=="gif" || strtolower(substr($file,-3))=="jpg" || strtolower(substr($file,-3))=="png") && substr($file,0,1)=="s") { $id_img = substr($file,1,-4); $id_img2[$i]='/'.$id_img.'/'; $fichier[$i]='<img src="images/smileys/'.$file.'" border="0" alt="smiley '.$file.'" />'; $i++; } } $id_img2 = str_replace($im,$re,$id_img2); closedir($rep); clearstatcache(); //vidange // echo '<pre>'.print_r($id_img2,true).'</pre>'; //informations pour debugage $texte = preg_replace($id_img2,$fichier,$texte); //remplacement smileys } $search=array( "/(\[taille=(([0-3])[0-9])\])(.*?)(\[\/taille\])/i", //taille "/(\[panneau\])(.*?)(\[\/panneau\])/i", //panneau "/[^]](\<\?php)(.*?)(\?\>)/ie", "/(\[code\])(.*?)(\[\/code\])/ie", //code "/(\[puce\])(.*?)(\[\/puce\])/i", //puce "/(\[surlign\])(.*?)(\[\/surlign\])/i", //surlignement "/(\[barre\])(.*?)(\[\/barre\])/i", //barre "/(\[b\])(.*?)(\[\/b\])/i", //gras "/(\[center\])(.*?)(\[\/center\])/i", //centrer "/(\[i\])(.*?)(\[\/i\])/i", //italique "/(\[u\])(.*?)(\[\/u\])/i", //souligné "/(\[glow\])(.*?)(\[\/glow\])/i", //glow "/(\[email\])(.[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)+)(\[\/email\])/e", //emails "/(\[email=(.[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)+)\])(.*?)(\[\/email\])/ie", //emails '/([^]^=^\/\"])(www.)([\w.\/=&~?;\-_\#]*)/i', //url auto www. '/([^]^=\"])(http:\/\/|ftp:\/\/)([\w.\/=&~?;\-_\#]*)/i', //url auto http:// ftp:// "/(\[url\])($url_site2)(.[^\"\'\(\)\<\>\]\[]*?)(\[\/url\])/i", //url interne [url]http://monsite.com "/(\[url=($url_site2)(.[^\"\'\(\)\<\>\]\[]*?)\])(.*?)(\[\/url\])/i", //url interne [url=http://monsite.com "/(\[url\]http)(.[^\"\'\(\)\<\>\]\[]*?)(\[\/url\])/i", //url externe [url]http://... "/(\[url\]www)(.[^\"\'\(\)\<\>\]\[]*?)(\[\/url\])/i", //url externe [url]www.... "/(\[url\]ftp)(.[^\"\'\(\)\<\>\]\[]*?)(\[\/url\])/i", //url esterne [url]ftp:// "/(\[url=(.[^\"\'\(\)\<\>\]\[]*?)\])(.*?)(\[\/url\])/i", //url externe [url=......] "/(\[couleur=(\#[0-9A-F]{6}|[a-z]+)\])(.*?)(\[\/couleur\])/i", //couleur de police "/(\[quote(=(.*?)\]|\]))(.*?)(\[\/quote\])/iUe", //citation de //"/(\[quote name='(.*?)\'])(.(^\[\/quote\])?)(\[\/quote\])/iS", //citation de //"/(\[quote name='(.*?)\'])(.*?)(\[\/quote\])/iX", //citation de //"/(\[quote\])(.(^\[\/quote\])?)(\[\/quote\])/i", //citation //"/(\[quote\])(.*?)(\[\/quote\])/iX", //citation "/(\[img\]www)(.[^\"\'\(\)\<\>\]\[]*?)(\[\/img\])/i", //images "/(\[img\])(.[^\"\'\(\)\<\>\]\[]*?)(\[\/img\])/i" //images ); $replace=array("<span style=\"font-size:\\2px\">\\4</span>", "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody><tr><td align=\"center\"><img src=\"images/pancarte_haut.gif\" alt=\"Panneau haut\" /></td></tr><tr><td class=\"panneau\" align=\"center\">\\2</td></tr><tr><td align=\"center\"><img src=\"images/pancarte.gif\" alt=\"Pancarte\" /></td></tr></tbody></table>", "'<b>Code PHP : </b><br /><div style=\"width:100%\" class=\"code_php\">'.bb_high('\\1\\2\\3').'</div>'", "'<b>Code PHP : </b><br /><div style=\"width:100%\" class=\"code_php\">'.bb_high('\\2').'</div>'", "<li>\\2</li>", "<span style=\"background-color: #FFFFCC\">\\2</span>", "<strike>\\2</strike>", "<b>\\2</b>", "<center>\\2</center>", "<i>\\2</i>", "<u>\\2</u>", "<div style=\"width:100%;filter:glow(color=#000000,strength=1);\">\\2</div>", "'<a href=\"mailto:'.brouillemail('\\2').'\">'.bb_email('\\2').'</a>'", "'<a href=\"mailto:'.brouillemail('\\2').'\">\\5</a>'", ' \\1<a href="http://\\2\\3" target="_blank">\\2\\3</a>', ' \\1<a href="\\2\\3" target="_blank">\\2\\3</a>', "<a href=\"\\2\\3\">\\2\\3</a>", "<a href=\"\\2\\3\">\\4</a>", "<a href=\"http\\2\" target=\"_blank\">http\\2</a>", "<a href=\"http://www\\2\" target=\"_blank\">www\\2</a>", "<a href=\"ftp\\2\" target=\"_blank\">ftp\\2</a>", "<a href=\"\\2\" target=\"_blank\">\\3</a>", "<span style=\"color:\\2\">\\3</span>", "bb_cite(\"\\1\\4\\5\")",//"<b>Citation de \\2 : </b><br /><div style=\"width:100%\" class=\"quote\">\\3</div>", //"<b>Citation de \\2 : </b><br /><div wstyle=\"width:100%\" class=\"quote\">\\3</div>", //"<b>Citation : </b><br /><div style=\"width:100%\" class=\"quote\">\\2</div>", //"<b>Citation : </b><br /><div style=\"width:100%\" class=\"quote\">\\2</div>", "<img src=\"http://www\\2\" border=\"0\" alt=\"\" />", "<img src=\"\\2\" border=\"0\" alt=\"\" />" ); $texte=preg_replace($search,$replace,$texte); //remplacement de tous bbcodes //$test=preg_match_all($search,$replace,$texte); //echo "<pre>".print_r($test)."</pre>"; //suppression des slashes $texte = stripslashes($texte); if($aff_table == 1) //tables { //balises html <table> <td> et <tr> acceptées $texte=preg_replace("/(\&lttable)(.*?)(\&gt)(.*?)(\&lt\/table\&gt)/i","<table border=\"1\" cellspacing=\"0\" cellpading=\"0\" \\2>\\4</table>", "$texte"); $texte=preg_replace("/(\&lttr)(.*?)(\&gt)(.*?)(\&lt\/tr\&gt)/i","<tr\\2>\\4</tr>", "$texte"); $texte=preg_replace("/(\&lttd)(.*?)(\&gt)(.*?)(\&lt\/td\&gt)/i","<td\\2>\\4</td>", "$texte"); //affiche le tableau correspondant $texte1=explode("[table=",$texte); for($i=1; $i<count($texte1); $i++) { $fin=strpos($texte1[$i],"][/table]"); $id_table=substr($texte1[$i],0,$fin); $text="[table=$id_table][/table]"; $req_table=$tableau=""; $req_table = reqmysql("SELECT * FROM tableau WHERE id=$id_table"); $tableau = mysql_fetch_object($req_table); $texte=str_replace("$text",$tableau->contenu,$texte); } } if ($html==1) //si l'html est autorisé { $htmldang=array("/; /i","/\./i","/javascript/i","/\(/i","/\)/i","/script/i","/\&gt\;/i","/\&lt\;/i"); $assure=array(";",".","Js","(",")","script",">","<"); $texte=preg_replace($htmldang,$assure,$texte); //remplacement pour un minimu de sécu } return $texte; } function bb_email($str){ return str_replace(array("@","."),array(" at "," dot "),$str); } function bb_cite($texte) { $texte1=""; $texte1=explode("[quote",$texte); $j=0; for($i=1; $i<count($texte1); $i++) { $j++; $text=$texte1[$i]; if(substr($texte1[$i],0,1) == "=") { $texte1[$i]=substr_replace($texte1[$i],"",0,1); $nb=strpos($texte1[$i],"]"); $auteur=substr($texte1[$i],0,$nb); $texte1[$i]=substr_replace($texte1[$i],"",0,$nb+1); $texte1[$i]="<br /><b>Citation de $auteur : </b><br /><div style=\"width:100%\" class=\"quote\">$texte1[$i]"; } else { $texte1[$i]=substr_replace($texte1[$i],"",0,1); $texte1[$i]="<br /><b>Citation : </b><br /><div style=\"width:100%\" class=\"quote\">$texte1[$i]"; } $texte=str_replace("[quote$text",$texte1[$i],$texte); } $nb_quote=substr_count($texte,"[/quote]"); while($j>$nb_quote) { $nb_quote++; $texte.="</div><br />"; } $texte=str_replace("[/quote]", "</div><br />" ,$texte); return $texte; } function bb_high($texte){ $texte=str_replace (array("&","<",">","'", "<br />"),array("&","<",">","&#039;" ,"\n"),$texte); $texte=stripslashes(stripslashes($texte));//pkoi 2 stripslashes je pense que c'est du au sql $texte = highlight_string($texte,TRUE); //echo $texte; //mofif d'une fct trouvée sur php.net pour qu'elle marche //replace <code><font color=""></font></code> $texte = preg_replace('#<font color="(.*?)">(.*?)</font>#', '<span style="color: \\1">\\2</span>', $texte); //replace other <font> elements $texte=str_replace("<font color=\"","<span style=\"color:",$texte); $texte=str_replace("</font>","</span>",$texte); //$texte=preg_replace('#<font color="(.*?)">(.*?)</font>#sU', '<span style="color: \\1">\\2</span>', $texte); //changement de couleur des variables $texte= preg_replace("/[$](\w*)/i","<span style=\"color:#008080\">$\\1</span>",$texte); return $texte; } ?>
×
×
  • Créer...