includes/bbcode.php
cauta:
Cod: Selectaţi tot
// Remove our padding from the string..
return substr($text, 1);
Cod: Selectaţi tot
// [youtube] and [/youtube]
$text = preg_replace("#\[youtube=([0-9]+[,][0-9]+[,][0-9a-z\-_]+)\](.*?)\[/youtube\]#si", "[youtube=\\1:$uid]\\2[/youtube:$uid]", $text);
Cod: Selectaţi tot
// [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff.
$text = str_replace("[quote:$uid]", $bbcode_tpl['quote_open'], $text);
$text = str_replace("[/quote:$uid]", $bbcode_tpl['quote_close'], $text);
Cod: Selectaţi tot
// [youtube] and [/youtube]
$text = preg_replace("#\[youtube=([0-9]+)[,]([0-9]+)[,]([0-9a-z\-_]+):$uid\](.*?)\[/youtube:$uid\]#si", "<object><param></param><embed></embed></object>"."[/youtube:$uid]", $text);
$text = str_replace("[/youtube:$uid]", "", $text);
sintaxa folosita este: [youtube=width,height,id][/youtube]
unde 350,280 reprezinta dimensiunile ferestrei de rulare a filmului si respectiv m30p09OrCnk reprezinta codul de pe youTube
de exemplu: [youtube=350,280,m30p09OrCnk][/youtube]
Problema este ca vreau sa introduc in posting_body.tpl butoane pentru cele doua facilitati. Ceva de genul asta:

In posting_body.tpl am definit f_help (unde M este pentru mp3 si Y pentru Youtube)
f_help = "{L_BBCODE_M_HELP}";
f_help = "{L_BBCODE_y_HELP}";
Am modificat trimiterile la ele in language/lang_romanian/lang_main.php
Am adaugat tagurile [mp3][/mp3] si [youtube][/youtube] la sfarsitul liniei bbtags = new Array....
Am introdus
<input type="button" class="button" accesskey="m"name="addbbcode26" value="mp3" .... etc
<input type="button" class="button" accesskey="y" name="addbbcode28" value="YouTube" ... etc
prin analogie cu cele existente, dar nu mai pot edita dimensiunea si culoarea fontului in mesaj.
Unde gresesc, sau unde ar mai trebui modificat?