BBCode
BBCode je soubor formátovacích znaků používaných pro změnu vzhledu textu v této diskuzi. BBCode je založen na stejném principu jako HTML a je velice podobný HTML. Níže je uveden seznam dostupných znaků a návod jak je používat.
Administrátoři mají možnost povolit nebo zakázat BBCode znaky. Můžete zjistit, zda jsou BBCode povoleny nebo zakázány u levého okraje pod editačním oknem, kdykoliv když píšete zprávu nebo editujete podpis.
{$lang_help['Text style']}
"); echo OpenPanelB("div"); echo <<| BBCode | HTML |
|---|---|
| [b]{$lang_help['Bold text']}[/b] | {$lang_help['Bold text']} |
| [u]{$lang_help['Underlined text']}[/u] | {$lang_help['Underlined text']} |
| [i]{$lang_help['Italic text']}[/i] | {$lang_help['Italic text']} |
| [sb]{$lang_help['Bold text']}[/sb] | {$lang_help['Bold text']} |
| [si]{$lang_help['Italic text']}[/si] | {$lang_help['Italic text']} |
| [color=#FF0000]{$lang_help['Red text']}[/color] | {$lang_help['Red text']} |
| [color=blue]{$lang_help['Blue text']}[/color] | {$lang_help['Blue text']} |
{$lang_help['Links and images']}
"); echo OpenPanelB("div"); $o_board_title = pun_htmlspecialchars($pun_config['o_board_title']); echo <<| BBCode | HTML |
|---|---|
| [url={$pun_config['o_base_url']}/]{$o_board_title}[/url] | $o_board_title |
| [url]{$pun_config['o_base_url']}/][/url] | $o_board_title/ |
| [email]myname@mydomain.com[/email] | myname@mydomain.com |
| [email=myname@mydomain.com]{$lang_help['My e-mail address']}[/email] | {$lang_help['My e-mail address']} |
| {$lang_help['Images info']} | |
| [img]http://www.punbb.org/img/small_logo.png[/img] | ![]() |
{$lang_help['Quotes']}
"); echo OpenPanelB("div"); echo <<[quote=James]{$lang_help['Quote text']}[/quote]
{$lang_help['produces quote box']}
{$lang_help['Quotes info 2']}James {$lang_common['wrote']}:
{$lang_help['Quote text']}
[quote]{$lang_help['Quote text']}[/quote]
{$lang_help['produces quote box']}
DOC; echo ClosePanelB("div"); echo InsertPanelH("div","{$lang_help['Quote text']}
{$lang_help['Code']}
"); echo OpenPanelB("div"); echo <<[code]{$lang_help['Code text']}[/code]
{$lang_help['produces code box']}
{$lang_common['Code']}:
{$lang_help['Code text']}{$lang_help['Nested tags']}
"); echo OpenPanelB("div"); echo <<| BBCode | HTML |
|---|---|
| [b][u]{$lang_help['Bold, underlined text']}[/u][/b] | {$lang_help['Bold, underlined text']} |
{$lang_common['Smilies']}
"); echo OpenPanelB("div"); echo <<DOC; # Display the smiley set require PUN_ROOT.'include/parser.php'; $num_smilies = count($smiley_text); for ($i = 0; $i < $num_smilies; ++$i){ // Is there a smiley at the current index? if (!isset($smiley_text[$i])) continue; // Save the current text and image $cur_img = $smiley_img[$i]; $cur_text = $smiley_text[$i]; echo "
";
echo "
";
echo " {$smiley_text[$i]}";
for ($next = $i + 1; $next < $num_smilies; ++$next){
if (isset($smiley_img[$next]) && $smiley_img[$i] == $smiley_img[$next]){
echo ' '.$lang_common['and'].' '.$smiley_text[$next];
unset($smiley_text[$next]);
unset($smiley_img[$next]);
}
}
echo "
";
}
echo ClosePanelB("div");
echo ClosePanelP("article",__LINE__,__FILE__);
#require PUN_ROOT.'footer.php';
require $_SERVER['DOCUMENT_ROOT'].'/footer.php';

