.
добавляем выше "</head>":
<!-- DLE Band Inform -->
<link media="screen" href="{THEME}/edBandInform/edStyle.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="{THEME}/edBandInform/jquery.qtip-1.0.0-rc3.min.js"></script>
находим:
$source = preg_replace( "#\[(left|right|center)\](.+?)\[/\\1\]#is", "<div style=\"text-align:\\1;\">\\2</div>", $source );
добавляем ниже:
// ED BAND-INFORM V.1
// http://e-div.com/blog/dle-band-inform.html
$count_start = substr_count ($source, "[band");
$count_end = substr_count ($source, "[/band]");
if ($count_start AND $count_start == $count_end) {
$source = str_ireplace( "[band=]", "[band]", $source );
$source = preg_replace( "#\[band\](.+?)\[/band\]#ie", "\$this->build_band('\\1','')", $source );
$source = preg_replace( "#\[band=(.+?)\](.+?)\[/band\]#ie", "\$this->build_band('\\1','\\2')", $source );
}
далее, находим:
$txt = preg_replace( "#<!--dle_ol_(.+?)-->(.+?)<!--/dle_ol-->#i", "[ol=\\1]\n[*]", $txt );
добавляем ниже:
// ED BAND-INFORM V.1
// http://e-div.com/blog/dle-band-inform.html
$txt = preg_replace( "#<!--band_begin-->(.+?)>(.+?)</abbr><!--band_end-->#is", '[band]\\2[/band]', $txt );
$txt = preg_replace( "#<!--band_t_begin-->(.+?)data-band=\"(.+?)\">(.+?)</abbr><!--band_t_end-->#is", '[band=\\2]\\3[/band]', $txt );
далее, находим:
function clear_url($url) {
добавляем
выше:
// ED BAND-INFORM V.1
// http://e-div.com/blog/dle-band-inform.html
function build_band($band, $text = "") {
if( $text != "" ) {
$text = trim( $text );
$text = stripslashes( $text );
$text = str_replace( "&amp;", "&", $text );
$text = preg_replace( "/javascript:/i", "javascript: ", $text );
}
$bands = explode(",", $band);
if( count( $bands ) AND $text == "" ) {
$allbands = array();
foreach( $bands as $band ){
$band = trim( $band );
$band = stripslashes( $band );
$band = str_replace( "&amp;", "&", $band );
$band = preg_replace( "/javascript:/i", "javascript: ", $band );
$allbands[] = "<!--band_begin--><abbr title=\"Информация о " . $band . "\" class=\"edBand\" data-band=\"" . $band . "\">" . $band . "</abbr><!--band_end-->";
}
return implode(", ", $allbands);
} else {
$band = trim( $band );
$band = stripslashes( $band );
$band = str_replace( "&amp;", "&", $band );
$band = preg_replace( "/javascript:/i", "javascript: ", $band );
if( $text != "" ) return "<!--band_t_begin--><abbr title=\"Информация о " . $band . "\" class=\"edBand\" data-band=\"" . $band . "\">" . $text . "</abbr><!--band_t_end-->";
else return "<!--band_begin--><abbr title=\"Информация о " . $band . "\" class=\"edBand\" data-band=\"" . $band . "\">" . $band . "</abbr><!--band_end-->";
}
}
находим:
<div class="editor_button" onclick="tag_typograf(); return false;"><img title="$lang[bb_t_t]" src="{THEME}/bbcodes/typograf.gif" width="23" height="25" border="0" alt=""></div>
добавляем ниже:
<div id="b_band" class="editor_button" onclick="simpletag('band')"><img title="Вставка группы" src="engine/skins/bbcodes/images/band.gif" width="23" height="25" border="0" alt="" /></div>