MOD Developers, please read...

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/37437?pagenum=1
04 November 2025, 10:37

Topic


RichardKinser
MOD Developers, please read...
24 October 2002, 19:32


I have noticed the use of:

Code:
<!--#INCLUDE FILE="inc_func_common.asp" -->
as a replacement for:

Code:
<!--#INCLUDE FILE="inc_functions.asp" -->
But,

Code:
<!--#INCLUDE FILE="inc_func_common.asp" -->
is already an include in both inc_header.asp and inc_header_short.asp, so in a lot of the MODS that I have looked at, it's basically being included twice.
Please go over your MODS and check to make sure that you aren't including:
Code:
<!--#INCLUDE FILE="inc_func_common.asp" -->
in any of your files that also have either inc_header.asp or inc_header_short.asp as an include.<

 

Replies ...


@tomic
24 October 2002, 20:01


Doh! Thanks for the heads up.
@tomic<
Davio
25 October 2002, 18:44


Thanks Richard.
Wouldn't you get an error if the file was included twice? Because I would have fixed that in my mods if an error showed up. Otherwise, I might be guilty of doing that myself.<
GauravBhabu
25 October 2002, 18:56


Originally posted by Davio

Wouldn't you get an error if the file was included twice? ...

No, it will not cause any errors. Only difference is that whenever a call is made to a function or sub the function/sub in the file which is included last will be executed.<
ajhvdb
25 October 2002, 18:56


I think you only get an error if you have a Dim statement outside of the sub/functions<
Deleted
25 October 2002, 19:31


Originally posted by ajhvdb
I think you only get an error if you have a Dim statement outside of the sub/functions

Also CONST...<
Tmpj
03 May 2003, 11:36


Thanks for the info Richard, I was having a new MOD in mind! wink<
Davio
08 October 2003, 20:13


Can I bump this post to remind all mod developers about this?
I am installing a few mods and I am seeing this happening in almost all of the mods.
Please don't include the inc_func_common.asp file, if you already include the inc_header.asp or inc_header_short.asp files.
Here are a few of the mods that I know of, that are guilty of this. I will update this list as I find them:
- Inactive users mod - Ipgate mod - Private Messages Mod - Active Users Mod<
richfed
11 October 2003, 06:13


Can we simply delete the include for this file on these mods?<
The Impact
11 October 2003, 06:34


Yes, you would delete the include file which is in the file that includes an inc_header.asp, right ?<
Davio
11 October 2003, 13:37


Yes, delete the inc_func_common.asp include from the files that have both inc_func_common.asp and inc_header.asp included.<
DakDarie
04 February 2006, 08:25


mm.. thanks<
© 2000-2021 Snitz™ Communications