Author |
Topic  |
Torborg
Junior Member
 
Norway
109 Posts |
Posted - 10 June 2010 : 07:01:01
|
Is there a mod or anyway to use subscript and superscript in the forum? So that you can write H2O, CO2 and E=MC2 the proper way. |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
leatherlips
Senior Member
   
USA
1838 Posts |
Posted - 10 June 2010 : 08:57:35
|
Here you go. This should work. If not, let me know. 
First upload the following two images to your forums images folder:

In inc_code.js Look for this:
Below that add this:
Open inc_post_buttons.asp and look for this:
Below that add this:
Open inc_icon_files.asp and look for this:
Const strIconEditorStrike = "icon_editor_strike.gif|23|22"
Below that add this:
Const strIconEditorSuper = "icon_editor_sup.gif|23|22"
Const strIconEditorSub = "icon_editor_sub.gif|23|22"
Open inc_func_common.asp and look for this:
fString = doCode(fString, "[s]", "[/s]", "<s>", "</s>")
Below that add this:
fString = doCode(fString, "[sup]", "[/sup]", "<sup>", "</sup>")
fString = doCode(fString, "[sub]", "[/sub]", "<sub>", "</sub>")
That should do it.
Edit: (The strikethrough code above is being parsed in the forum. Hopefully you can still figure out what to look for. If not, let me know.) [Fixed that for you - Shaggy] |
Mangione Magic Forum - The Music of Chuck Mangione
My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD |
Edited by - leatherlips on 10 June 2010 11:40:27 |
 |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
HuwR
Forum Admin
    
United Kingdom
20601 Posts |
|
Torborg
Junior Member
 
Norway
109 Posts |
Posted - 10 June 2010 : 13:33:38
|
Thanks . |
 |
|
Torborg
Junior Member
 
Norway
109 Posts |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
Torborg
Junior Member
 
Norway
109 Posts |
Posted - 10 June 2010 : 17:37:12
|
Yes, I saw it. I can't get it to work in firefox, but now I noticed that it works in explorer. |
 |
|
Torborg
Junior Member
 
Norway
109 Posts |
Posted - 10 June 2010 : 17:39:16
|
quote:
Did you add the functions above in inc_code.js? Your buttons are not putting in the tag. I suspect you forgot to add that step.
I did put functions in inc_code.js. Hm |
 |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
Torborg
Junior Member
 
Norway
109 Posts |
Posted - 10 June 2010 : 17:55:23
|
Emptied cache, and the it worked Thanks a lot!!! |
 |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 11 June 2010 : 04:44:03
|
quote: Originally posted by HuwR actually you can use [noparse][/noparse] here, (undocumented feature
Forgot about that 
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
Torborg
Junior Member
 
Norway
109 Posts |
|
Topic  |
|