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
 Duplicate text in first post in each topic
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

rtrm
Starting Member

United Kingdom
10 Posts

Posted - 26 February 2006 :  09:00:13  Show Profile
Hi

I've recently applied the Poll Mod. Sincwe the mod was applied the text of the intial post of each topic is duplicated - like this:



Anybody have any idea what's causing this problem?

Roy

rtrm
Starting Member

United Kingdom
10 Posts

Posted - 26 February 2006 :  09:01:15  Show Profile
I guess the problem is in the topic.asp file. Here it is as it currently stands:

Code removed by ruirib: please post your file as a link to a text file..
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 26 February 2006 :  09:35:54  Show Profile  Visit modifichicci's Homepage
I think you miss an "end if" at line 1120 just before
if Request.QueryString("SearchTerms") <> "" then
Response.Write SearchHiLite(formatStr(Topic_Message))
else
Response.Write formatStr(Topic_Message)
end if

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

rtrm
Starting Member

United Kingdom
10 Posts

Posted - 27 February 2006 :  11:53:18  Show Profile
Thanks very much for your reply.

I've added an end if before 1120, and now get the error:

Microsoft VBScript compilation error '800a03f8'

Expected 'Sub'

/fate/topic.asp, line 1127

end if
----^

That section of code now reads (from 1113):

end if
Response.Write " </td>" & vbNewLine & _
" </tr>" & vbNewLine & _
"</table>" & vbNewLine
end if
else
Response.Write " <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """><span class=""spnMessageText"" id=""msg"">"
end if
if Request.QueryString("SearchTerms") <> "" then
Response.Write SearchHiLite(formatStr(Topic_Message))
else
Response.Write formatStr(Topic_Message)
end if
Response.Write "</span id=""msg""></font>" & vbNewLine
end if
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 27 February 2006 :  14:13:57  Show Profile  Visit Jezmeister's Homepage
im not sure you need that extra end if - I havent counted but just looking at that section... I think the part you've now ended is a larger if statement and you're cutting it short. and anyway I don't think its got anything to do with your problem

could you post a txt file of your topic.asp?

Edited by - Jezmeister on 27 February 2006 14:14:57
Go to Top of Page

rtrm
Starting Member

United Kingdom
10 Posts

Posted - 27 February 2006 :  14:56:35  Show Profile

This is the topic.asp file:

file://www.daggerford.com/topic.asp.txt

Couldn't think of a better way of enabling you to download it.

Roy
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 28 February 2006 :  08:01:05  Show Profile  Visit modifichicci's Homepage
Are you sure this topic is that with poll mod? I dont'see the changes for that mod..
In my file that is a very modded file, there is and end if where i said, but it's possible that that end if has to go in another place, it seems the calling to show message is done twice, as it is out of an end if loop or inside a loop od the poll mod.
Check the changes you have done, expecially in the get first routine.

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

rtrm
Starting Member

United Kingdom
10 Posts

Posted - 28 February 2006 :  08:10:52  Show Profile
Hmmm, think I might have linked to the wrong file. I have too many versions!

I'm check out the Poll Mod changes again when I get home.

Roy
Go to Top of Page

rtrm
Starting Member

United Kingdom
10 Posts

Posted - 01 March 2006 :  10:53:15  Show Profile

I reapplyed the patch again from scratch, and it now works.

I think the problem was around a part of the code that had already been altered by the Event Mod.

Thanks to everyone who helped,

Roy
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.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07