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: MOD Implementation
 Scrollbox MOD
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 07 August 2008 :  08:49:27  Show Profile  Visit HuwR's Homepage
he means add it to topic.asp not post.asp<
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 07 August 2008 :  08:57:11  Show Profile  Visit leatherlips's Homepage
quote:
Originally posted by HuwR

he means add it to topic.asp not post.asp

I'm sorry I didn't make my post clear.

I did add it to topic.asp. My first sentence was referring to Carefree questioning the lines in post.asp. I should have been more descriptive.<

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

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 07 August 2008 :  10:37:48  Show Profile
My own versions of these have had so many changes that they're like minefields, you have to step pretty carefully if you don't want things to blow up on you.<
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2085 Posts

Posted - 07 August 2008 :  16:21:33  Show Profile
When I added the scrollbox mod to my test site, it worked in the post.asp (which is the preview) and did not not work in the topic.asp (after posting it).
quote:
Originally posted by leatherlips

Classicmotorcycling, did the scrollmod not work for you either on your test site?

I then done some basic check to see what maybe missing between post.asp and topic.asp. I started with the includes and the only difference was the inc_func_posting.asp, so tried it, and it worked.

I have broken down what is required out of the inc_func_posting.asp to get it working, which is the following posted in topic.asp:

function CleanCode(fString)
if fString = "" or IsNull(fstring) then
fString = " "
else
if strAllowForumCode = "1" then
'## left for compatibility with older versions of the forum
fString = replace(fString, "<pre id=code><font face=courier size=" & strDefaultFontSize & " id=code>","
", 1, -1, 1)
			fString = replace(fString, "</font id=code></pre id=code>","
", 1, -1, 1)
'##

fString = replace(fString, "<pre id=""code""><font face=""courier"" size=""" & strDefaultFontSize & """ id=""code"">","
", 1, -1, 1)
			fString = replace(fString, "</font id=""code""></pre id=""code"">","
", 1, -1, 1)
end if
end if
fString = Replace(fString, "'", "'")
CleanCode = fString
end function


Post that code in the first part of the asp after the includes listed above (after removing the inc_func_posting.asp include) and the <% piece of code. I hope that this helped. <

Cheers,

David Greening
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 07 August 2008 :  16:57:43  Show Profile  Visit HuwR's Homepage
but topic.asp doesn't use the CleanCode function, it is only used when editing.<
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2085 Posts

Posted - 07 August 2008 :  17:51:18  Show Profile
The mod must be using the clean code function to operate and it was the only way I could get it to work on 3.4.06<

Cheers,

David Greening
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 08 August 2008 :  07:03:20  Show Profile  Visit modifichicci's Homepage
in the function adde by mod there is:

strCodeText = Trim(CleanCode(strCodeText))<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 08 August 2008 :  07:51:29  Show Profile  Visit HuwR's Homepage
let me reiterate.

TOPIC.asp SHOULD NOT BE USING CLEANCODE

CleanCode is used when putting data into textboxes etc when editing them, topic.asp does not have ANY editable fields and should not therefore be using CleanCode at all, if you are displaying data from the db then you should use FormatStr not CleanCode, they both have the opposite effect.

Cleancode turns html into code tags, Formatstr turns Code Tags into html.<
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.46 seconds. Powered By: Snitz Forums 2000 Version 3.4.07