jrap
02-04-2009, 10:00 PM
I help run an Engineering forum where members frequently use a set of math/science symbols, so we thought it would be a good idea to add an area under the 'Smileys' box with these symbols readily available.
In Template: editor_smiliebox
After the first </fieldset> which is for the smileys, and before the <else />, add the following:
<fieldset class="symbols" id="{$editorid}_symbolbox" title="Symbols">
<legend>Symbols</legend>
<table cellpadding="4" cellspacing="0" border="0" align="center">
<tr align="center" valign="bottom">
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('Ω','','');">Ω</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('σ','','');">σ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('μ','','');">μ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('ε','','');">ε</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('τ','','');">τ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('ω','','');">ω</a></td>
</tr>
<tr align="center" valign="bottom">
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('κ','','');">κ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('α','','');">α</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('β','','');">β</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('γ','','');">γ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('δ','','');">δ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('η','','');">η</a></td>
</tr>
<tr align="center" valign="bottom">
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('θ','','');">θ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('λ','','');">λ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('π','','');">π</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('ρ','','');">ρ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('ζ','','');">ζ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('χ','','');">χ</a></td>
</tr>
<tr align="center" valign="bottom">
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('ψ','','');">ψ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('∞','','');">∞</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('?','','');">?</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('√','','');">√</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('Δ','','');">Δ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('∂','','');">∂</a></td>
</tr>
<tr align="center" valign="bottom">
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('∫','','');">∫</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('Ʃ','','');">Ʃ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('∏','','');">∏</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('?','','');">?</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('≈','','');">≈</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('≠','','');">≠</a></td>
</tr>
</table>
</fieldset>
This is definitely not a replacement for the LaTeX Reference Forum Plugin (http://pi.bloo.us:800/academic/latex/plugin/), but it's a nice addition.
Cheers!
In Template: editor_smiliebox
After the first </fieldset> which is for the smileys, and before the <else />, add the following:
<fieldset class="symbols" id="{$editorid}_symbolbox" title="Symbols">
<legend>Symbols</legend>
<table cellpadding="4" cellspacing="0" border="0" align="center">
<tr align="center" valign="bottom">
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('Ω','','');">Ω</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('σ','','');">σ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('μ','','');">μ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('ε','','');">ε</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('τ','','');">τ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('ω','','');">ω</a></td>
</tr>
<tr align="center" valign="bottom">
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('κ','','');">κ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('α','','');">α</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('β','','');">β</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('γ','','');">γ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('δ','','');">δ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('η','','');">η</a></td>
</tr>
<tr align="center" valign="bottom">
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('θ','','');">θ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('λ','','');">λ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('π','','');">π</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('ρ','','');">ρ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('ζ','','');">ζ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('χ','','');">χ</a></td>
</tr>
<tr align="center" valign="bottom">
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('ψ','','');">ψ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('∞','','');">∞</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('?','','');">?</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('√','','');">√</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('Δ','','');">Δ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('∂','','');">∂</a></td>
</tr>
<tr align="center" valign="bottom">
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('∫','','');">∫</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('Ʃ','','');">Ʃ</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('∏','','');">∏</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('?','','');">?</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('≈','','');">≈</a></td>
<td><a href="javascript:vB_Editor['vB_Editor_001'].insert_text('≠','','');">≠</a></td>
</tr>
</table>
</fieldset>
This is definitely not a replacement for the LaTeX Reference Forum Plugin (http://pi.bloo.us:800/academic/latex/plugin/), but it's a nice addition.
Cheers!