MyBB Community Forums

Full Version: help with modifications
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello you all, i would like to know how can i modificate some things, firt thing is the bb code

[align=left.][./align][.align=center] [./align][.align=right] [./align][.align=justify][./align]
i would like to make these codes be like that

[LEFT][/LEFT]
[/align][RIGHT][/RIGHT]
[CENTER][/CENTER]

others bbcode

like text size
[SIZE="1"][SIZE="2"][SIZE="3"][SIZE="4"][SIZE="5"][SIZE="6"][SIZE="7"][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE]



other thing is related with a plugin desing

http://img690.imageshack.us/i/34165639.jpg/

other thing is the user cp, what i need to edit for it be called of
"Configurações" ?
[/u][/i][/b]

It should be in the inc/class_parser file iirc. Regex for left align should be
/\[left\](.*?)\[/left\]/is
then the regular expression
<span style="text-align:left">$1</span>

Right align and center align would be the same except substitute the words right and center instead of left in the span style.
mine is like that

$nestable_mycode['align']['regex'] = "#\[align=(left|center|right|justify)\](.*?)\[/align\]#si";
$nestable_mycode['align']['replacement'] = "<div style=\"text-align: $1;\">$2</div>";

how should i put in there ?
can some one, tellme how can i make my text editor looks like the Vbulletin or IPB text editor ? with the same codes and etc, not the design ...