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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Prevent Topic Going Endless.....
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

lcs78816
Junior Member

195 Posts

Posted - 13 December 2000 :  03:31:21  Show Profile
Here's code:
go to line 392 in inc_functions.asp

replace:

<pre id=code><font face=courier size=2 id=code>if fField_Type = "display" then
if strAllowHTML <> "1" then
fString = Replace(fString, "<", "<")
fString = Replace(fString, ">", ">")
end if
ChkString = fString
exit function</font id=code></pre id=code>
with this:

<pre id=code><font face=courier size=2 id=code>if fField_Type = "display" then
if strAllowHTML <> "1" then
fString = Replace(fString, "<", "<")
fString = Replace(fString, ">", ">")
end if
<font color=red>if Len(fstring)>20 and instr(left(fstring,20)," ") = 0 and instr(left (fstring,20)," ")=0 then
fstring=Left(fstring,20)&" "&Right(fstring,(len(fstring)-20))
fstring=Left(fstring,18)&"..."
end if</font id=red>
ChkString = fString
exit function</font id=code></pre id=code>


Edited by - lcs78816 on 13 December 2000 03:33:23

HuwR
Forum Admin

United Kingdom
20587 Posts

Posted - 13 December 2000 :  03:41:51  Show Profile  Visit HuwR's Homepage
what do you mean by going endless?

If you mean when you have to scroll sideways to view all the message?

If so, it is supposed to do this so we can insert lines of code without them being wrapped.

I am currently working on an idea where the code tags are replaced by a scrollable region in the message rather than extending the screen. this way you will not loose the[code] functionality.

<font color=blue>'Resistance is futile'</font id=blue>

I just read your other post, are the two related. if so ignore my comment as you are talking about the topic title.

Edited by - huwr on 13 December 2000 03:51:44
Go to Top of Page

lcs78816
Junior Member

195 Posts

Posted - 13 December 2000 :  04:02:03  Show Profile
ya....I am talking about Topic title, this is different from the message area

I know it's not clean coded, but least it fixed. Have to thank Dave Ross from proxyresource.com for providing the code.


Edited by - lcs78816 on 13 December 2000 04:03:22
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 13 December 2000 :  10:19:37  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
I dont think the Topic Title can go endless... there is a maxlength set in the input tag, so you cant really type that large of a title.

<font color=red>Da_Stimulator</font id=red>
<font color=red>http://www.cfm-resources.com/s/stimmy/</font id=red>
<font color=blue>response.write("I know what you coded last summer!")</font id=blue>
http://www.tek-tips.com - The community where computer proffesionals meet and talk.
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07