Bold, Itallic enzo mogen wel blijven, puur de grootte en kleur niet.
Als iemand het weet graag!

Code: Selecteer alles
########################################################
##
## MOD Title: BBcode Strike
## MOD Version: 1.0
## Author: R0cKW|LDeR < da_rockwilder_rw@yahoo.fr >
##
## Description:
## [strike]some text[/strike]
##
## This mod allows you to bar some text as the html tags
## <strike> and </strike>
##
##
## Installation Level: easy
## Installation Time: 5 Minutes
##
## Files To Edit: 5
## - forumroot/includes/bbcode.php
## - forumroot/posting.php
## - forumroot/templates/forumtheme/bbcode.tpl
## - forumroot/language/lang_xxxx/lang_main.php
## - forumroot/includes/posting_body.tpl
##
## Included Files: None
##
########################################################
#
#-----[ ACTION: open ]--------------------------------
#
forumroot/includes/bbcode.php
#
#-----[ ACTION: find ]---------------------------------
#
// [b ] and [/b ] for bolding text.
$text = str_replace("[b:$uid]", $bbcode_tpl['b_open'], $text);
$text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text);
#
#-----[ ACTION: add below ]-------------------------------
#
// [strike] and [/strike] for barring text.
$text = str_replace("[strike:$uid]", $bbcode_tpl['strike_open'], $text);
$text = str_replace("[/strike:$uid]", $bbcode_tpl['strike_close'], $text);
#
#-----[ ACTION: find ]---------------------------------
#
// [b ] and [/b ] for bolding text.
$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text);
#
#-----[ ACTION: add below ]----------------------------
#
// [strike] and [/strike] for barring text.
$text = preg_replace("#\[strike\](.*?)\[/strike\]#si", "[strike:$uid]\\1[/strike:$uid]", $text);
#
#-----[ ACTION: save, close, upload ]----------------------------
#
#
#-----[ ACTION: open ]---------------------------------
#
forumroot/templates/forumtheme/bbcode.tpl
#
#-----[ ACTION: find ]---------------------------------
#
<!-- BEGIN b_open -->
<span style="font-weight: bold">
<!-- END b_open -->
<!-- BEGIN b_close -->
</span>
<!-- END b_close -->
#
#-----[ ACTION: add below ]---------------------------------
#
<!-- BEGIN strike_open -->
<span><strike>
<!-- END strike_open -->
<!-- BEGIN strike_close -->
</strike></span>
<!-- END strike_close -->
#
#-----[ ACTION: save, close, upload ]---------------------------------
#
#
#-----[ ACTION: open ]---------------------------------
#
forumroot/languages/lang_xxxx/lang_main.php
#
#-----[ ACTION: find ]---------------------------------
#
$lang['bbcode_f_help'] = "Font size: [size=x-small]small text[/size]";
#
#-----[ ACTION: add below ]---------------------------------
#
$lang['bbcode_k_help'] = "Barring text: [strike]text[/strike] (alt+k)";
#
#-----[ ACTION: save, close, upload ]---------------------------------
#
#
#-----[ ACTION: open ]---------------------------------
#
forumroot/posting.php
#
#-----[ ACTION: find ]---------------------------------
#
"L_BBCODE_F_HELP" => $lang['bbcode_f_help'],
#
#-----[ ACTION: add below ]--------------------------------
#
"L_BBCODE_K_HELP" => $lang['bbcode_k_help'],
#
#-----[ ACTION: save, close, upload ]----------------------------
#
#
#-----[ ACTION: open ]---------------------------------
#
forumroot/templates/forumtheme/posting_body.tpl
#
#-----[ ACTION: find ]---------------------------------
#
f_help = "{L_BBCODE_F_HELP}";
#
#-----[ ACTION: add below ]---------------------------------
#
k_help = "{L_BBCODE_K_HELP}";
#
#-----[ ACTION: find ]---------------------------------
#
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
Code: Selecteer alles
','
Code: Selecteer alles
<option value="7" class="genmed">{L_FONT_TINY}</option>
<option value="9" class="genmed">{L_FONT_SMALL}</option>
<option value="12" selected class="genmed">{L_FONT_NORMAL}</option>
<option value="18" class="genmed">{L_FONT_LARGE}</option>
<option value="24" class="genmed">{L_FONT_HUGE}</option>
Code: Selecteer alles
<option style="color:black; background-color: {T_TD_COLOR1}" value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option>
<option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option>
<option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option>
<option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option>
<option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option>
<option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option>
<option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option>
<option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option>
<option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option>
<option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option>
<option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option>
<option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option>
<option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option>
<option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option>
<option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option>