drumstix42 wrote: Though that would make the invisible border all around it.
Code: Select all
Log into Admin CP => Allow HTML tags
add div after pre
Open posting_body.tpl
find this line
f_help = "{L_BBCODE_F_HELP}";
after add
div_help = "<div align=left|center|right>text</div>. HTML must be ENABLE to work.";
fins this line
'[url]','[/url]'
after add
,'<div align=center>','</div>'
Find this line
<td><span class="genmed">
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>
after add
<td><span class="genmed">
<input type="button" class="button" accesskey="t" name="addbbcode18" value="Div" style="width: 50px" onClick="bbstyle(18)" onMouseOver="helpline('div')" />
</span></td>
find this line
<select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
replace with
<select name="addbbcode20" onChange="bbfontstyle('[color=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
find this line
<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
replace with
<select name="addbbcode22" onChange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">