Remove Default BBcode and replace it with Customfirstmake a complete backup of your database and further named files and close the board
secondbetter don't change the complex [ quote ] bbcode, bcs. it's a very specialized bbcode,
or u are a hardcore php crack. best is, change only 'simple' standard (formatting) bbocdes.
---------------------------
ok, here is a simple example of [ b ] standard-bbcode.
u can transform this change-syntax on each standard formatting bbcode.
i make testwise a bbcode [ b ]
Code:
[b]{TEXT}[/b]
Code:
<span style="background-color:darkred;color:white;font-weight:bolder;">
{TEXT}
</span>
screenshttp://4seven.bplaced.net/BBCodes_1.pnghttp://4seven.bplaced.net/BBCodes_2.pnghttp://4seven.bplaced.net/BBCodes_3.pngInstructionopenincludes/bbcode.php
findCode:
case 1:
$this->bbcode_cache[$bbcode_id] = array(
'str' => array(
'[b:$uid]' => $this->bbcode_tpl('b_open',
$bbcode_id),
'[/b:$uid]' => $this->bbcode_tpl('b_close',
$bbcode_id),
)
);
break;
replace withCode:
case 1:
$this->bbcode_cache[$bbcode_id] = array(
'str' => array(
'[b_out_of_order:$uid]' => $this->bbcode_tpl('b_open',
$bbcode_id),
'[/b_out_of_order:$uid]' => $this->bbcode_tpl
('b_close', $bbcode_id),
)
);
break;
openincludes/acp/acp_bbcodes.php
findCode:
// Make sure the user didn't pick a "bad" name for the BBCode tag.
$hard_coded = array('code', 'quote', 'quote=', 'attachment', 'attachment=', 'b', 'i', 'url', 'url=', 'img', 'size', 'size=', 'color', 'color=', 'u', 'list', 'list=', 'email', 'email=', 'flash', 'flash=');
replace withCode:
// Make sure the user didn't pick a "bad" name for the BBCode tag.
$hard_coded = array('code', 'quote', 'quote=', 'attachment', 'attachment=', 'b_out_of_order', 'i', 'url', 'url=', 'img', 'size', 'size=', 'color', 'color=', 'u', 'list', 'list=', 'email', 'email=', 'flash', 'flash=');
openstyles/prosilver/template/posting_buttons.html
findCode:
<input type="button" class="button2" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onclick="bbstyle(0)" title="{L_BBCODE_B_HELP}" />
replace withCode:
<!-- <input type="button" class="button2" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onclick="bbstyle(0)" title="{L_BBCODE_B_HELP}" /> -->
noteif you get a sql-error
Code:
Out of range value adjusted for column 'bbcode_id'
follow this solution
http://www.phpbb.com/community/viewtopi ... 5#p7551325also noteall old [ b ] bbcodes in posts must be reparsed with Support Toolkit (STK)
http://www.phpbb.com/support/stk/see screen (first post = old [ b ] bbcode, further post = new custom [ b ] bbcode)
http://4seven.bplaced.net/BBCodes_4.png------------------------------
my tip:best is, test-out the reparse with Support Toolkit (STK) on a local copy of your board,
or, if STK not work for this constellation, use this snippet, before u start a board.