This tag makes it possible to draw up the text with illustrations, so that the text filled the space around the illustrations.
1) View file: bb_codes.php
enCodeBB() function:
/* Tag_floating text */
$pattern[]='#\[float=(left|right)\](.*?)\[/float\]#is';
$replacement[]='<div style="float: \\1;">\\2</div>';
2) deCodeBB() function:
$pattern[]="/<div class=\"float:left\"><img src=\"([^<> \n\r\[\]&]+?)\" alt=\"\" (title=\"\" )?style=\"float:left\" \/>/i";
$replacement[]="[float=left]\\1[/float]";
3) We are looking for a line with text:
$pattern[]="/<div style=\"text-align:(left|right|center)\">(.+?)<\/div>/is";
$replacement[]='[align\\1]\\2[/align]';
Somewhere below the insert code:
$pattern[] = '`<div style="float: (right|left);">(.*?)</div>`is';
$replacement[] = "[float=\\1]\\2[/float]\r\n";
Add Button
4) Edit /templates/main_post_form.html
paste the button code:
<a href="JavaScript:paste_strinL(selektion,3,'[float=right]','[/float]','')" onmouseover="window.status='Insert float text'; return true" onmouseout="window.status=''; return true" onmousemove="pasteSel()"><img src="{$main_url}/img/float_right.gif" style="width:23px;height:22px" alt="Insert float text" /></a>
<a href="JavaScript:paste_strinL(selektion,3,'[float=left]','[/float]','')" onmouseover="window.status='Insert float text'; return true" onmouseout="window.status=''; return true" onmousemove="pasteSel()"><img src="{$main_url}/img/float_left.gif" style="width:23px;height:22px" alt="Insert float text" /></a>
Add to folder /img/
rename:float_left.gif and float_right.gif

screenshot
