FFVIMan.fr
Code FFVIMan DPack N°: 1
Fichier instalateur dp-601.dp contenu dans l'archive zip :
dpack-info¦FFVIMan¦FFVIMan DPack - BBCode: Citations [quote]
¤forum.php¦after¦$m = smileys($m);¦
$m = preg_replace("/\[quote\](.+)\[\/quote\]/Ui","<div class=\"quote\" id=q1>\\1</div >",$m);
$m = preg_replace("/\[quote=\](.+)\[\/quote\]/Ui","<div class=\"quote\" id=q1>\\1</div >",$m);
$m = preg_replace("/\[quote=(.+)\](.+)/Ui","<div class=\"quote\" id=q2><font class=def><b>\\1 :</b></font><br/>\\2",$m);
$m = str_replace("[/quote]","</div >",$m);¤forum.php¦after¦$m = unsmileys($m);¦
$m = str_replace("<div class=\"quote\" id=q1>","[quote]",$m);
$m = ereg_replace("<div class=\"quote\" id=q2><font class=def>(<b>|\[b\])([^\"]+) :(</b>|\[/b\])</font><br/>","[quote=\\2]",$m);
$m = str_replace("</div >","[/quote]",$m);¤forum.php¦before¦<span title='Smileys' class=bbc onclick=\"if (ob('prv_txt').innerHTML) ob('prv_txt').innerHTML = dtxt;\">[smileys]</span> ¦<span title='Citation' class=bbc><a href=# class=s9 style='text-decoration: none; cursor: default' onclick=\"quoteme(); return false;\">[quote]</a></span> ¤forum.js¦after¦zfm.smiley_nb.value = img_nb;}¦
function quoteme(){ // FFDP1 - Select = auto Quote
if (document.getSelection) sel = document.getSelection();
else if (document.selection) sel = document.selection.createRange().text;
if(sel) sml('[quote]'+sel+'[/quote]',0)
bbc('quote');}¤forum.js¦after¦switch(tag) {¦
case 'quote': bbct = "<center><br>Pour faire une citation<br><br><b onclick=\"mybbc('[quote]','[/quote]')\">[quote]texte[/quote]</b><br><br>Pour faire une citation nominative<br><br><b onclick=\"mybbc('[quote=]','[/quote]')\">[quote=nom]texte[/quote]</b><br><br></center>"; break;¤forum_b.css¦after¦.inside {background-color:#393C39}¦
.quote {background: #676767; border:1px solid #000;padding:3px; padding-left:5px;margin-top: 10px; margin-left: 20px; margin-right:20px; margin-bottom:10px; line-height:14px;}¤forum_b.css¦after¦A.tlink:hover {font-size:11;text-decoration:underline;color:#fff}
.quote #2, .quote #1 {background-color : #7C7C7C;}¦
A.s9{text-decoration:none;font-size:9;color:#ADADAD;}
A.s9:hover{text-decoration:none;font-size:9;color:#ADADAD;}¤forum_w.css¦after¦.inside {background-color:#F8FDFF}¦
.quote {background: #F5F5F5; border:1px solid #BBB;padding:3px; padding-left:5px;margin-top: 10px; margin-left: 20px; margin-right:20px; margin-bottom:10px; line-height:14px;}¤forum_w.css¦after¦A.tlink:hover {font-size:11;text-decoration:underline;color:#575757}
.quote #2, .quote #1 {background-color : #fff;}¦
A.s9{text-decoration:none;font-size:9;color:#808080;}
A.s9:hover{text-decoration:none;font-size:9;color:#808080;}
Version du code disponible au format de fichier texte .txt : dp-601.txt