Code: Alles auswählen
// Define the bbCode tags
var bbcode = new Array();
var bbtags = new Array(
//0
'[b]','[/b]',
//2
'[i]','[/i]',
//4
'[u]','[/u]',
//6
'[quote]','[/quote]',
//8
'[code]','
//10
'
- ','
//12
'
- ','
//14 Listenpunkt [*]
'[img]','[/img]',
//16
'','',
//18 Flash phpbb3-intern
'[flash=]','[/flash]',
//20 Font - Size - phpbb3-intern
'[size=]','[/size]',
//22
'[align=center]','[/align]',
//24
'[align=right]','[/align]',
//26
'[spoil]','[/spoil]',
//28
'[spoil_l]','[/spoil_l]',
//30
'[img_l]','[/img_l]',
//32
'[flash_i]','[/flash_i]',
//34
'[img_r]','[/img_r]',
//36
'[br]','[/br]',
//38
'[youtube]','[/youtube]',
//40
'[gvideo]','[/gvideo]',
//42
'[myspace]','[/myspace]',
//44
'[myvideo]','[/myvideo]',
//46
'[clipfish]','[/clipfish]',
//48
'[flv]','[/flv]',
//50
'[stream]','[/stream]',
//52
'[mov]','[/mov]',
//54
'[sup]','[/sup]',
//56
'[sub]','[/sub]',
//58
'[marq=down]','[/marq]',
//60
'[marq=up]','[/marq]',
//62
'[marq=left]','[/marq]',
//64
'[marq=right]','[/marq]',
//66
'[strike]','[/strike]',
//68
'[align=justify]','[/align]',
//70
'[rm]','[/rm]',
//72
'[wmv]','[/wmv]',
//74
'[hr]','[/hr]',
//76
'[mail=]','[/mail]'
//77 Font - Type
//78 Begin Custom
//79 Font - Color
<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
.BBCODE_NAME}<!-- END custom_tags -->);[/code]
leider kommt, wenn ich die ganze anleitung durchgemacht habe, der fehler:
Code: Alles auswählen
Parse error: syntax error, unexpected '}' in /users/seritools/www/cache/tpl_prosilver_posting_buttons.html.php on line 94
Code: Alles auswählen
<script type="text/javascript">
// <![CDATA[
var form_name = 'postform';
var text_name = <?php if ($this->_tpldata['DEFINE']['.']['SIG_EDIT']) { ?>'signature'<?php } else { ?>'message'<?php } ?>;
var load_draft = false;
var upload = false;
// Define the bbCode tags
var bbcode = new Array();
var bbtags = new Array(
//0
'[b]','[/b]',
//2
'[i]','[/i]',
//4
'[u]','[/u]',
//6
'[quote]','[/quote]',
//8
'[code]','
//10
'
- ','
//12
'
- ','
//14 Listenpunkt [*]
'[img]','[/img]',
//16
'','',
//18 Flash phpbb3-intern
'[flash=]','[/flash]',
//20 Font - Size - phpbb3-intern
'[size=]','[/size]',
//22
'[align=center]','[/align]',
//24
'[align=right]','[/align]',
//26
'[spoil]','[/spoil]',
//28
'[spoil_l]','[/spoil_l]',
//30
'[img_l]','[/img_l]',
//32
'[flash_i]','[/flash_i]',
//34
'[img_r]','[/img_r]',
//36
'[br]','[/br]',
//38
'[youtube]','[/youtube]',
//40
'[gvideo]','[/gvideo]',
//42
'[myspace]','[/myspace]',
//44
'[myvideo]','[/myvideo]',
//46
'[clipfish]','[/clipfish]',
//48
'[flv]','[/flv]',
//50
'[stream]','[/stream]',
//52
'[mov]','[/mov]',
//54
'[sup]','[/sup]',
//56
'[sub]','[/sub]',
//58
'[marq=down]','[/marq]',
//60
'[marq=up]','[/marq]',
//62
'[marq=left]','[/marq]',
//64
'[marq=right]','[/marq]',
//66
'[strike]','[/strike]',
//68
'[align=justify]','[/align]',
//70
'[rm]','[/rm]',
//72
'[wmv]','[/wmv]',
//74
'[hr]','[/hr]',
//76
'[mail=]','[/mail]'
//77 Font - Type
//78 Begin Custom
//79 Font - Color
<?php $_custom_tags_count = (isset($this->_tpldata['custom_tags'])) ? sizeof($this->_tpldata['custom_tags']) : 0;if ($_custom_tags_count) {for ($_custom_tags_i = 0; $_custom_tags_i < $_custom_tags_count; ++$_custom_tags_i){$_custom_tags_val = &$this->_tpldata['custom_tags'][$_custom_tags_i]; ?>, <?php echo $_custom_tags_val['BBCODE_NAME']; }} ?>);
.BBCODE_NAME}<?php }} ?>);
var imageTag = false;[/code]