Author |
Topic |
|
Ranko
Junior Member
400 Posts |
Posted - 09 May 2006 : 14:27:49
|
I am trying out the allow HTML option in the forum and I noticed that the forum adds the <br> tag if I hit enter, which is pretty irritating. Never had it on, so does anyone have idea what do I need to edit to stop it from doing that?
Anything else it changes? |
|
muzishun
Senior Member
United States
1079 Posts |
Posted - 09 May 2006 : 15:52:19
|
In the FormatStr function in inc_func_common.asp, remove the part that replaces Chr(10) with "<br>". Can't remember the line number off the top of my head, but that's where the replace function is in the forum. It'll do what you're wanting. |
Bill Parrott Senior Web Programmer, University of Kansas Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com) Personal Website (www.chimericdream.com) |
|
|
Ranko
Junior Member
400 Posts |
Posted - 09 May 2006 : 16:05:03
|
Thanks; I figured it was in there but managed to overlook it when looking for br only. |
|
|
muzishun
Senior Member
United States
1079 Posts |
Posted - 09 May 2006 : 17:55:52
|
No problem. |
Bill Parrott Senior Web Programmer, University of Kansas Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com) Personal Website (www.chimericdream.com) |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 10 May 2006 : 06:58:02
|
I assume you're aware of the security risks of enabling HTML and the possibilities of clashes between forum code & HTML, Ranko?
|
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.” |
|
|
Ranko
Junior Member
400 Posts |
Posted - 10 May 2006 : 16:38:50
|
Yes, but I am safe. I plan to use the second forum as a stash for a story archive, will heavily mod it in the code, and will be the only user with accesstoposting in it. While I am doing the changes I need, and likely latter, I am using Moderate all posts everywhere, just in case. |
|
|
|
Topic |
|