vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Mini Mods - Math & Science symbols (https://vborg.vbsupport.ru/showthread.php?t=204345)

jrap 02-04-2009 10:00 PM

Math & Science symbols
 
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:

Code:

<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, but it's a nice addition.

Cheers!

Milad 02-05-2009 08:37 PM

Nice, I don't have a math forum, but I like it.

Soliloquy 02-06-2009 05:29 AM

Exactly what I needed for Science Chats. I had been using images of each symbol as smileys, but that was cumbersome and awkward. Thank you!

Barakat 02-06-2009 01:22 PM

installed , good idea

meraia 08-02-2009 11:48 PM

thnxxxxxxxxxxxxxxxxxxxxxxx

100marks 03-23-2012 07:12 PM

How do I do this in VB4 ? please let me know

mathforum 03-24-2012 01:31 AM

I really recommend using mathjax for any math symbols. It's free and you don't have to install anything on your own server. I run a math forum and it's an amazing product.


All times are GMT. The time now is 05:26 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01155 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete