inbox  [ Profile ]

Sort by: Date / Title /

  1. 1 year ago
    Code pour vos pages en Php
    1. function Kill($n,$floor=true){
    2.         if($floor){$n = floor($n);}
    3.         return number_format($n,0,",",".");     
    4. }
    5.  
    6. EXEMPLE:
    7.     <tr>
    8.         <td width=394 height=3>
    9.             <p><font color=#FFFFFF>".Kill(123456789)."</font></p>
    10.         </td>
    11.     </tr>
    12.  
    13. FIN:
    14. 123.456.789
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1710"></script>
  2. 1 year ago
    Code pour vos pages en Php
    1. function bbcode($text) {
    2.     $text = preg_replace("#\[img\]((ht|f)tp://)([^\r\n\t<\"]*?)\[/img\]#sie", "'<img src=\\1' . str_replace(' ', '%20', '\\3') . '>'",
    3. $text);
    4.     $text = preg_replace("#\[url\]((ht|f)tp://)([^\r\n\t<\"]*?)\[/url\]#sie", "'<a href=\"\\1' . str_replace(' ', '%20', '\\3') . '\" target=blank>\\1\\3</a>'", $text);
    5.     $text = preg_replace("/\[url=(.+?)\](.+?)\[\/url\]/", "<a href=$1 target=_blank>$2</a>", $text);
    6.     $text = preg_replace("/\[b\](.+?)\[\/b\]/", "<b>$1</b>", $text);
    7.     $text = preg_replace("/\[i\](.+?)\[\/i\]/", "<i>$1</i>", $text);
    8.     $text = preg_replace("/\[u\](.+?)\[\/u\]/", "<u>$1</u>", $text);
    9.     $text = preg_replace("/\[code\](.+?)\[\/code\]/", "<table width=100%><tr><th align=left>Code :</th></tr><tr><td align=left><code>$1</code></td></tr></table>", $text);
    10.     $text = preg_replace("/\[quote=(.+?)\]/", "<center><table width=80%><tr><th align=left>Message de $1 :</th></tr><tr><td align=left class=milieu_messages>", $text);
    11.     $text = preg_replace("/\[\/quote\]/", "</td></tr></table></center>", $text);
    12.     $text = preg_replace("/\[color=(.+?)\](.+?)\[\/color\]/", "<font color=$1>$2</font>", $text);
    13.     return $text;
    14.     }
    15.  
    16. EXEMPLE:
    17.     <tr>
    18.         <td width=394 height=3>
    19.             <p><font color=#FFFFFF>".bbcode(nl2br($mess))."</font></p>
    20.         </td>
    21.     </tr>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1709"></script>

First / Previous / Next / Last / Page 1 of 1 (2 posteets)