Author |
Topic |
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 24 October 2002 : 19:32:27
|
I have noticed the use of:
<!--#INCLUDE FILE="inc_func_common.asp" --> as a replacement for:
<!--#INCLUDE FILE="inc_functions.asp" --> But,
<!--#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:
<!--#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.< |
|
@tomic
Senior Member
USA
1790 Posts |
Posted - 24 October 2002 : 20:01:43
|
Doh! Thanks for the heads up.
@tomic< |
SportsBettingAcumen.com |
Edited by - @tomic on 24 October 2002 20:02:23 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 25 October 2002 : 18:44:43
|
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.< |
Support Snitz Forums
|
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 25 October 2002 : 18:56:39
|
quote: 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
Junior Member
Netherlands
392 Posts |
Posted - 25 October 2002 : 18:56:55
|
I think you only get an error if you have a Dim statement outside of the sub/functions< |
|
|
Deleted
deleted
4116 Posts |
Posted - 25 October 2002 : 19:31:31
|
quote: Originally posted by ajhvdb
I think you only get an error if you have a Dim statement outside of the sub/functions
Also CONST...< |
Stop the WAR! |
|
|
Tmpj
Junior Member
Denmark
467 Posts |
Posted - 03 May 2003 : 11:36:49
|
Thanks for the info Richard, I was having a new MOD in mind! < |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 08 October 2003 : 20:13:17
|
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< |
Support Snitz Forums
|
Edited by - Davio on 11 October 2003 02:27:24 |
|
|
richfed
Average Member
United States
999 Posts |
Posted - 11 October 2003 : 06:13:21
|
Can we simply delete the include for this file on these mods?< |
|
|
The Impact
Junior Member
Australia
398 Posts |
Posted - 11 October 2003 : 06:34:27
|
Yes, you would delete the include file which is in the file that includes an inc_header.asp, right ?< |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 11 October 2003 : 13:37:22
|
Yes, delete the inc_func_common.asp include from the files that have both inc_func_common.asp and inc_header.asp included.< |
Support Snitz Forums
|
|
|
DakDarie
Starting Member
Ukraine
3 Posts |
|
|
Topic |
|