Test Accounts

There are 3 test accounts.

Username: Test
Password: test123

Username: Test 2
Password: testuser2

Username: Test 3
Password: testuser3

Writing equations with LaTeX

Useful little modifications. I did not make any of them

Moderator: Jessica

Forum rules
There will be no more new snippets here. All snippets are posted here: http://chenschool.elementfx.com/phpBB3/kb.php?c=1

Writing equations with LaTeX

Postby Jessica » November 3rd, 2011, 10:42 pm

Open overall_header.html

FIND:
Code: Select all
<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>


ADD AFTER:
Code: Select all
<script type="text/javascript" src="http://latex.codecogs.com/editor.js"></script>



Open posting_buttons.html

FIND:
Code: Select all
<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 -->


ADD AFTER:
Code: Select all
<input type="button" class="button2" onclick="javascript:OpenLatexEditor('message','phpBB','')" value="Equation Editor"/>


FIND:
Code: Select all
<textarea name="message" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);"
onkeyup="storeCaret(this);" style="width: 98%;">{MESSAGE}</textarea>


REPLACE WITH:
Code: Select all
<textarea id="message" name="message" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);"
onclick="storeCaret(this);" onkeyup="storeCaret(this);" style="width: 98%;">{MESSAGE}</textarea>




Custom bbcode

BBCode:
Code: Select all
[tex]{TEXT}[/tex]


HTML:
Code: Select all
<img style="vertical-align: middle" src="http://latex.codecogs.com/png.latex?{TEXT}"/>


Note: it will say that it is risky with {TEXT} in the HTML part after you submit. Ignore it; using {TEXT} will make it work.



2 people like this post.
User avatar
Jessica
Founder
 
Topic author
Posts: 97
Topics: 39
Blog entries: 5
Joined: October 27th, 2011, 4:30 pm
Likes: 7 posts
Liked in: 24 posts
Images: 133

Return to Snippets

Who is online

Users browsing this forum: No registered users and 2 guests

x

#{title}

#{text}