Custom BBCodes in a select box
Posted: 27 Jul 2011, 08:39
Custom BBCodes in a select box
Written by Simon
Puts all custom bbcodes in a select box. This makes the posting page look nicer and save some space.
Open styles/{YOURTHEME}/template/posting_buttons.html
Find:
Replace with:
Save, upload and refresh template.
Written by Simon
Puts all custom bbcodes in a select box. This makes the posting page look nicer and save some space.
Open styles/{YOURTHEME}/template/posting_buttons.html
Find:
Code: Select all
<!-- BEGIN custom_tags -->
<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
<!-- END custom_tags -->
Code: Select all
<select name="addbbcode_custom" onchange="bbstyle(this.form.addbbcode_custom.options[this.form.addbbcode_custom.selectedIndex].value*1);this.form.addbbcode_custom.selectedIndex = 0;">
<option value="#" selected="selected">Custom BBCodes</option>
<!-- BEGIN custom_tags -->
<option value="{custom_tags.BBCODE_ID}" title="{custom_tags.BBCODE_HELPLINE}">{custom_tags.BBCODE_TAG}</option>
<!-- END custom_tags -->
</select>