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
 Simple Slash MOD Error On Default.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

richfed
Average Member

United States
999 Posts

Posted - 05 September 2004 :  14:08:13  Show Profile  Visit richfed's Homepage
I tried inserting the include to this MOD on my default.asp page ... getting the following error:

Microsoft VBScript compilation error '800a0411'

Name redefined

/messageboard/inc_simple_slash.asp, line 10

Const intTopicCount = 5


I am sort of using 3.4.04 - all the posted fixes, a new page or two, and the database upgrade - on MS-SQL Server

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]

laser
Advanced Member

Australia
3859 Posts

Posted - 05 September 2004 :  17:39:51  Show Profile
That error means that you have defined the constant twice. Look through the files you've MOD'd or the new files that came with the MOD and you'll find another line declaring intTopicCount somewhere.
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 06 September 2004 :  05:39:18  Show Profile  Visit richfed's Homepage
Here's a link to the text version of my default forum page, the only page modded for this MOD [an include only] http://www.mohicanpress.com/default.txt. I don't see any other references to intTopicCount other than if/then type of things.

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 06 September 2004 :  05:46:30  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
default.asp itself is using a variable called intTopicCount, that's what's causing the error.

A simple solution would be to rename all occurances of intTopicCount in inc_simple_slash.asp to intTopicCount2 for example.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 06 September 2004 :  06:14:41  Show Profile  Visit richfed's Homepage
Thanks OneWay ...

I tried that. Same exact error, only it reads intTopicCount2 instead of merely intTopicCount.

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 24 September 2004 :  05:56:28  Show Profile  Visit richfed's Homepage
Any other suggestions out there to get this MOD to function?
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 24 September 2004 :  06:11:03  Show Profile  Visit Gremlin's Homepage
Your including the slash file multiple times on the same page, it was never designed to be used that way.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 26 September 2004 :  05:53:23  Show Profile  Visit richfed's Homepage
Ah ha! Yes, inadvertent error on my part. I was seeking a place on the page it might work, and forgot to remove one instance.

Anyway, I placed it up near the top where I have the newsletter & forum news includes [also tried it on the active.asp page with same results]. and receive this error:


quote:
Microsoft OLE DB Provider for SQL Server error '80040e14'

Incorrect syntax near the keyword 'WHERE'.

/messageboard/inc_simple_slash.asp, line 47


Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 26 September 2004 :  19:45:43  Show Profile  Visit Gremlin's Homepage
You'll need to put a response.write strSQL (or whatever the variable may be called) right before that line so you can see what the query is, most common cause of that error that I've seen is using an invalid forum ID to pull topics from.

Kiwihosting.Net - The Forum Hosting Specialists
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