Instruction
open
styles/prosilver/template/quickreply_editor.html
find
- Code: Select all
onload_functions.push('init_qr();');
// ]]>
</script>
after add
- Code: Select all
<script type="text/javascript">
// <![CDATA[
var form_name = 'qr';
var text_name = 'message';
// ]]>
</script>
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/editor.js"></script>
find (the second find)
- Code: Select all
<form method="post" action="{U_QR_ACTION}">
replace with
- Code: Select all
<form name="qr" method="post" action="{U_QR_ACTION}">
find
- Code: Select all
<dd><input type="text" name="subject" id="subject" size="45" maxlength="64" tabindex="2" value="{SUBJECT}" class="inputbox autowidth" /></dd>
replace with
- Code: Select all
<dd><input type="text" name="subject" id="subject" size="45" maxlength="64" tabindex="2" value="{SUBJECT}" class="inputbox autowidth" />
<input type="button" class="button2" value="youtube" onclick="bbfontstyle('[youtube]', '[/youtube]');" /></dd>
clear all caches
This example you can expand with more bbcode.
Just follow the syntax in the last replace with and duplicate this part:
- Code: Select all
<input type="button" class="button2" value="youtube" onclick="bbfontstyle('[youtube]', '[/youtube]');" />
and change bbcode name here
- Code: Select all
value="youtube"
- Code: Select all
'[youtube]', '[/youtube]'