Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Subscript and superscript
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

leatherlips
Senior Member

USA
1838 Posts

Posted - 12 June 2010 :  09:25:54  Show Profile  Visit leatherlips's Homepage
Did that poster actually use the [sup] tag or did they put in the <sup> thinking it would work?

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
Go to Top of Page

Torborg
Junior Member

Norway
109 Posts

Posted - 12 June 2010 :  09:31:04  Show Profile
I'll ask!! I thought they clicked on the icon.
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 12 June 2010 :  09:34:18  Show Profile  Visit leatherlips's Homepage
Hmmm. I just made a test post on your page and noticed something.

If you quote a post with a sub or sup tag it converts the forum code to the html tag. I'm not sure why that is happening. I'll take a look at my code and see what I may have left out for you.

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
Go to Top of Page

Torborg
Junior Member

Norway
109 Posts

Posted - 12 June 2010 :  09:41:39  Show Profile
Thanks. He used the icons ,
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 12 June 2010 :  09:42:50  Show Profile  Visit leatherlips's Homepage
I need some help from someone else to figure this out. I can't find what I have left out to cause this problem.

It seems if you quote the post or edit it later, all of the [sub] and [sup] tags show as <sub> and <sup>.

Anyone know why it would be doing this?

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
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 12 June 2010 :  09:48:52  Show Profile  Visit leatherlips's Homepage
I suspect that the poster used the proper tags with the []. He later edited his post and the [] showed as <> causing it to no longer display correctly. I do not know why it is doing that. Hopefully someone will chime in soon with the cause and solution.

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
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 12 June 2010 :  10:10:42  Show Profile
leatherlips, look at the CleanCode() function in inc_func_posting. It reverses what happens in ChkString(). I think that's what you're missing.

    _-/Cripto9t\-_
Go to Top of Page

Torborg
Junior Member

Norway
109 Posts

Posted - 12 June 2010 :  10:13:43  Show Profile
Yes, he edited the post. I'll sit her in a nice snitz corner with my cup of coffee and wait for someone to come by.

Edit: Cripto came by

Edited by - Torborg on 12 June 2010 10:14:21
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 12 June 2010 :  10:47:16  Show Profile  Visit leatherlips's Homepage
Thank you cripto9t!

Based on that, here is what you need to do Torborg:

In inc_func_posting look for:

fString = replace(fString, "<s>", "[s]", 1, -1, 1)
fString = replace(fString, "</s>", "[/s]", 1, -1, 1)

Below that add:

fString = replace(fString, "<sup>", "[sup]", 1, -1, 1)
fString = replace(fString, "</sup>", "[/sup]", 1, -1, 1)
fString = replace(fString, "<sub>", "[sub]", 1, -1, 1)
fString = replace(fString, "</sub>", "[/sub]", 1, -1, 1)

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
Go to Top of Page

Torborg
Junior Member

Norway
109 Posts

Posted - 12 June 2010 :  11:02:00  Show Profile
And now it works! Thanks a lot to leatherlips and cripto9t!
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 12 June 2010 :  11:15:31  Show Profile  Visit leatherlips's Homepage
Great!

You may now want to go back and edit MBE's post at http://www.biologforeningen.org/enbiolog/topic.asp?TOPIC_ID=17748 so that it displays correctly.

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
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 12 June 2010 :  11:23:49  Show Profile  Visit leatherlips's Homepage
Now that you have added sub and sup scripts you could add common words to the bad word filter and have it automatically display it the proper way.

For example:

In your bad word filter type H2O and have it be replaced by H[sub]2[/sub]0. Then if your members forgot to add the sub tag it wouldn't matter because the filter would add it automatically.

Also, if you added other words that have already been added in past posts, they would all instantly be updated to display properly.

Just a suggestion.

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 12 June 2010 11:24:39
Go to Top of Page

Torborg
Junior Member

Norway
109 Posts

Posted - 12 June 2010 :  17:12:54  Show Profile
quote:

Just a suggestion.


A very good one! I will add H2O and CO2.

Go to Top of Page

Torborg
Junior Member

Norway
109 Posts

Posted - 12 June 2010 :  17:37:55  Show Profile
It didn't work because all the old H2O became H[sub]2[/sub]0. The code was visible. It works on new postings but looks ugly on old. No problem .
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07