Webmaster общности: Predpriemach.com | SearchEngines.bg

    BBCODE : Опция за зачертаване на текста в phpbb .

    Вижте в края демото, то обеснява мода Veryhappy

    #
    #-----[ ОТВОРИ ]------------------------------------------
    #
    includes/bbcode.php
    #
    #-----[ НАМЕРИ ]------------------------------------------
    #
    // and for bolding text.
    $text = str_replace("[b:$uid]", $bbcode_tpl['b_ОТВОРИ'], $text);
    $text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text);
    
    #
    #-----[ СЛЕД ТОВА, ДОБАВИ ]------------------------------------
    #
    
    // [s] and [/s] for striking out text.
    $text = str_replace("[s:$uid]", $bbcode_tpl['s_ОТВОРИ'], $text);
    $text = str_replace("[/s:$uid]", $bbcode_tpl['s_close'], $text);
    
    #
    #-----[ НАМЕРИ ]------------------------------------------
    #
    // and for bolding text.
    $text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text);
    
    #
    #-----[ СЛЕД ТОВА, ДОБАВИ ]------------------------------------
    #
    // [s] and [/s] for striking out text.
    $text = preg_replace("#\[s\](.*?)\[/s\]#si", "[s:$uid]\\1[/s:$uid]", $text);
    
    
    #
    #-----[ ОТВОРИ ]------------------------------------------
    #
    templates/subSilver/bbcode.tpl
    #
    #-----[ НАМЕРИ ]---------------------------------
    #
    
    <!-- BEGIN b_ОТВОРИ --><span style="font-weight: bold"><!-- END b_ОТВОРИ -->
    <!-- BEGIN b_close --></span><!-- END b_close -->
    
    #
    #-----[ СЛЕД ТОВА, ДОБАВИ ]------------------------------------
    #
    
    <!-- BEGIN s_ОТВОРИ --><span><s><!-- END s_ОТВОРИ -->
    <!-- BEGIN s_close --></s></span><!-- END s_close -->
    
    #
    #-----[ ОТВОРИ ]------------------------------------------
    #
    language/lang_english/lang_main.php
    #
    #-----[ НАМЕРИ ]------------------------------------------
    #
    
    $lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]';
    
    #
    #-----[ СЛЕД ТОВА, ДОБАВИ ]------------------------------------
    #
    
    $lang['bbcode_k_help'] = "Strikethrough text: [s]text[/s] (alt+k)";
    
    #
    #-----[ ОТВОРИ ]------------------------------------------
    #
    posting.php
    #
    #-----[ НАМЕРИ ]---------------------------------
    #
    'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
    #
    #-----[ СЛЕД ТОВА, ДОБАВИ ]------------------------------------
    #
    'L_BBCODE_K_HELP' => $lang['bbcode_k_help'],
    
    #
    #-----[ ОТВОРИ ]------------------------------------------
    #
    templates/subSilver/posting_body.tpl
    #
    #-----[ НАМЕРИ ]------------------------------------------
    #
    
    f_help = "{L_BBCODE_F_HELP}";
    
    #
    #-----[ СЛЕД ТОВА, ДОБАВИ ]------------------------------------
    #
    
    k_help = "{L_BBCODE_K_HELP}";
    
    
    #
    #-----[ НАМЕРИ ]------------------------------------------
    #
    
    bbtags = new Array('','','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','
    ','
    ','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]');
    
    #
    #-----[ ЗАМЕСТИ, С ТОВА ]------------------------------------------
    #
    
    bbtags = new Array('','','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','
    ','
    ','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[s]','[/s]');
    
    
    #
    #-----[ НАМЕРИ ]------------------------------------------
    #
    
    <td><span class="genmed">
    <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
    </span></td>
    
    
    
    #
    #-----[ СЛЕД ТОВА, ДОБАВИ ]------------------------------------
    #
    
    <td><span class="genmed">
    <input type="button" class="button" accesskey="k" name="addbbcode18" value="s" style="text-decoration: strike; width: 30px" onClick="bbstyle(18)" onMouseOver="helpline('k')" />
    </span></td>
    
    
    #
    #-----[ НАМЕРИ ]---------------------------------
    #
    
    <select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
    
    #
    #-----[ ЗАМЕСТИ, С ТОВА ]---------------------------------
    #
    
    <select name="addbbcode20" onChange="bbfontstyle('[color=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
    
    #
    #-----[ НАМЕРИ ]---------------------------------
    #
    
    </select>  {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
    
    #
    #-----[ ЗАМЕСТИ, С ТОВА ]---------------------------------
    #
    
    </select>  {L_FONT_SIZE}:<select name="addbbcode22" onChange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
    
    #
    #-----[ SAVE & ЗАТВОРИ ВСИЧКИ ФАЙЛОВЕ ]--------------------------
    #

    Оставете коментар